/* ============================================
   RENDERIUM — L'Enciclopedia Visiva
   The World's Largest Visual Encyclopedia
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cyan: #4dd9e8;
  --cyan-dim: rgba(77, 217, 232, 0.15);
  --violet: #a855f7;
  --violet-dim: rgba(168, 85, 247, 0.15);
  --orange: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --teal: #06b6d4;
  --pink: #ec4899;
  --amber: #d97706;
  --purple: #8b5cf6;
  --emerald: #10b981;
  --sky: #0ea5e9;
  --rose: #f43f5e;
  --white: #f0f0f5;
  --text: #c0c0d0;
  --dim: #8888aa;
  --bg: #08080f;
  --bg-2: #0c0c16;
  --bg-3: #10101a;
  --card: rgba(255,255,255,0.035);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(77, 217, 232, 0.25);
  --max-w: 1140px;
  --max-w-wide: 1320px;
  --nav-h: 72px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); opacity: 1; }
.nav-links a.active { color: var(--cyan); }
.nav-cta {
  padding: 8px 22px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 0.85rem;
  -webkit-text-fill-color: var(--bg) !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Language selector */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 2px;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--dim) !important;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1;
}
.lang-switch a:hover { color: var(--white) !important; opacity: 1; }
.lang-switch a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
}

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ---- LAYOUT ---- */
.section {
  padding: 100px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-alt {
  background: var(--bg-2);
}
.section-full {
  padding: 100px 32px;
}
.section-full .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dim);
  max-width: 640px;
  line-height: 1.6;
}
.section-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-cyan { background: rgba(77,217,232,0.1); color: var(--cyan); border: 1px solid rgba(77,217,232,0.2); }
.label-violet { background: rgba(168,85,247,0.1); color: var(--violet); border: 1px solid rgba(168,85,247,0.2); }
.label-orange { background: rgba(245,158,11,0.1); color: var(--orange); border: 1px solid rgba(245,158,11,0.2); }
.label-green { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-orange {
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-green {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }
.text-center { text-align: center; }
.text-dim { color: var(--dim); }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

/* ---- CARDS ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.95rem; line-height: 1.5; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(77,217,232,0.25); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(77,217,232,0.3);
}
.btn-outline:hover { background: rgba(77,217,232,0.08); box-shadow: none; }

/* ---- STATS ROW ---- */
.stats-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--dim);
}

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
td {
  padding: 14px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
td:first-child { color: var(--white); font-weight: 500; }
.td-good { color: var(--green); }
.td-bad { color: var(--red); }
.td-us { color: var(--cyan); font-weight: 600; }

/* ---- CODE / MONO ---- */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(77,217,232,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--cyan);
}
.code-block {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--cyan);
  white-space: pre;
  overflow-x: auto;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 32px 60px;
  position: relative;
}
.hero-content {
  width: 100%;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
#hero-3d {
  width: 100%;
  height: 520px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
#hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
#shape-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(77,217,232,0.6);
  transition: opacity 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

/* ---- PARTICLE CANVAS ---- */
#particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(77,217,232,0.06), rgba(168,85,247,0.06));
  border: 1px solid rgba(77,217,232,0.15);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { max-width: 600px; margin: 0 auto 24px; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a { color: var(--dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section, .section-full { padding: 60px 20px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-left: 20px; padding-right: 20px; }
  #hero-3d { height: 350px; order: -1; }
  .hero-actions { justify-content: center; }
  .stats-row { gap: 32px; justify-content: center; }
  .stat-num { font-size: 2.2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8,8,15,0.98);
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
  }
  .cta-banner { padding: 32px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .subtitle { font-size: 1.05rem; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; }
}

/* ============================================
   ENCYCLOPEDIA STYLES
   ============================================ */

/* ---- SEARCH BAR ---- */
.search-wrap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.search-input::placeholder { color: var(--dim); }
.search-input:focus {
  border-color: var(--cyan);
  background: rgba(77,217,232,0.04);
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover { background: rgba(255,255,255,0.04); opacity: 1; }
.search-result-item:last-child { border-bottom: none; }
.search-result-icon { font-size: 1.4rem; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.search-result-cat { font-size: 0.78rem; color: var(--dim); margin-top: 2px; }
.search-no-results { padding: 20px; text-align: center; color: var(--dim); font-size: 0.9rem; }

/* ---- CATEGORY GRID ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, var(--cyan));
  opacity: 0.6;
  transition: opacity 0.3s;
}
.cat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  opacity: 1;
}
.cat-card:hover::before { opacity: 1; }
.cat-card-icon { font-size: 2rem; }
.cat-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.cat-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--dim);
}
.cat-card-count {
  font-size: 0.78rem;
  color: var(--cat-color, var(--cyan));
  font-weight: 600;
  margin-top: auto;
  padding-top: 8px;
}

/* ---- ENTRY GRID ---- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.entry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.entry-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  opacity: 1;
}
.entry-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.entry-card-body { padding: 20px; }
.entry-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.entry-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}
.entry-card-desc {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- SINGLE ENTRY PAGE ---- */
.entry-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
}
.entry-breadcrumb {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.entry-breadcrumb a { color: var(--cyan); }
.entry-breadcrumb span { color: var(--dim); }
.entry-header { margin-bottom: 32px; }
.entry-header h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.entry-video-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.entry-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.entry-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--dim);
  font-size: 1rem;
}
.entry-video-placeholder .placeholder-icon { font-size: 3rem; opacity: 0.3; }
.entry-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.entry-text h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--white);
}
.entry-text p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
.entry-sources {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.entry-sources h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 10px;
}
.entry-sources ul { list-style: none; }
.entry-sources li {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* Infobox sidebar */
.entry-infobox {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.entry-infobox-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.entry-infobox-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.entry-infobox-row:last-child { border-bottom: none; }
.entry-infobox-key {
  font-size: 0.85rem;
  color: var(--dim);
  flex-shrink: 0;
}
.entry-infobox-val {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

/* Tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.entry-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(77,217,232,0.08);
  color: var(--cyan);
  border: 1px solid rgba(77,217,232,0.15);
  text-decoration: none;
  transition: background 0.2s;
}
.entry-tag:hover { background: rgba(77,217,232,0.15); opacity: 1; }

/* Related entries */
.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Report error */
.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin-top: 16px;
}
.report-btn:hover { color: var(--white); border-color: var(--border-hover); opacity: 1; }

/* ---- HERO ENCYCLOPEDIA ---- */
.hero-enc {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 32px 60px;
  gap: 28px;
}
.hero-enc h1 {
  font-size: 3.8rem;
  max-width: 800px;
}
.hero-enc .subtitle {
  max-width: 640px;
  margin: 0 auto;
}

/* ---- LATEST ENTRIES CAROUSEL ---- */
.latest-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.latest-scroll::-webkit-scrollbar { height: 4px; }
.latest-scroll::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 4px; }
.latest-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.latest-scroll .entry-card {
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---- DISCLAIMER ---- */
.disclaimer {
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.6;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 32px;
}

/* ---- COUNTER ANIMATION ---- */
.counter { display: inline-block; }

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-btn:hover { color: var(--white); border-color: var(--border-hover); }
.filter-btn.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
}

/* ---- ENCYCLOPEDIA RESPONSIVE ---- */
@media (max-width: 900px) {
  .entry-content-grid { grid-template-columns: 1fr; }
  .entry-infobox { position: static; }
  .hero-enc h1 { font-size: 2.6rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .latest-scroll .entry-card { min-width: 280px; max-width: 280px; }
}
@media (max-width: 600px) {
  .hero-enc { min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .hero-enc h1 { font-size: 2rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .entry-header h1 { font-size: 1.8rem; }
  .entry-page { padding-left: 16px; padding-right: 16px; }
}

/* ---- SHOP CARDS ---- */
.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(77,217,232,0.12);
}
.shop-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 900;
  overflow: hidden;
  background: #000;
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.shop-card:hover .shop-card-img img { transform: scale(1.03); }
.shop-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8,8,15,0.75);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.shop-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.shop-card-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.shop-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 auto;
  line-height: 1.4;
}
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.shop-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.shop-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .shop-card-img { aspect-ratio: 4 / 3; }
}
