/* ============================================================
   ToolFolio 2.0 Alt — design tokens ported from toolfolio.com
   ============================================================ */
:root {
  --bg: #000;
  --layer-1-solid: hsl(240 5% 6.3%);      /* #0f0f10 raised surface   */
  --layer-1: hsl(240 5% 45% / .14);       /* translucent layer        */
  --layer-2: hsl(240 5% 45% / .20);       /* hover layer              */
  --border: hsl(0 0% 100% / .08);
  --border-strong: hsl(0 0% 100% / .14);
  --fg: #fff;
  --fg-muted: hsl(0 0% 65%);
  --hover-bg: hsl(240 5% 45% / .10);
  --active-bg: hsl(240 5% 45% / .16);
  --cta: #035fff;
  --cta-hover: #2c79ff;
  --gold: #eab308;

  --radius-sm: .25rem;
  --radius-md: .375rem;
  --radius: .5rem;
  --radius-xl: .75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  --sidebar-width: 275px;
  --sidebar-width-collapsed: 64px;

  --font: "Inter", system-ui, -apple-system, arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "opsz" 32;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg { width: 16px; height: 16px; flex: none; }

/* ============ App shell: sidebar + main, capped at 1600px ============ */
.app {
  display: flex;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  border-inline: 1px solid var(--border);
}

/* ============ Sidebar ============ */
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: var(--sidebar-width);
  flex: none;
  border-right: 1px solid var(--border);
  transition: width .2s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: start;
  height: 53px;
  flex: none;
  padding: 0 12px;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-mark, .logo-mark svg { width: 22px; height: 22px; color: var(--fg); }
.logo-mark { display: inline-flex; }

/* Search row under the logo, like the reference sidebar */
.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 8px);
  margin: 2px 4px 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
  color: var(--fg-muted);
  font-size: 13px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.search-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--layer-1);
  color: var(--fg-muted);
}

.sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.side-nav { display: flex; flex-direction: column; }

.side-link, .cat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .15s, background-color .15s;
  white-space: nowrap;
  border-left: 3px solid transparent;
}
.side-link:hover, .cat-link:hover { color: var(--fg); background: var(--hover-bg); }
.side-link.active {
  color: var(--fg);
  background: var(--active-bg);
  border-left-color: var(--fg);
}
.side-link svg { opacity: .9; }
.count { margin-left: auto; font-size: 12px; color: var(--fg-muted); tabular-nums: true; }

.side-section { border-top: 1px solid var(--border); padding: 8px 0; }
.disclose {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .15s, background-color .15s;
}
.disclose:hover { color: var(--fg); background: var(--hover-bg); }
.disclose .chev { margin-left: auto; width: 14px; height: 14px; transition: transform .2s; }
.disclose[aria-expanded="false"] .chev { transform: rotate(0); }
.disclose[aria-expanded="true"] .chev { transform: rotate(90deg); }
.disclose[aria-expanded="false"] + .side-nav { display: none; }

.sidebar-footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.submit-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--fg);
  color: #000;
  font-weight: 600;
  font-size: 13px;
  transition: opacity .15s;
}
.submit-btn:hover { opacity: .88; }
.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: color .15s, background-color .15s;
}
.collapse-btn:hover { color: var(--fg); background: var(--hover-bg); }

/* Collapsed mode */
.sidebar.collapsed { width: var(--sidebar-width-collapsed); }
.sidebar.collapsed .logo-word,
.sidebar.collapsed .side-label,
.sidebar.collapsed .count,
.sidebar.collapsed .chev,
.sidebar.collapsed .search-btn span,
.sidebar.collapsed .search-btn kbd { display: none; }
.sidebar.collapsed .search-btn {
  width: 40px;
  margin: 2px auto 10px;
  justify-content: center;
  padding: 7px 0;
}
.sidebar.collapsed .logo,
.sidebar.collapsed .side-link,
.sidebar.collapsed .cat-link,
.sidebar.collapsed .disclose,
.sidebar.collapsed .submit-btn { justify-content: center; padding-inline: 0; }
.sidebar.collapsed .side-link.active {
  border-left-color: transparent;
  box-shadow: inset 3px 0 0 var(--fg);
}
.sidebar.collapsed .submit-btn { flex: none; width: 36px; }
.sidebar.collapsed .collapse-btn svg { transform: rotate(180deg); }
.collapse-btn svg { transition: transform .2s; }

/* ============ Topbar (unified tab bar, ported from reference) ============ */
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 53px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.topbar-inner {
  display: flex;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  padding: 0 20px;
}
.tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--fg-muted);
  transition: color .15s;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); }
.tab-underline {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--fg);
  opacity: 0;
  transition: left .3s ease-out, width .3s ease-out, opacity .3s;
}

.topbar-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  color: hsl(0 0% 100% / .7);
  transition: color .15s, background-color .15s;
}
.icon-btn:hover { color: var(--fg); background: var(--hover-bg); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.mobile-only { display: none; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  flex: none;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: color .15s, background-color .15s, opacity .15s;
}
.pill-btn.ghost { color: var(--fg-muted); }
.pill-btn.ghost:hover { color: var(--fg); background: var(--hover-bg); }
.pill-btn.solid { background: var(--fg); color: var(--bg); }
.pill-btn.solid:hover { opacity: .9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn.ghost { color: var(--fg-muted); border: 1px solid var(--border-strong); }
.btn.ghost:hover { color: var(--fg); background: var(--hover-bg); }
.btn.solid { background: var(--fg); color: #000; }
.btn.solid:hover { opacity: .88; }
.btn.lg { height: 42px; padding: 0 22px; font-size: 14px; }

/* ============ Content column ============ */
.content { width: 100%; max-width: 1400px; margin: 0 auto; padding: 20px 20px 0; }

/* ============ Hero carousel ============ */
.hero {
  position: relative;
  aspect-ratio: 1140 / 339;
  min-height: 250px;
  max-height: 430px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 50% 0%, hsl(221 83% 24% / .55), transparent 60%),
    radial-gradient(60% 90% at 85% 110%, hsl(221 83% 30% / .35), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 79px, hsl(0 0% 100% / .04) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, hsl(0 0% 100% / .04) 79px 80px),
    var(--layer-1-solid);
}
.hero-track { display: flex; }
.hero-billboard {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: hsl(0 0% 0% / .45);
  backdrop-filter: blur(8px);
  animation: bb-pulse 3s ease-in-out infinite;
  transition: border-color .2s, background-color .2s, transform .2s;
  max-width: 320px;
}
.hero-billboard:hover {
  border-color: var(--cta);
  background: hsl(217 100% 50% / .12);
  transform: translateY(-2px);
  animation: none;
}
.bb-title { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.bb-sub { font-size: 11.5px; color: var(--fg-muted); }
.bb-cta { font-size: 11.5px; font-weight: 600; color: var(--cta-hover); margin-top: 4px; }
@keyframes bb-pulse {
  0%, 100% { border-color: var(--border-strong); }
  50% { border-color: hsl(217 100% 60% / .55); }
}
@media (max-width: 760px) { .hero-billboard { display: none; } }

.hero-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.wire-base {
  fill: none;
  stroke: hsl(0 0% 100% / .14);
  stroke-width: 1.5;
}
.wire-glow {
  fill: none;
  stroke: url(#wg);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 260 1400;
  filter: url(#wglow);
  animation: wire-draw 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes wire-draw {
  0% { stroke-dashoffset: 1660; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1660; }
}
.wire-pulse { fill: #9ec5ff; }

.wire-nodes { position: absolute; inset: 0; z-index: 2; }
.wire-node {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: node-float 5s ease-in-out infinite;
}
@keyframes node-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}
.wire-node .mini-logo.lg {
  box-shadow: 0 6px 20px hsl(0 0% 0% / .5), 0 0 0 1px hsl(0 0% 100% / .08);
}
.wire-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 999px;
  background: #4d94ff;
  box-shadow: 0 0 12px 2px hsl(217 100% 60% / .8);
  z-index: -1;
}

.hero-tagline {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 3;
}
.hero-tagline h2 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  filter: drop-shadow(0 2px 8px hsl(0 0% 0% / .6));
}
.hero-tagline p {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .wire-node { display: none; }
  .wire-node:nth-child(-n+2) { display: block; }
  .hero-tagline { left: 20px; }
}

.hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 130% at 18% 30%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 60%),
    radial-gradient(55% 110% at 88% 80%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.is-active .hero-tint { opacity: 1; }
.hero-slide {
  flex: none;
  width: 100%;
  aspect-ratio: 1140 / 339;
  min-height: 250px;
  max-height: 420px;
  position: relative;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide:not(.is-active) { position: absolute; inset: 0; pointer-events: none; }

/* Vendor ad card content inside each hero slide */
.hero-ad { position: absolute; inset: 0; background: hsl(240 6% 6%); }
.hero-bg-shot {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(52px) saturate(1.25) brightness(.9);
  opacity: .55;
  transform: scale(1.05);
}
.hero-ad-bg {
  background:
    radial-gradient(90% 130% at 22% 78%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 62%),
    linear-gradient(180deg, hsl(0 0% 0% / .25), hsl(0 0% 0% / .45) 70%, hsl(0 0% 0% / .6)),
    hsl(0 0% 0% / .18) !important;
  background-blend-mode: normal;
}
.hero-ad-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 130% at 22% 78%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 62%),
    radial-gradient(70% 110% at 88% 20%, hsl(221 83% 34% / .38), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 64px, hsl(0 0% 100% / .03) 64px 65px),
    var(--layer-1-solid);
}
.hero-ad-content {
  position: absolute;
  left: 44px;
  bottom: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 60%;
}
.hero-ad-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--tint);
  background: var(--bg);
  box-shadow: 0 9px 7px hsl(0 0% 0% / .2);
}
.hero-ad-text h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero-ad-text .title-ico { width: 22px; height: 22px; }
.hero-ad-text p { font-size: 14px; color: var(--fg-muted); margin: 3px 0 6px; }
.hero-ad-text .tag { display: inline-block; }
.hero-ad-label {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: hsl(0 0% 0% / .5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-pill {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(560px, calc(100% - 80px));
  padding: 28px 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(0 0% 0% / .72), hsl(224 47% 14% / .58), hsl(0 0% 0% / .72));
  backdrop-filter: blur(12px);
  text-align: center;
  z-index: 2;
}
.hero-pill h2 {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
  filter: drop-shadow(0 1px 2px hsl(0 0% 0% / .4));
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: hsl(0 0% 100% / .3);
  transition: background-color .2s, width .2s;
}
.dot.is-active { background: #fff; width: 20px; }

/* ============ Sections ============ */
.section { margin-top: 36px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.info-btn { display: inline-flex; color: var(--fg-muted); border-radius: 999px; }
.info-btn:hover { color: var(--fg); }
.info-btn svg { width: 15px; height: 15px; }
.promo-note { font-size: 12px; color: var(--fg-muted); }
.see-all { margin-left: auto; font-size: 13px; color: var(--fg-muted); transition: color .15s; }
.see-all:hover { color: var(--fg); }

/* ============ Paged rails (every section) ============ */
.head-nav { margin-left: auto; display: flex; gap: 6px; }
.rail-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
  transition: color .15s, background-color .15s, border-color .15s, opacity .15s;
}
.rail-arrow svg { width: 16px; height: 16px; }
.rail-arrow:hover:not([disabled]) { background: var(--hover-bg); border-color: var(--border-strong); }
.rail-arrow[disabled] { opacity: .35; cursor: default; }

.rail-wrap { position: relative; }
.rail-wrap::before,
.rail-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.rail-wrap.can-left::before { opacity: .9; }
.rail-wrap.can-right::after { opacity: .9; }

/* featured name row: logo + name sit on one baseline */
.feat-name { min-height: 24px; }
.rail {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-page { flex: none; width: 100%; scroll-snap-align: start; }
.page-grid { display: grid; gap: 8px; }
.page-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.page-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.page-grid.g16 { gap: 16px; }

/* Heading title icons (gold Pro Vendor / silver Verified) */
.title-ico { width: 20px; height: 20px; }
.title-ico.gold { color: var(--gold); }
.title-ico.silver { color: hsl(0 0% 75%); }

/* ============ Featured tool card (hover-overlay design) ============ */
.feat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}
.feat-shot {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(221 40% 14%), hsl(240 6% 9%));
}

/* CSS-drawn fake UI inside screenshot areas */
.shot-ui { position: absolute; border-radius: 6px; background: hsl(0 0% 100% / .05); overflow: hidden; }
.shot-ui b { position: absolute; border-radius: 4px; background: hsl(221 83% 60% / .8); }
.shot-ui span { position: absolute; border-radius: 3px; background: hsl(0 0% 100% / .16); }
.shot-ui em { position: absolute; border-radius: 999px; background: hsl(0 0% 100% / .12); }
.ui-a b { top: 10px; left: 10px; width: 34%; height: 26%; }
.ui-a span:nth-of-type(1) { top: 46%; left: 10px; width: 55%; height: 8%; }
.ui-a span:nth-of-type(2) { top: 60%; left: 10px; width: 40%; height: 8%; }
.ui-a em { bottom: 10px; right: 10px; width: 64px; height: 22px; }
.ui-b b { top: 0; left: 0; right: 0; height: 18%; border-radius: 6px 6px 0 0; }
.ui-b span { left: 4%; width: 26%; height: 14%; }
.ui-b span:nth-of-type(1) { top: 30%; }
.ui-b span:nth-of-type(2) { top: 52%; }
.ui-b span:nth-of-type(3) { top: 74%; }
.ui-b em { top: 30%; right: 6%; width: 30%; height: 58%; border-radius: 6px; }
.ui-c b { top: 12%; left: 8%; width: 44px; height: 44px; border-radius: 999px; }
.ui-c span:nth-of-type(1) { top: 26%; left: 34%; width: 40%; height: 10%; }
.ui-c span:nth-of-type(2) { top: 44%; left: 34%; width: 26%; height: 8%; }
.ui-c em { bottom: 10%; left: 8%; right: 8%; height: 24px; }
.feat-shot .shot-ui {
  position: absolute;
  inset: 14px 12px 12px;
  border-radius: 6px;
  transition: filter .2s;
}
.feat-card:hover .shot-ui { filter: brightness(.58); }

.feat-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, hsl(0 0% 0% / .14), hsl(0 0% 0% / .22) 50%, hsl(0 0% 0% / .30));
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.feat-card:hover .feat-overlay { opacity: 1; }
.feat-top { display: flex; align-items: center; justify-content: space-between; }
.feat-price {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 999px;
  background: hsl(0 0% 0% / .5);
}
.eye-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: hsl(0 0% 100% / .8);
  transition: color .15s;
}
.eye-btn:hover { color: #fff; }
.eye-btn svg { width: 16px; height: 16px; }
.feat-mid { flex: 1; display: flex; align-items: center; justify-content: center; }
.feat-mid p {
  max-width: 85%;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.globe-ico { color: hsl(0 0% 100% / .7); }
.globe-ico svg { width: 16px; height: 16px; }
.shimmer-blue {
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, #4d94ff 0%, #a8cbff 50%, #4d94ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.feat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 0;
}
.feat-name h3 {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  max-width: 60%;
}
.feat-tag {
  font-size: 12.5px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}
.feat-name .title-ico { width: 15px; height: 15px; }
.feat-deal { cursor: pointer; }

.coupon {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  font-size: 12px;
  color: var(--fg-muted);
  transition: border-color .15s, color .15s;
}
.coupon b { color: #4ade80; font-weight: 600; }
.coupon:hover { border-color: #4ade80; color: var(--fg); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge.gold { color: var(--gold); background: hsl(49 96% 50% / .12); border: 1px solid hsl(49 96% 50% / .3); }
.tag { color: var(--fg-muted); background: var(--layer-1); padding: 2px 8px; border-radius: 999px; }

/* ============ Compact card (New Additions / Startups / Trending / Libraries) ============ */
.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  transition: background-color .15s;
  min-width: 0;
}
.compact-card:hover { background: var(--layer-1-solid); }
.compact-text { min-width: 0; }
.compact-text h3 { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.compact-text h3 .title-ico.mini { width: 13px; height: 13px; flex: none; }
.compact-text p { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--tint);
  position: relative;
  overflow: hidden;
}
/* real logos overlay the tint; the monogram letter shows through if the image fails */
.mini-logo.has-img { background: var(--layer-1-solid); border: 1px solid var(--border); }
.mini-logo.has-img i { font-style: normal; color: var(--fg); opacity: .55; font-size: .8em; font-weight: 700; }
.mini-logo .logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #fff;
}
.mini-logo.mini-logo.lg .logo-img { background: var(--layer-1-solid); }
.mini-logo.lg { width: 48px; height: 48px; border-radius: 10px; font-size: 18px; }
.mini-logo.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.mini-logo.ad { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; box-shadow: 0 9px 7px hsl(0 0% 0% / .2); background: var(--bg); border: 0; }
.mini-logo.chip { width: 30px; height: 30px; border-radius: 999px; font-size: 11px; border: 2px solid var(--bg); margin-left: -8px; }
.mini-logo.chip:first-child { margin-left: 0; }

/* ============ Spotlight card ============ */
.spot-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  color: inherit;
}
.spot-card:hover .spot-shot .shot-img { transform: scale(1.02); }
.spot-shot {
  position: relative;
  aspect-ratio: 1200 / 630;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(221 40% 14%), hsl(240 6% 9%));
}
.spot-shot .shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .35s ease, filter .25s ease;
  will-change: transform;
}
.spot-shot .shot-ui { position: absolute; inset: 14px 16px; }
.spot-name {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 2px;
}
.spot-name h3 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-name .title-ico { width: 15px; height: 15px; }
.spot-shot .shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  z-index: 1;
  transition: transform .3s ease, filter .25s ease;
  will-change: transform;
}
.spot-card:hover .spot-shot .shot-img { transform: scale(1.04); filter: brightness(.85); }
.spot-shot { overflow: hidden; }

/* ============ Collection card ============ */
.coll-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
  transition: border-color .15s, background-color .15s;
}
.coll-card:hover { border-color: var(--border-strong); }
.coll-chips { display: flex; align-items: center; }
.coll-card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.coll-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coll-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--fg-muted); }
.coll-foot svg { width: 14px; height: 14px; }

/* ============ Deal card ============ */
.deal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
  transition: border-color .15s;
}
.deal-card:hover { border-color: var(--border-strong); }
.deal-info { min-width: 0; flex: 1; }
.deal-info h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.deal-info h3 .title-ico.mini { width: 13px; height: 13px; flex: none; }
.deal-info .tag { display: inline-block; margin-top: 3px; }
.deal-card .coupon { flex: none; }

/* ============ Category tiles ============ */
.cat-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
  transition: background-color .15s, border-color .15s;
}
.cat-tile:hover { background: hsl(240 5% 10%); border-color: var(--border-strong); }
.cat-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count { font-size: 12px; color: var(--fg-muted); flex: none; }

/* ============ Article cards ============ */
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
  overflow: hidden;
  transition: border-color .15s;
}
.article-card:hover { border-color: var(--border-strong); }
.article-cover {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 100% at 30% 0%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 23px, hsl(0 0% 100% / .05) 23px 24px),
    var(--layer-1-solid);
}
.article-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.article-body h3 { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.article-body .tag { align-self: flex-start; }

/* ============ Featured-articles banner ============ */
.banner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--layer-1-solid);
}
.banner-track { display: flex; }
.banner-slide {
  flex: none;
  width: 100%;
  aspect-ratio: 21 / 7;
  min-height: 220px;
  position: relative;
  opacity: 0;
  transition: opacity .6s ease;
}
.banner-slide.is-active { opacity: 1; }
.banner-slide:not(.is-active) { position: absolute; inset: 0; pointer-events: none; }
.banner-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 120% at 15% 20%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 65%),
    radial-gradient(50% 90% at 90% 90%, hsl(221 83% 40% / .35), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 60px, hsl(0 0% 100% / .035) 60px 61px);
}
.banner-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  max-width: 60%;
  padding: 0 40px;
}
.banner-copy h3 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.banner-copy p { color: var(--fg-muted); font-size: 14px; max-width: 480px; }
.banner-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); }

/* ============ Discord banner ============ */
.discord-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 140% at 85% 50%, hsl(235 69% 45% / .5), transparent 65%),
    radial-gradient(50% 120% at 10% 100%, hsl(260 60% 30% / .4), transparent 60%),
    var(--layer-1-solid);
  padding: 22px 28px;
}
.discord-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(240 6% 8% / .9), hsl(240 6% 8% / .55) 55%, transparent);
}
.discord-content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.discord-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.discord-heading h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.discord-ico { width: 24px; height: 24px; color: hsl(235 86% 72%); }
.discord-content > p { font-size: 14px; color: hsl(0 0% 100% / .65); max-width: 560px; line-height: 1.55; }
.discord-cta {
  position: relative;
  z-index: 1;
  flex: none;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: hsl(235 69% 52%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background-color .15s;
}
.discord-cta:hover { background: hsl(235 72% 60%); }

/* ============ Inner pages (category / articles / collections / boost) ============ */
.page-head { padding: 28px 0 6px; }
.page-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.page-meta { color: var(--fg-muted); font-size: 13.5px; margin-top: 6px; }

.article-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--tint);
}

/* ---- Boosted listing (Submit tool) ---- */
.boost-hero { text-align: center; padding: 56px 20px 36px; }
.boost-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.boost-hero h1 em { font-style: normal; color: var(--fg-muted); display: block; }
.boost-hero > p { max-width: 560px; margin: 18px auto 0; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }
.boost-ctas { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--layer-1-solid);
  padding: 22px;
  text-align: center;
}
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat span { color: var(--fg-muted); font-size: 13px; }

.countries {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
}
@media (min-width: 900px) { .countries { grid-template-columns: repeat(5, 1fr); } }
.countries li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; }
.countries i { font-style: normal; font-size: 11px; color: var(--fg-muted); }

.quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .quotes-grid { grid-template-columns: repeat(3, 1fr); } }
.quote-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--layer-1-solid);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card blockquote { margin: 0; font-size: 14px; line-height: 1.6; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--fg-muted); }
.quote-card b { color: var(--fg); font-weight: 600; }
.q-handle { color: var(--cta-hover); font-weight: 400; }
.q-ava {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: #0a0a0a; background: var(--tint);
}

.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--layer-1-solid);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card h3 { font-size: 15px; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .now { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.plan-price .was { color: var(--fg-muted); text-decoration: line-through; font-size: 14px; }
.plan-price .per { color: var(--fg-muted); font-size: 12.5px; }
.plan-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; flex: 1; }
.addons { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.addon {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--border-strong); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; color: var(--fg-muted);
}
.addon b { color: var(--fg); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
}
.faq-q svg { width: 16px; height: 16px; color: var(--fg-muted); transition: transform .25s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 0 16px; color: var(--fg-muted); font-size: 13.5px; line-height: 1.6; max-width: 720px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---- 404 ---- */
.not-found { text-align: center; padding: 100px 20px; }
.not-found h1 { font-size: 64px; font-weight: 600; letter-spacing: -.03em; }
.not-found p { color: var(--fg-muted); margin: 10px 0 24px; }

/* ---- Reveal animation ---- */
.reveal, .page-grid > *, .rail-page {
  opacity: 0;
  transform: translateY(10px);
}
.reveal.in, .page-grid.in > *, .in.page-grid > *, .rail-page.in, .page-grid > *.in {
  animation: fadeUp .5s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .page-grid > *, .rail-page { opacity: 1; transform: none; animation: none !important; }
}

/* real site screenshots over the CSS art; art shows through if image fails */
.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  z-index: 1;
}
.shot-img { will-change: filter; }
.feat-card:hover .shot-img { filter: brightness(.58); }
.feat-card .shot-img { transition: filter .25s ease; }
.tool-shot-big .shot-img { border-radius: var(--radius-2xl); }

/* ============ Category articles rail ============ */
.title-ico.doc { width: 20px; height: 20px; color: var(--fg-muted); }
.more-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--layer-1);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}
.rail-arrow.view-all svg { width: 14px; height: 14px; }

.cat-article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  border-radius: var(--radius-2xl);
  background: var(--layer-1-solid);
  transition: background-color .15s;
}
.cat-article-card:hover { background: hsl(240 5% 10%); }
.cat-article-save {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: color .15s;
}
.cat-article-save:hover { color: var(--fg); }
.cat-article-save svg { width: 18px; height: 18px; }
.cat-article-save.saved { color: var(--cta-hover); }
.cat-article-link { display: flex; flex-direction: column; flex: 1; padding: 20px; min-width: 0; }
.cat-article-logos { display: flex; gap: 4px; margin-bottom: 16px; }
.mini-logo.chip2 { width: 32px; height: 32px; border-radius: 5px; font-size: 13px; background: var(--layer-2); color: var(--fg); }
.cat-article-link h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 24px;
}
.cat-article-link p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-article-meta { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--fg-muted); }

/* ============ Tool detail page ============ */
.crumbs { display: flex; align-items: center; gap: 8px; padding: 18px 0 4px; font-size: 12.5px; color: var(--fg-muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span:last-child { color: var(--fg); }

.feat-link, .spot-info, .deal-info { display: flex; flex-direction: column; min-width: 0; color: inherit; }
.spot-info, .deal-info { flex-direction: row; align-items: center; gap: 12px; flex: 1; }
.deal-info h3, .spot-info h3 { color: inherit; }

.tool-hero { display: flex; gap: 28px; align-items: flex-start; padding: 22px 0 8px; flex-wrap: wrap; }
.tool-hero-info { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 18px; }
.mini-logo.xl { width: 76px; height: 76px; border-radius: 18px; font-size: 30px; }
.tool-hero-text h1 { display: flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.tool-hero-text .title-ico { width: 26px; height: 26px; }
.tool-tagline { color: var(--fg-muted); font-size: 15px; margin-top: 6px; }
.tool-facts { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.feat-price.static { position: static; padding: 4px 12px; font-size: 12.5px; }
.tool-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-shot-big {
  position: relative;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, hsl(221 40% 14%), hsl(240 6% 9%));
  flex: none;
}
.tool-shot-big .shot-ui { position: absolute; inset: 26px 20px 20px; }
.about-h { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.tool-desc { color: var(--fg-muted); font-size: 15px; line-height: 1.7; max-width: 760px; }
.tool-desc.lede { color: var(--fg); font-size: 16px; margin-bottom: 14px; }

/* two-column tool body: content + info panel */
.tool-cols { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .tool-cols { grid-template-columns: 1fr; } }
.tool-main { min-width: 0; }
.feat-h { font-size: 16px; font-weight: 600; margin: 26px 0 10px; }
.feat-list { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { position: relative; padding-left: 22px; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
.feat-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cta);
}
.tool-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag.chip { font-size: 12.5px; padding: 5px 12px; transition: color .15s, background-color .15s; }
.tag.chip:hover { color: var(--fg); background: var(--layer-2); }

.tool-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 70px; }
.side-box { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--layer-1-solid); padding: 16px 18px; }
.side-box h4 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); margin: 0 0 8px; }
.side-box p { font-size: 14px; margin: 0; }
.side-link { display: block; width: 100%; text-align: left; font-size: 13.5px; color: var(--fg-muted); padding: 6px 0; transition: color .15s; }
.side-link:hover { color: var(--fg); }

/* ============ Article / collection detail ============ */
.article-page-head { padding: 26px 0 18px; }
.article-page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 12px 0 10px; max-width: 820px; }
.article-cover-lg {
  aspect-ratio: 21 / 8;
  min-height: 220px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 25% 15%, color-mix(in srgb, var(--tint) 40%, transparent), transparent 65%),
    repeating-linear-gradient(115deg, transparent 0 64px, hsl(0 0% 100% / .035) 64px 65px),
    var(--layer-1-solid);
}
.article-body-lg { max-width: 720px; margin: 30px auto 0; font-size: 15px; line-height: 1.75; color: hsl(0 0% 82%); }
.article-body-lg .lede { font-size: 17px; color: var(--fg); }
.article-body-lg h2 { font-size: 20px; font-weight: 600; color: var(--fg); margin: 30px 0 10px; letter-spacing: -.01em; }
.coll-desc { color: var(--fg-muted); font-size: 15px; line-height: 1.7; max-width: 680px; }

/* ============ Search overlay ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(0 0% 0% / .6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-overlay.open { display: flex; }
.search-panel {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-strong);
  background: var(--layer-1-solid);
  box-shadow: 0 24px 60px hsl(0 0% 0% / .55);
  overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search-input-row svg { width: 17px; height: 17px; color: var(--fg-muted); }
.search-input-row input { flex: 1; background: none; border: 0; outline: none; color: var(--fg); font: inherit; font-size: 15px; }
.search-input-row input::placeholder { color: var(--fg-muted); }
.search-input-row kbd { font-family: inherit; font-size: 11px; color: var(--fg-muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 7px; }
.search-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.search-hint { color: var(--fg-muted); font-size: 13px; padding: 14px 10px; }
.search-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius); }
.search-row:hover { background: var(--layer-1); }
.search-row p { color: var(--fg-muted); font-size: 12px; }
.lib-logo.sm { width: 34px; height: 34px; border-radius: 8px; font-size: 14px; }

/* brand glyphs (Popular Libraries) */
.lib-logo img.lib-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.lib-logo.sm img.lib-img { width: 17px; height: 17px; }

/* ============ Auth modal ============ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(0 0% 0% / .6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-overlay.open { display: flex; }
.auth-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-strong);
  background: var(--layer-1-solid);
  box-shadow: 0 24px 60px hsl(0 0% 0% / .55);
  padding: 22px;
}
.auth-close { position: absolute; top: 14px; right: 14px; color: var(--fg-muted); font-size: 14px; }
.auth-close:hover { color: var(--fg); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-tab { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.auth-tab.active { background: var(--active-bg); color: var(--fg); }
.auth-body { display: flex; flex-direction: column; gap: 12px; }
.btn.wide { width: 100%; }
.oauth { height: 40px; justify-content: flex-start; padding: 0 16px; }
.oauth .po {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-right: 10px; flex: none;
  border-radius: 6px; font-size: 12px; font-weight: 700; font-style: normal;
}
.oauth .po.google { background: #fff; color: #4285F4; }
.oauth .po.github { background: #fff; color: #000; font-family: ui-monospace, monospace; }
.oauth .po.email { background: var(--layer-2); color: var(--fg); }
.auth-email-fields { display: flex; flex-direction: column; gap: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-body label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--fg-muted); }
.auth-body input {
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  padding: 0 12px;
  outline: none;
}
.auth-body input:focus { border-color: var(--cta); }
.auth-note { font-size: 11.5px; color: var(--fg-muted); text-align: center; margin: 2px 0 0; }

/* ============ Toast / empty state / legal ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 120;
  background: var(--fg);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

.empty-state { text-align: center; padding: 90px 20px; }
.empty-state svg { width: 42px; height: 42px; color: var(--fg-muted); margin-bottom: 12px; }
.empty-state h1 { font-size: 26px; font-weight: 600; }
.empty-state p { color: var(--fg-muted); max-width: 440px; margin: 10px auto 24px; line-height: 1.6; }

.legal { max-width: 720px; padding: 10px 0 40px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.legal p { color: var(--fg-muted); line-height: 1.7; font-size: 14.5px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 6px; flex: none;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: border-color .15s;
}
.user-chip:hover { border-color: var(--border-strong); }
.user-chip b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.u-dot { width: 20px; height: 20px; border-radius: 999px; background: linear-gradient(135deg, #4ade80, #035fff); flex: none; }

/* ============ Pricing / credits / MCP ============ */
.credits-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--fg-muted); font-size: 12.5px; font-weight: 600;
  transition: color .15s, border-color .15s;
}
.credits-chip:hover { color: var(--fg); border-color: #4ade80; }
.credits-chip svg { width: 14px; height: 14px; color: #4ade80; }
.credits-chip b { font-variant-numeric: tabular-nums; }

.tiers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .tiers-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card.tier { gap: 12px; }
.plan-card.tier.best { border-color: #4ade80; box-shadow: 0 0 0 1px hsl(143 70% 45% / .35); }
.tier-flag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #4ade80; background: hsl(143 70% 45% / .12);
  padding: 3px 10px; border-radius: 999px;
}
.tier-tag { font-size: 12.5px; color: var(--fg-muted); line-height: 1.45; min-height: 34px; }
.tier-feats { margin: 4px 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tier-feats li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--fg-muted); line-height: 1.4; }
.tier-feats li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-size: 11px; }

.packs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
@media (min-width: 1000px) { .packs-grid { grid-template-columns: repeat(4, 1fr); } }
.pack-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--layer-1-solid); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pack-card.featured { border-color: #4ade80; }
.pack-note { position: absolute; top: -10px; left: 16px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4ade80; background: var(--bg); padding: 0 8px; }
.pack-credits { display: flex; align-items: baseline; gap: 8px; }
.pack-credits b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.pack-credits span { color: var(--fg-muted); font-size: 13px; }
.pack-price { font-size: 18px; font-weight: 600; }
.pack-price s { color: var(--fg-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.pack-per { font-size: 11.5px; color: var(--fg-muted); text-align: center; margin: 0; }

.credit-table { width: 100%; max-width: 640px; border-collapse: collapse; margin-top: 10px; }
.credit-table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); padding: 8px 12px; border-bottom: 1px solid var(--border-strong); }
.credit-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.credit-table td:first-child b { display: block; font-weight: 600; }
.credit-table td:first-child span { color: var(--fg-muted); font-size: 12.5px; }
.credit-table td:last-child { color: #4ade80; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan-card.lifetime { border-style: dashed; border-color: var(--gold); }
.plan-card.lifetime .plan-price { flex-wrap: wrap; }

.mcp-hero { display: flex; justify-content: center; padding: 26px 0 6px; }
.mcp-term {
  width: 100%; max-width: 720px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-2xl);
  background: var(--layer-1-solid);
  padding: 24px 28px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px; line-height: 2; color: var(--fg);
}
.mcp-prompt { color: #4ade80; margin-right: 8px; }
.mcp-dim { color: var(--fg-muted); }
.mcp-out { color: var(--cta-hover); }
.mcp-qpd { display: flex; align-items: baseline; gap: 8px; }
.mcp-qpd b { font-size: 20px; color: #4ade80; }
.mcp-qpd span { color: var(--fg-muted); font-size: 12.5px; }

/* stack match modal */
.stack-panel { max-width: 460px; }
.stack-title { font-size: 18px; font-weight: 600; }
.stack-sub { color: var(--fg-muted); font-size: 13px; margin: 6px 0 14px; }
.stack-sub b { color: #4ade80; }
.stack-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; font-size: 13.5px; padding: 12px; resize: vertical; outline: none;
}
.stack-input:focus { border-color: var(--cta); }
.stack-results { display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow-y: auto; }

.stack-match-btn { height: 30px; padding: 0 12px; font-size: 12.5px; margin-left: 12px; gap: 6px; }

/* ============ Monetization pages ============ */
/* leaderboard */
.lb-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .lb-wrap { grid-template-columns: 1fr; } }
.lb-board { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--layer-1-solid); overflow: hidden; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background-color .15s; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: var(--layer-1); }
.lb-rank { width: 26px; text-align: center; font-size: 14px; font-weight: 700; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.lb-row:first-child .lb-rank { color: var(--gold); }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-name b { font-size: 15px; font-weight: 600; }
.lb-name i { font-style: normal; font-size: 12.5px; color: var(--fg-muted); }
.lb-bid { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #4ade80; }
.lb-side { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--layer-1-solid); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lb-side h3 { font-size: 16px; font-weight: 600; }
.lb-side ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--fg-muted); font-size: 13.5px; line-height: 1.5; }
.lb-total { font-size: 13px; color: var(--fg-muted); }
.lb-total b { color: #4ade80; font-size: 18px; display: block; }

/* marketplace */
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.mp-filter.active { color: var(--fg); background: var(--layer-2); }
.mp-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--layer-1-solid); overflow: hidden; transition: border-color .15s; }
.mp-card:hover { border-color: var(--border-strong); }
.mp-art {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; color: color-mix(in srgb, var(--tint) 70%, #fff);
  background:
    radial-gradient(80% 120% at 30% 0%, color-mix(in srgb, var(--tint) 40%, transparent), transparent 65%),
    repeating-linear-gradient(115deg, transparent 0 60px, hsl(0 0% 100% / .035) 60px 61px),
    var(--layer-1-solid);
}
.mp-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.mp-body h3 { font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 40px; }
.mp-foot { display: flex; align-items: center; justify-content: space-between; }
.mp-price { font-size: 16px; font-weight: 700; }
.mp-price s { color: var(--fg-muted); font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.mp-sales { font-size: 12px; color: var(--fg-muted); }
.mp-vendor { font-size: 12px; color: var(--fg-muted); }
.mp-cta { text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-2xl); padding: 40px 20px; margin-top: 28px; }
.mp-cta h2 { font-size: 22px; font-weight: 600; }
.mp-cta p { color: var(--fg-muted); max-width: 480px; margin: 10px auto 20px; line-height: 1.6; }

/* sell */
.sell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .sell-grid { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 36px 20px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); font-size: 15px; }
.footer-note { margin-top: 10px; max-width: 320px; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.footer-col a:hover { color: var(--fg); }

/* Footer bottom bar (ported from reference) */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom p { color: var(--fg-muted); font-size: 14px; font-weight: 300; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.footer-legal a,
.footer-legal button {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 300;
  transition: color .15s;
  cursor: pointer;
}
.footer-legal a:hover,
.footer-legal button:hover { color: var(--fg); }
.footer-legal i { color: hsl(0 0% 100% / .5); font-style: normal; margin: 0 8px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .cat-grid, .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pill-btn { display: none; }
  .icon-btn.mobile-only { display: flex; }
  .cat-grid, .latest-grid { grid-template-columns: 1fr; }
  .hero-slide { aspect-ratio: auto; min-height: 380px; }
  .hero-ad-content { left: 20px; bottom: 20px; }
  .hero-ad-text p, .hero-ad-text .tag { display: none; }
  .hero-pill { margin-bottom: 24px; padding: 20px 22px; }
}
