/* ══════════════════════════════════════════════════════════════
   CardGarden v4 — premium directory design system
   Deep-black canvas · gold light · glass · Space Grotesk display
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg: #06080c;
  --bg2: #0a0e15;
  --panel: rgba(255, 255, 255, .028);
  --panel-solid: #0d1219;
  --panel2: rgba(255, 255, 255, .055);
  --inset: #080b11;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --text: #f2f5fa;
  --muted: #9aa4b8;
  --faint: #5d6778;
  --gold: #f0b429;
  --gold-hi: #ffd968;
  --gold-deep: #b96f0a;
  --gold-dim: rgba(240, 180, 41, .12);
  --gold-glow: rgba(240, 180, 41, .35);
  --link: #8fc9ff;
  --green: #3ddc84;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(240, 180, 41, .06), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(64, 110, 255, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
a { color: var(--link); }
::selection { background: rgba(240, 180, 41, .3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }
.grad {
  background: linear-gradient(100deg, #ffe9a8 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Topbar ── */
.topbar {
  background: rgba(6, 8, 12, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
  position: relative; z-index: 120;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar-status { display: flex; align-items: center; gap: 9px; }
.topbar-status strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .45); }
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 5px 11px; border-radius: 7px; font-size: 12.5px; transition: all .15s; }
.topbar-nav a:hover { color: var(--text); background: var(--panel2); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(6, 8, 12, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 30px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--text); }
.brand-mark { display: block; filter: drop-shadow(0 4px 14px rgba(240, 180, 41, .3)); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.brand-tag { font-size: 10.5px; color: var(--faint); font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.topnav { display: flex; gap: 2px; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 10px; white-space: nowrap; transition: all .18s;
}
.topnav a:hover { color: var(--text); background: var(--panel2); }
.topnav a.active { color: var(--gold-hi); background: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(240, 180, 41, .22); }
.btn-header {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 11px; text-decoration: none;
  font-weight: 700; font-size: 13.5px; color: #1a1204 !important;
  background: linear-gradient(180deg, #ffd968, var(--gold) 60%, #d99a17);
  box-shadow: 0 6px 22px rgba(240, 180, 41, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.btn-header:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(240, 180, 41, .42), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-art {
  position: absolute; inset: 0;
  background: url("assets/hero-bg.webp") center 30% / cover no-repeat;
  opacity: .9;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, .55) 0%, rgba(6, 8, 12, .25) 45%, var(--bg) 100%),
    radial-gradient(700px 380px at 20% 40%, transparent 40%, rgba(6, 8, 12, .5) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 72px; max-width: 1320px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(240, 180, 41, .08); border: 1px solid rgba(240, 180, 41, .25);
  padding: 8px 16px; border-radius: 999px; margin: 0 0 26px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 700; letter-spacing: -2.5px; line-height: 1.02;
  margin: 0 0 22px; text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero .lede { font-size: 17.5px; color: #c3cad8; max-width: 60ch; margin: 0 0 36px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero .lede strong { color: #fff; font-variant-numeric: tabular-nums; }
.hero-search {
  display: flex; align-items: center; gap: 6px;
  max-width: 620px; padding: 7px 7px 7px 20px; border-radius: 18px;
  background: rgba(10, 14, 21, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.4), 0 0 44px rgba(240, 180, 41, .08);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: rgba(240, 180, 41, .55); box-shadow: var(--shadow-lg), 0 0 60px rgba(240, 180, 41, .16); }
.search-ic { color: var(--faint); font-size: 19px; }
.hero-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px; font-family: inherit; padding: 12px 4px;
}
.hero-search input::placeholder { color: var(--faint); }
.btn-dice {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px; border: none; cursor: pointer; font-size: 21px;
  color: #1a1204; background: linear-gradient(180deg, #ffd968, var(--gold) 65%, #d99a17);
  box-shadow: 0 4px 16px rgba(240, 180, 41, .35), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .18s var(--ease);
}
.btn-dice:hover { transform: rotate(-10deg) scale(1.06); }
.hero-stats { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hstat {
  min-width: 148px; padding: 16px 20px; border-radius: 16px;
  background: rgba(10, 14, 21, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), border-color .2s;
}
.hstat:hover { transform: translateY(-3px); border-color: rgba(240, 180, 41, .4); }
.hstat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.hstat b.grad { -webkit-background-clip: text; background-clip: text; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(180deg);
  z-index: 2; color: var(--faint); font-size: 20px; text-decoration: none;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(10,14,21,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: bob 2.6s ease-in-out infinite; transition: color .2s, border-color .2s;
}
.hero-scroll:hover { color: var(--gold-hi); border-color: rgba(240,180,41,.5); }
@keyframes bob { 0%,100% { margin-bottom: 0; } 50% { margin-bottom: 8px; } }

/* ── Ad slots ── */
.ad-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin: 26px 0; min-height: 104px;
  border: 1px dashed rgba(255, 255, 255, .16); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.014), rgba(255,255,255,.014) 12px, transparent 12px, transparent 24px),
    rgba(255, 255, 255, .015);
  color: var(--faint); font-size: 12.5px; overflow: hidden;
}
.ad-label { text-transform: uppercase; letter-spacing: 2.5px; font-size: 10.5px; opacity: .8; font-weight: 600; }
.ad-label a { color: var(--gold); }
.ad-leaderboard { min-height: 104px; }
.ad-incontent { min-height: 132px; }
.ad-box { min-height: 252px; margin: 0 0 22px; }
.ad-nodefeed { min-height: 92px; margin: 16px 0; }
.ad-slot::after, .sticky-ad-inner::after {
  content: attr(data-size); position: absolute; bottom: 6px; right: 12px;
  font-size: 10px; letter-spacing: 1.5px; color: var(--faint); opacity: .6; pointer-events: none;
}
.ad-slot:has(> :not(.ad-label):not(script))::after,
.sticky-ad-inner:has(> :not(.ad-label):not(script))::after { display: none; }
.ad-slot:has(> :not(.ad-label):not(script)) .ad-label,
.sticky-ad-inner:has(> :not(.ad-label):not(script)) .ad-label { display: none; }
.ad-slot:has(> :not(.ad-label):not(script)),
.sticky-ad-inner:has(> :not(.ad-label):not(script)) {
  border-style: solid; border-color: var(--line); background: none; min-height: 0;
}

/* ── Layout ── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 8px; }

/* ── Category blocks ── */
.cat-block { margin: 38px 0 0; }
.cat-block:first-child { margin-top: 22px; }
.cat-head {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cat-head::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
}
.cat-index {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--faint);
  letter-spacing: 1.5px; border: 1px solid var(--line); border-radius: 9px;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.cat-head-text { flex: 1; min-width: 0; }
.cat-head-text h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.cat-head-text h2 .ic { color: var(--gold); font-size: 20px; }
.cat-head-text p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cat-count {
  flex: 0 0 auto; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--gold-hi); background: var(--gold-dim);
  border: 1px solid rgba(240, 180, 41, .3);
  padding: 8px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.node-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Node cards ── */
.node {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .22s, box-shadow .22s, transform .22s var(--ease);
}
.node:hover { border-color: rgba(240, 180, 41, .32); box-shadow: 0 12px 34px rgba(0, 0, 0, .42), 0 0 30px rgba(240, 180, 41, .05); transform: translateY(-2px); }
.node.open { border-color: rgba(240, 180, 41, .45); box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 44px rgba(240, 180, 41, .07); }
.node-body { display: flex; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; scroll-margin-top: 170px; }
.node-icon {
  flex: 0 0 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  color: var(--gold-hi);
  background: linear-gradient(160deg, rgba(240, 180, 41, .16), rgba(240, 180, 41, .04));
  border: 1px solid rgba(240, 180, 41, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease);
}
.node:hover .node-icon { transform: scale(1.07) rotate(-4deg); }
.node-text { flex: 1; min-width: 0; }
.node-text h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; transition: color .18s; }
.node:hover .node-text h3 { color: var(--gold-hi); }
.node-text p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-meta { display: flex; gap: 7px; margin-top: 8px; }
.node-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 9px;
}
.node-stats { display: flex; gap: 8px; flex: 0 0 auto; }
.node-stats .ns {
  text-align: center; min-width: 76px; padding: 10px 8px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-soft); border-radius: 12px;
}
.node-stats .ns b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.node-stats .ns span { font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.node-latest { flex: 0 1 215px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.node-latest .nl-label { display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--faint); margin-bottom: 5px; }
.node-latest .nl-label .ic { color: var(--gold); }
.node-latest a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; line-height: 1.7; transition: color .15s; }
.node-latest a:hover { color: var(--gold-hi); text-decoration: underline; }
.node-toggle { flex: 0 0 auto; color: var(--faint); font-size: 18px; transition: transform .3s var(--ease), color .2s; }
.node.open .node-toggle { transform: rotate(180deg); color: var(--gold); }
.node-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); background: rgba(0, 0, 0, .3); }
.node.open .node-panel { border-top: 1px solid var(--line-soft); }
.node-panel-inner { padding: 22px 24px 26px; }

.az-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 16px; padding: 12px 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; }
.az-nav button {
  min-width: 32px; padding: 5px 7px; background: transparent;
  border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.az-nav button:hover { color: var(--gold-hi); border-color: rgba(240,180,41,.5); background: var(--gold-dim); }

.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 9px; }
.link-grid li {
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 11px 14px; min-width: 0; transition: all .18s var(--ease);
}
.link-grid li:hover { border-color: rgba(240, 180, 41, .5); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); background: rgba(240, 180, 41, .04); }
.link-grid a.name { color: var(--link); text-decoration: none; font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-grid a.name:hover { text-decoration: underline; }
.link-grid .domain { color: var(--faint); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.link-grid .letter-row {
  grid-column: 1 / -1; margin: 14px 0 2px; padding: 4px 2px 10px;
  font-family: var(--font-display); color: var(--gold-hi); font-size: 21px; font-weight: 700; letter-spacing: 1px;
  border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
  scroll-margin-top: 170px;
}
.link-grid .letter-row:hover { transform: none; box-shadow: none; background: transparent; }
.link-grid li.ad-infeed {
  grid-column: 1 / -1; min-height: 92px; display: flex; align-items: center; justify-content: center;
  border-style: dashed;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.014), rgba(255,255,255,.014) 12px, transparent 12px, transparent 24px);
}
.link-grid li.ad-infeed:hover { transform: none; box-shadow: none; }
.subhead { font-family: var(--font-display); color: var(--gold-hi); font-size: 15px; margin: 20px 0 12px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.subhead:first-child { margin-top: 0; }

.search-meta { color: var(--muted); font-size: 14px; margin: 22px 0 8px; }
.no-results { color: var(--muted); padding: 48px 0; text-align: center; }
.result-sec h3 { font-family: var(--font-display); color: var(--gold-hi); font-size: 17px; margin: 24px 0 12px; display: flex; align-items: center; gap: 9px; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 158px; display: flex; flex-direction: column; }
.widget {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.widget-title {
  margin: 0 0 16px; padding-bottom: 13px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.widget-title .ic { color: var(--gold); font-size: 17px; }
.widget-title .icon-btn { margin-left: auto; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.stat-row:last-child { border-bottom: none; }
.stat-row strong { font-family: var(--font-display); font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.topcats { display: flex; flex-direction: column; gap: 13px; }
.topcat-row { font-size: 12.5px; }
.topcat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.topcat-top span:first-child { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; display: flex; align-items: center; gap: 8px; }
.topcat-top span:first-child .ic { color: var(--gold); font-size: 15px; }
.topcat-top strong { font-family: var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.topcat-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.topcat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi)); box-shadow: 0 0 12px rgba(240,180,41,.4); transition: width 1.2s var(--ease); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 9px; color: var(--muted);
  cursor: pointer; font-size: 15px; transition: all .18s;
}
.icon-btn:hover { color: var(--gold-hi); border-color: rgba(240,180,41,.5); transform: rotate(40deg); }
.featured-list { list-style: none; margin: 0; padding: 0; }
.featured-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; transition: padding-left .18s; }
.featured-list li:hover { padding-left: 6px; }
.featured-list li:last-child { border-bottom: none; }
.featured-list a { text-decoration: none; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-list a:hover { color: var(--gold-hi); }
.featured-list .domain { color: var(--faint); font-size: 11.5px; }
.advertise-widget {
  background: linear-gradient(160deg, rgba(240, 180, 41, .1), rgba(240, 180, 41, .03));
  border: 1px solid rgba(240, 180, 41, .3);
}
.advertise-widget p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(180deg, #ffd968, var(--gold) 60%, #d99a17);
  color: #1a1204 !important; font-weight: 800; font-size: 14px; text-decoration: none;
  box-shadow: 0 8px 26px rgba(240, 180, 41, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(240, 180, 41, .45), inset 0 1px 0 rgba(255,255,255,.45); }

/* ── Advertise ── */
.advertise {
  margin-top: 44px; padding: 44px 48px; position: relative; overflow: hidden;
  background:
    radial-gradient(560px 260px at 12% 0%, rgba(240, 180, 41, .1), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid rgba(240, 180, 41, .28); border-radius: var(--radius-lg);
  scroll-margin-top: 170px;
}
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-hi); }
.advertise h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -1px; }
.advertise p { margin: 8px 0; color: var(--muted); max-width: 70ch; }
.ad-inventory { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 11px; margin: 24px 0 10px; }
.ad-inv-item {
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 17px; transition: all .18s var(--ease);
}
.ad-inv-item:hover { border-color: rgba(240, 180, 41, .5); transform: translateY(-2px); }
.ad-inv-item b { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.ad-inv-item span { font-size: 12px; color: var(--faint); }
.contact-line { margin-top: 18px !important; }
.contact-pill {
  display: inline-block; font-family: ui-monospace, monospace; font-size: 13.5px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--text) !important;
  padding: 6px 16px; border-radius: 999px; text-decoration: none; transition: all .18s;
}
.contact-pill:hover { border-color: rgba(240,180,41,.55); color: var(--gold-hi) !important; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 60px; background: rgba(4, 6, 9, .7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 42ch; margin: 12px 0 0; }
.footer-col h4 { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 5px 0; transition: all .15s; }
.footer-col a:hover { color: var(--gold-hi); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 26px; color: var(--faint); font-size: 12.5px; }

/* ── Sticky ad / to-top ── */
.sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(6, 8, 12, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 14px 12px; display: none; }
.sticky-ad.show { display: block; }
.sticky-ad-inner { max-width: 728px; height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 12px; color: var(--faint); font-size: 12px; }
.sticky-close { position: absolute; top: 4px; right: 12px; background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 6px; }
.sticky-close:hover { color: var(--text); }
body.has-sticky-ad { padding-bottom: 122px; }
#to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(13, 18, 25, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold-hi); font-size: 19px; cursor: pointer; display: none; z-index: 150;
  align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
#to-top.show { display: inline-flex; }
#to-top:hover { border-color: rgba(240,180,41,.6); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
body.has-sticky-ad #to-top { bottom: 134px; }
.loading { color: var(--muted); padding: 56px 0; text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .hero-scroll, .spinner { animation: none; }
  html { scroll-behavior: auto; }
  #hero-canvas { display: none; }
}
@keyframes flash { 0%,100% { border-color: var(--line-soft); } 30% { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); } }
li.flash { animation: flash 1.6s ease; }

@media (max-width: 1080px) { .topnav { display: none; } }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .node-latest { display: none; }
  .header-inner { gap: 18px; }
  .hero-content { padding-top: 64px; padding-bottom: 56px; }
  .hero-stats { gap: 10px; }
  .hstat { min-width: calc(50% - 7px); flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .node-stats { display: none; }
  .node-meta { display: none; }
  .node-body { padding: 15px 16px; gap: 13px; }
  .node-icon { flex-basis: 46px; height: 46px; }
  .link-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .topbar-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .advertise { padding: 30px 24px; }
  .btn-header { display: none; }
  .hero-search input { font-size: 14px; }
}
