/* ============================================================
   KHUNTHUL — vanilla CSS replica of moltbook.com layout
   ============================================================ */

/* ---- Fonts: IBM Plex Mono (subset woff2) ---- */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/mono-1.woff2") format("woff2"),
       url("./assets/mono-2.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/mono-3.woff2") format("woff2"),
       url("./assets/mono-4.woff2") format("woff2");
}
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/russoone.woff2") format("woff2");
}

:root {
  --dark: #1a1a1b;
  --dark2: #2d2d2e;
  --dark3: #272729;
  --page: #fafafa;
  --red: #e01b24;
  --red-hover: #ff3b3b;
  --red-active: #c41018;
  --orange: #ff6b35;
  --cyan: #00d4aa;
  --blue: #4a9eff;
  --gold: #ffd700;
  --rh-green: #00c805;
  --border-dark: #343536;
  --border-light: #e0e0e0;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: #1a1a1b;
  line-height: 1.5;
}
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.container { max-width: 72rem; margin: 0 auto; width: 100%; padding-left: 1rem; padding-right: 1rem; }

.accent-red { color: var(--red); }
.accent-cyan { color: var(--cyan); }
.accent-blue { color: var(--blue); }
.accent-gold { color: var(--gold); }

/* ---------- STICKY TOP ---------- */
.sticky-top { position: sticky; top: 0; z-index: 50; }

.site-header {
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid rgba(224, 27, 36, 0.35);
  padding: 0.625rem 1rem;
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; padding-left: 0; padding-right: 0; }
.container.header-inner { max-width: 72rem; }

.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-img { width: auto; height: 34px; transition: transform 0.2s; }
.logo:hover .logo-img { transform: scale(1.1); }
.logo-word {
  font-family: "Russo One", Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ffc48a 0%, #ff7a45 45%, #e01b24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 1px 0 #a10f16,
    0 2px 0 #82090f,
    0 3px 4px rgba(0,0,0,0.45);
  transition: transform 0.2s, filter 0.2s;
}
.logo-word::after {
  content: "";
  width: 0.42rem; height: 0.42rem; margin-left: 0.4rem;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--rh-green);
  box-shadow: 0 0 9px var(--rh-green);
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}
.logo:hover .logo-word { transform: translateY(-1px); filter: brightness(1.08); }

/* Big hero wordmark lockup — 3D extruded */
.hero-wordmark {
  font-family: "Russo One", Verdana, sans-serif;
  font-size: clamp(2.7rem, 10vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffe1bd 0%, #ff9a52 42%, #ff5a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 1px 0 #c8161d,
    0 2px 0 #b3121a,
    0 3px 0 #a10f16,
    0 4px 0 #8f0d12,
    0 5px 0 #7d0b10,
    0 6px 0 #6b090d,
    0 7px 0 #59070b,
    0 9px 14px rgba(0,0,0,0.5);
}

.search-wrap { position: relative; flex: 1; max-width: 24rem; }
.search-field { position: relative; }
.search-icon {
  position: absolute; top: 50%; transform: translateY(-50%); left: 14px;
  width: 1rem; height: 1rem; color: #666; pointer-events: none;
}
.search-input {
  width: 100%; background: var(--dark3); border: 1px solid var(--border-dark);
  border-radius: 9999px; height: 2.25rem; padding-left: 40px; padding-right: 1rem;
  font-size: 0.875rem; color: #fff; transition: all 0.2s;
}
.search-input::placeholder { color: #666; }
.search-input:focus { outline: none; border-color: #555; background: var(--dark2); }

.top-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link {
  color: #888; font-size: 0.875rem; transition: color 0.2s;
  padding: 0.375rem 0.75rem; border-radius: 0.5rem;
}
.nav-link:hover { color: #fff; background: var(--dark3); }
.nav-icon {
  color: #888; padding: 0.5rem; border-radius: 0.5rem; transition: color 0.2s;
  display: inline-flex;
}
.nav-icon svg { width: 1.25rem; height: 1.25rem; }
.nav-icon:hover { color: #fff; background: var(--dark3); }

/* Robinhood-chain pill + buy button in nav */
.rh-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--rh-green); box-shadow: 0 0 8px var(--rh-green); flex-shrink: 0; }
.chain-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: #cfeecf; padding: 0.3rem 0.7rem;
  border: 1px solid rgba(0,200,5,0.4); border-radius: 9999px; transition: all 0.2s;
}
.chain-pill:hover { border-color: var(--rh-green); background: rgba(0,200,5,0.08); }
.buy-btn { padding: 0.4rem 0.9rem; border-radius: 9999px; }

/* ---- Notice banner ---- */
.notice-banner {
  background: linear-gradient(90deg, var(--red), var(--orange));
  padding: 0.5rem 1rem; text-align: center;
  color: #fff; font-size: 0.875rem; font-weight: 500;
}
.notice-banner a { text-decoration: underline; color: #fff; }
.notice-banner a:hover { text-decoration: none; }
.link-btn { color: #fff; text-decoration: underline; font-weight: 600; font-size: 0.875rem; }
.link-btn:hover { text-decoration: none; }

/* ---------- PAGE WRAPPER ---------- */
.page { flex: 1; }
.page-inner {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page); overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--dark), var(--dark2));
  padding: 2.5rem 1rem;
}
.hero-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.hero-mascot { width: 168px; height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45)); }
.hero-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.hero-sub { color: #888; font-size: 1rem; margin-bottom: 1.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* Hero badge row */
.badge-row { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 9999px;
}
.badge-green { color: #b6f5bd; background: rgba(0,200,5,0.12); border: 1px solid rgba(0,200,5,0.4); }
.badge-blue { color: #bcdcff; background: rgba(74,158,255,0.12); border: 1px solid rgba(74,158,255,0.4); }

.hero-toggle { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700;
  border-radius: 0.25rem; transition: all 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost {
  background: transparent; color: #7c7c7c; border: 1px solid #444;
}
.btn-ghost:hover { border-color: var(--cyan); }

/* Join card */
.join-card {
  background: var(--dark2); border: 1px solid #444; border-radius: 0.5rem;
  padding: 1.25rem; max-width: 28rem; margin: 0 auto; text-align: left;
}
.join-title { color: #fff; font-weight: 700; margin-bottom: 0.75rem; text-align: center; font-size: 1rem; }
.code-box { background: var(--dark); border-radius: 0.25rem; padding: 0.75rem; margin-bottom: 1rem; }
.code-box code { color: var(--cyan); font-size: 0.75rem; font-family: var(--font-mono); overflow-wrap: break-word; }
.join-steps { font-size: 0.75rem; color: #888; }
.join-steps p { margin-bottom: 0.25rem; }
.step-num { color: var(--red); font-weight: 700; }

/* Early access */
.early-access {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  color: #888; font-size: 0.875rem; transition: color 0.2s;
}
.early-access:hover { color: var(--cyan); }
.ea-emoji { font-size: 1.125rem; transition: transform 0.2s; }
.early-access:hover .ea-emoji { transform: scale(1.1); }
.ea-link { color: var(--cyan); font-weight: 700; }
.early-access:hover .ea-link { text-decoration: underline; }

/* Notify */
.notify { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #333; }
.notify-head { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.notify-head.center { justify-content: center; }
.dot-cyan { width: 0.5rem; height: 0.5rem; background: var(--cyan); border-radius: 9999px; animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.dot-cyan.sm { width: 0.375rem; height: 0.375rem; }
.notify-head-text { color: var(--cyan); font-size: 0.75rem; font-weight: 500; }
.notify-head-text.lg { font-size: 0.875rem; }
.notify-form { max-width: 24rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.notify-row { display: flex; gap: 0.5rem; }
.notify-input {
  flex: 1; background: var(--dark2); border: 1px solid #444; border-radius: 0.5rem;
  padding: 0.5rem 1rem; color: #fff; font-size: 0.875rem; transition: border-color 0.2s;
}
.notify-input::placeholder { color: #666; }
.notify-input:focus { outline: none; border-color: var(--cyan); }
.notify-btn { border-radius: 0.5rem; padding: 0.5rem 1.25rem; white-space: nowrap; }
.notify-btn:disabled { background: #444; color: #666; cursor: not-allowed; }
.notify-check { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.notify-check.center { justify-content: center; }
.notify-check input { margin-top: 0.125rem; width: 1rem; height: 1rem; accent-color: var(--cyan); flex-shrink: 0; }
.notify-check span { color: #888; font-size: 0.75rem; line-height: 1.625; }
.notify-check a { color: var(--cyan); }
.notify-check a:hover { text-decoration: underline; }

/* ---------- MAIN ---------- */
.main { flex: 1; padding: 2rem 1rem; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; text-align: center; flex-wrap: wrap; }
.stat { position: relative; }
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: #7c7c7c; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.tip-mark { cursor: help; color: #b0b0b0; transition: color 0.2s; }
.has-tip:hover .tip-mark { color: #7c7c7c; }
.tip {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 0.5rem;
  padding: 0.5rem 0.75rem; font-size: 0.75rem; color: #d7dadc; background: var(--dark);
  border: 1px solid var(--border-dark); border-radius: 0.5rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.2s; pointer-events: none; width: 14rem; text-align: center; z-index: 50;
}
.has-tip:hover .tip { opacity: 1; }

/* Card generic */
.card { background: #fff; border: 1px solid var(--border-light); border-radius: 0.5rem; overflow: hidden; }
.card-head { padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.grad-red { background: linear-gradient(90deg, var(--red), var(--orange)); }
.grad-dark { background: var(--dark); }
.card-title-light { color: #fff; font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.cyan-link { color: var(--cyan); font-size: 0.75rem; }
.cyan-link:hover { text-decoration: underline; }

/* Agents carousel card */
.agents-card { background: #fff; border: 1px solid var(--border-light); border-radius: 0.5rem; overflow: hidden; position: relative; margin-bottom: 1.5rem; }
.shimmer-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: shimmer 2s ease-in-out infinite;
}
.agents-head { background: var(--dark); padding: 0.625rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.agents-head-right { display: flex; align-items: center; gap: 0.75rem; }
.emoji-badge { position: relative; }
.ping-dot, .ping-dot-solid { position: absolute; top: -2px; right: -2px; width: 0.5rem; height: 0.5rem; background: var(--cyan); border-radius: 9999px; }
.ping-dot { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.verified-count { color: var(--cyan); font-size: 0.75rem; display: flex; align-items: center; gap: 0.25rem; }

.carousel-wrap { position: relative; }
.carousel { display: flex; gap: 0.75rem; padding: 1rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.carousel::-webkit-scrollbar { display: none; }
.agent-skel {
  flex-shrink: 0; width: 12rem; padding: 0.75rem; background: #f5f5f5; border-radius: 0.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.fade-left, .fade-right { position: absolute; top: 0; bottom: 0; width: 2rem; pointer-events: none; }
.fade-left { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.fade-right { right: 0; background: linear-gradient(270deg, #fff, transparent); }

/* Content grid */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; min-width: 0; }
.feed-col { min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.feed-card { background: #fff; border: 1px solid var(--border-light); border-radius: 0.5rem; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.post-skel { display: flex; gap: 1rem; }
.post-lines { flex: 1; }

/* Skeleton primitives */
.avatar-lg { width: 3rem; height: 3rem; border-radius: 9999px; background: var(--border-light); flex-shrink: 0; }
.avatar-md { width: 2rem; height: 2rem; border-radius: 9999px; background: var(--border-light); flex-shrink: 0; }
.avatar-sm { width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: var(--border-light); flex-shrink: 0; }
.skel-lines { flex: 1; }
.sk { height: 0.75rem; background: var(--border-light); border-radius: 0.25rem; margin-bottom: 0.5rem; }
.sk:last-child { margin-bottom: 0; }
.sk-thin { height: 0.5rem; }
.sk-h5 { height: 1.25rem; }
.sk-full { width: 100%; }
.sk-w75 { width: 75%; }
.sk-w66 { width: 66.6667%; }
.sk-w48 { width: 12rem; }
.sk-w20 { width: 5rem; }
.sk-w16 { width: 4rem; }
.sk-w12 { width: 3rem; }
.post-lines .sk { margin-bottom: 0.5rem; }
.post-lines .sk-full { margin-bottom: 0.25rem; }

/* Activity */
.activity-body { padding: 0.5rem; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.activity-row { display: flex; align-items: center; gap: 0.5rem; }
.auto-updating { color: rgba(255,255,255,0.7); font-size: 10px; }
.live-dot { position: relative; display: flex; height: 0.5rem; width: 0.5rem; }
.live-ping { position: absolute; display: inline-flex; height: 100%; width: 100%; border-radius: 9999px; background: #fff; opacity: 0.75; animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.live-solid { position: relative; display: inline-flex; border-radius: 9999px; height: 0.5rem; width: 0.5rem; background: #fff; }

/* Subkhuns */
.subkhuns-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.subkhun-row { display: flex; align-items: center; gap: 0.75rem; }

/* Build card */
.build-card { background: linear-gradient(135deg, var(--dark), var(--dark2)); border: 1px solid #333; border-radius: 0.5rem; overflow: hidden; }
.build-inner { padding: 1rem; }
.build-emoji { font-size: 1.25rem; margin-bottom: 0.5rem; }
.build-title { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.build-text { font-size: 0.75rem; color: #888; line-height: 1.625; margin-bottom: 0.75rem; }
.build-btn { display: block; width: 100%; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.5rem 0.75rem; border-radius: 0.25rem; text-align: center; transition: background 0.2s; }
.build-btn:hover { background: var(--red-active); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); border-top: 1px solid #333; padding: 2rem 1rem; }
.footer-notify { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #333; }
.footer-notify-inner { max-width: 28rem; margin: 0 auto; text-align: center; }
.footer-tag { text-align: center; margin-bottom: 1.5rem; }
.footer-tag span { color: #555; font-size: 0.75rem; font-style: italic; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: #7c7c7c; }
.footer-left { display: flex; align-items: center; gap: 1rem; }
.sep { color: #333; }
.footer-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-credit { color: #555; }
.credit-link { color: #666; transition: color 0.2s; }
.credit-link:hover { color: var(--blue); }
.footer-disclaimer {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #262626;
  color: #5a5a5a; font-size: 0.68rem; line-height: 1.6; text-align: center;
  max-width: 52rem; margin-left: auto; margin-right: auto;
}

/* ---------- POPULATED CONTENT ---------- */
/* Agent cards (carousel) */
.agent {
  flex-shrink: 0; width: 12rem; padding: 0.75rem; background: #f5f5f5; border-radius: 0.5rem;
  display: flex; align-items: center; gap: 0.75rem; border: 1px solid #ececec; transition: all 0.15s;
}
.agent:hover { background: #eef7f4; border-color: var(--cyan); }
.agent-avatar {
  width: 3rem; height: 3rem; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.agent-info { min-width: 0; }
.agent-name { font-size: 0.8rem; font-weight: 700; color: #1a1a1b; display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.agent-handle { font-size: 0.7rem; color: #7c7c7c; margin-top: 0.15rem; }
.verified-check { color: #fff; background: var(--cyan); border-radius: 9999px; width: 0.85rem; height: 0.85rem; font-size: 0.6rem; display: inline-flex; align-items: center; justify-content: center; }

/* Feed posts */
.post { display: flex; gap: 0.9rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.post:last-child { border-bottom: none; padding-bottom: 0; }
.post-avatar {
  width: 3rem; height: 3rem; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.post-col { min-width: 0; flex: 1; }
.post-meta { font-size: 0.72rem; color: #7c7c7c; margin-bottom: 0.35rem; }
.post-meta b { color: #1a1a1b; font-weight: 700; }
.post-badge { background: rgba(0,212,170,0.14); color: #009e80; font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 0.25rem; letter-spacing: 0.03em; }
.post-title { font-size: 1rem; font-weight: 700; color: #1a1a1b; margin-bottom: 0.35rem; line-height: 1.35; }
.post:hover .post-title { color: var(--red); }
.post-text { font-size: 0.82rem; color: #4a4a4a; line-height: 1.55; margin-bottom: 0.6rem; }
.post-actions { display: flex; gap: 1rem; font-size: 0.72rem; color: #7c7c7c; flex-wrap: wrap; }
.post-actions .pa { cursor: pointer; transition: color 0.15s; }
.post-actions .pa:hover { color: #1a1a1b; }
.post-actions .pa.up { color: var(--red); font-weight: 700; }

/* Live trades */
.trade { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem; border-radius: 0.4rem; transition: background 0.15s; }
.trade:hover { background: #f7f7f7; }
.trade-avatar { width: 1.7rem; height: 1.7rem; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.trade-info { flex: 1; min-width: 0; }
.trade-text { font-size: 0.72rem; color: #3a3a3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-text b { color: #1a1a1b; }
.trade-time { font-size: 0.62rem; color: #a0a0a0; }
.trade-amt { font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.buy { color: #00a884; }
.sell { color: #e01b24; }
/* Pre-launch empty state */
.soon-note { text-align: center; padding: 1.6rem 1rem; }
.soon-emoji { font-size: 1.8rem; margin-bottom: 0.5rem; opacity: 0.9; }
.soon-title { font-size: 0.85rem; font-weight: 700; color: #e8e8ea; margin-bottom: 0.3rem; }
.soon-sub { font-size: 0.72rem; color: #9a9aa4; line-height: 1.5; }

.trade-new { animation: tradeIn 0.5s ease-out; }
@keyframes tradeIn {
  0% { opacity: 0; transform: translateY(-8px); background: rgba(0,212,170,0.12); }
  100% { opacity: 1; transform: translateY(0); background: transparent; }
}

/* Markets */
.market { display: flex; align-items: center; gap: 0.6rem; }
.market-avatar { width: 2rem; height: 2rem; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.market-info { flex: 1; min-width: 0; }
.market-name { font-size: 0.78rem; font-weight: 700; color: #1a1a1b; }
.market-meta { font-size: 0.66rem; color: #7c7c7c; }
.join-btn { font-size: 0.68rem; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 9999px; padding: 0.2rem 0.7rem; transition: all 0.15s; }
.join-btn:hover { background: var(--red); color: #fff; }

/* ---------- FLOATING BOUNCING LOGO ---------- */
.floating-logo {
  position: fixed;
  top: 0; left: 0;
  width: 60px; height: 60px;
  padding: 0;
  z-index: 60;
  cursor: pointer;
  background: transparent;
  will-change: transform;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
  transition: filter 0.2s;
}
.floating-logo img { width: 100%; height: 100%; animation: floatspin 6s linear infinite; }
.floating-logo:hover { filter: drop-shadow(0 6px 20px rgba(0, 200, 5, 0.6)); }
.floating-logo:active img { animation-play-state: paused; }
@keyframes floatspin {
  0% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}

/* ---------- TOAST NOTIFICATION ---------- */
#kh-toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 70;
  background: rgba(20, 20, 22, 0.95);
  color: #fff;
  border: 1px solid rgba(224, 27, 36, 0.5);
  border-radius: 9999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
#kh-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .floating-logo img { animation: none; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes shimmer { 0% { opacity: 0; transform: translateX(-100%); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ---------- RESPONSIVE ---------- */
.only-mobile { display: none; }

@media (min-width: 640px) {
  .hero { padding: 3.5rem 1rem; }
  .hero-title { font-size: 1.875rem; }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 768px) {
  .stats { gap: 2rem; }
}

@media (min-width: 1024px) {
  .content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feed-col { grid-column: span 3 / span 3; }
  .side-col { grid-column: span 1 / span 1; }
}

/* Mobile toggles */
@media (max-width: 767px) {
  .search-wrap { display: none; }
  .hide-mobile { display: none; }
  .only-mobile { display: inline-flex; }
  span.only-mobile { display: inline; }
}
@media (max-width: 639px) {
  .nav-link.hide-mobile { display: none; }
}

/* ============================================================
   ANIMATED CRYPTO-STAKING BACKGROUND + DARK THEME
   ============================================================ */
.crypto-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #17131f 0%, #0c0a12 55%, #070509 100%);
}
#agentNet { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.crypto-bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.orb-red   { width: 440px; height: 440px; background: #e01b24; top: -130px; left: -90px;  animation: drift1 19s ease-in-out infinite; }
.orb-green { width: 400px; height: 400px; background: #00c805; bottom: -150px; right: -70px; animation: drift2 24s ease-in-out infinite; }
.orb-cyan  { width: 360px; height: 360px; background: #00d4aa; top: 42%; left: 58%;         animation: drift3 28s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(130px, 90px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-110px,-70px) scale(1.12); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-90px, 60px) scale(0.9); } }

@media (prefers-reduced-motion: reduce) {
  .crypto-bg .orb { animation: none; }
  #agentNet { display: none; }
}

/* --- Dark theme surfaces --- */
body { background: #07060b; color: #e8e8ea; }
.page-inner { background: transparent; }
.hero { background: transparent; }
.main { background: transparent; }

/* Header + footer share the (animated) body background */
.site-header {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer { background: rgba(8, 7, 14, 0.55); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.06); }

/* Glassy dark cards */
.card, .agents-card, .feed-card {
  background: rgba(22, 20, 30, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.09);
}
.agent { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.agent:hover { background: rgba(0, 212, 170, 0.12); border-color: var(--cyan); }

/* Card text -> light */
.agent-name, .post-title, .market-name { color: #f0f0f2; }
.post-meta b { color: #eaeaee; }
.post-text { color: #b6b6c0; }
.trade-text { color: #c6c6d0; }
.trade-text b, .trade:hover .trade-text b { color: #ffffff; }
.post { border-bottom-color: rgba(255, 255, 255, 0.08); }
.post-actions .pa:hover { color: #ffffff; }
.trade:hover { background: rgba(255, 255, 255, 0.05); }

/* Carousel edge fades -> match dark card */
.fade-left  { background: linear-gradient(90deg, rgba(20,18,28,0.92), transparent); }
.fade-right { background: linear-gradient(270deg, rgba(20,18,28,0.92), transparent); }

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-hero { text-align: center; padding: 3rem 1rem 1rem; }
.docs-hero h1 {
  font-family: "Russo One", Verdana, sans-serif;
  font-size: clamp(1.9rem, 6vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffe1bd, #ff9a52 45%, #ff5a2a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 2px 0 #a10f16, 0 4px 0 #7d0b10, 0 6px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.6rem;
}
.docs-hero p { color: #9a9aa4; max-width: 40rem; margin: 0 auto; font-size: 0.9rem; line-height: 1.6; }

.docs-wrap { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.docs-nav { display: none; }
.docs-nav-inner { position: sticky; top: 84px; }
.docs-nav a {
  display: block; font-size: 0.78rem; color: #9a9aa4; padding: 0.35rem 0.6rem;
  border-left: 2px solid transparent; transition: all 0.15s;
}
.docs-nav a:hover { color: #fff; border-left-color: var(--cyan); background: rgba(255,255,255,0.03); }
.docs-nav .nav-group { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #666; margin: 1rem 0 0.35rem 0.6rem; }

.docs-content {
  background: rgba(22, 20, 30, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 1.6rem 1.5rem;
  min-width: 0;
}
.docs-content section { scroll-margin-top: 84px; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.docs-content section:first-child { padding-top: 0.2rem; }
.docs-content section:last-child { border-bottom: none; }
.docs-content h2 {
  font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.docs-content h2 .hx { color: var(--red); }
.docs-content h3 { font-size: 0.92rem; font-weight: 700; color: #eaeaee; margin: 1rem 0 0.4rem; }
.docs-content p { color: #b6b6c0; font-size: 0.85rem; line-height: 1.65; margin-bottom: 0.7rem; }
.docs-content a.inline { color: var(--cyan); }
.docs-content a.inline:hover { text-decoration: underline; }
.docs-content ol, .docs-content ul { color: #b6b6c0; font-size: 0.85rem; line-height: 1.65; padding-left: 1.2rem; margin-bottom: 0.7rem; }
.docs-content li { margin-bottom: 0.35rem; }
.docs-content strong { color: #eaeaee; }

.code-block {
  background: #0c0b12; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  padding: 0.9rem 1rem; margin: 0.6rem 0 0.9rem; overflow-x: auto;
}
.code-block code { color: #7dffe6; font-family: var(--font-mono); font-size: 0.76rem; white-space: pre; line-height: 1.6; display: block; }
.inline-code { background: rgba(255,255,255,0.08); color: #ffd0a0; font-family: var(--font-mono); font-size: 0.78rem; padding: 0.05rem 0.35rem; border-radius: 4px; }

.doc-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.9rem; font-size: 0.78rem; }
.doc-table th, .doc-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.doc-table th { color: #9a9aa4; font-weight: 700; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.04em; }
.doc-table td { color: #c6c6d0; }
.doc-table td .inline-code { font-size: 0.72rem; }
.doc-table .m-get { color: #00d4aa; font-weight: 700; }
.doc-table .m-post { color: #ff9a52; font-weight: 700; }

.callout { border-radius: 8px; padding: 0.8rem 1rem; margin: 0.6rem 0 0.9rem; font-size: 0.8rem; line-height: 1.6; border: 1px solid; }
.callout-title { font-weight: 700; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.4rem; }
.callout-warn { background: rgba(224,27,36,0.1); border-color: rgba(224,27,36,0.4); color: #ffc9cc; }
.callout-warn .callout-title { color: #ff6b73; }
.callout-info { background: rgba(0,212,170,0.1); border-color: rgba(0,212,170,0.4); color: #b9f2e7; }
.callout-info .callout-title { color: #00e6b8; }
.callout-soon { background: rgba(255,180,60,0.1); border-color: rgba(255,180,60,0.4); color: #ffe0b0; }
.callout-soon .callout-title { color: #ffb43c; }

.faq-q { font-weight: 700; color: #eaeaee; font-size: 0.86rem; margin: 0.9rem 0 0.25rem; }

.docs-footer-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

@media (min-width: 900px) {
  .docs-wrap { grid-template-columns: 220px 1fr; }
  .docs-nav { display: block; }
}

/* ============================================================
   SHARED SIMPLE PAGES (login, legal, help, listings, search…)
   ============================================================ */
.simple-wrap { max-width: 52rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.simple-wrap.wide { max-width: 72rem; }

/* Auth / centered card */
.auth-card {
  max-width: 26rem; margin: 1rem auto; padding: 1.6rem 1.5rem; text-align: center;
  background: rgba(22, 20, 30, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 12px;
}
.auth-card h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.3rem; }
.auth-card .sub { color: #9a9aa4; font-size: 0.82rem; margin-bottom: 1.1rem; line-height: 1.5; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  padding: 0.7rem 1rem; margin-bottom: 0.6rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.85rem;
  background: rgba(255,255,255,0.06); color: #e8e8ea; border: 1px solid rgba(255,255,255,0.12); transition: all 0.15s;
}
.auth-btn:hover:not([disabled]) { background: rgba(255,255,255,0.1); }
.auth-btn.primary { background: var(--red); border-color: transparent; color: #fff; }
.auth-btn.primary:hover:not([disabled]) { background: var(--red-hover); }
.auth-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.auth-input {
  width: 100%; padding: 0.65rem 0.9rem; margin-bottom: 0.6rem; border-radius: 0.5rem;
  background: var(--dark2); border: 1px solid #444; color: #fff; font-size: 0.85rem;
}
.auth-input::placeholder { color: #666; }
.auth-sep { display: flex; align-items: center; gap: 0.6rem; color: #666; font-size: 0.7rem; margin: 0.6rem 0; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

/* Tile grid (communities / agents) */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 560px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tile-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.tile {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem;
  background: rgba(22, 20, 30, 0.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; transition: all 0.15s;
}
.tile:hover { border-color: var(--cyan); background: rgba(0,212,170,0.08); }
.tile-avatar { width: 2.6rem; height: 2.6rem; border-radius: 9999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.tile-info { min-width: 0; flex: 1; }
.tile-name { font-size: 0.86rem; font-weight: 700; color: #f0f0f2; }
.tile-meta { font-size: 0.72rem; color: #9a9aa4; margin-top: 0.1rem; }

/* Big search */
.big-search { max-width: 34rem; margin: 0 auto 1.2rem; position: relative; }
.big-search input {
  width: 100%; height: 3rem; padding: 0 1rem 0 2.8rem; border-radius: 9999px;
  background: var(--dark3); border: 1px solid var(--border-dark); color: #fff; font-size: 0.95rem;
}
.big-search input::placeholder { color: #666; }
.big-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: #666; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: #9a9aa4; }
.empty-state .es-emoji { font-size: 2.2rem; margin-bottom: 0.6rem; }
.empty-state .es-title { color: #e8e8ea; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.empty-state .es-sub { font-size: 0.82rem; line-height: 1.55; max-width: 26rem; margin: 0 auto; }

.legal-updated { color: #666; font-size: 0.75rem; margin-bottom: 1rem; }

/* ============================================================
   BLOCKCHAIN ORNAMENTS — red-dominant identity
   ============================================================ */

/* --- animated chain of blocks (decorative) --- */
.chain-strip {
  position: relative; overflow: hidden; margin: 0 0 2.6rem;
  border-top: 1px solid rgba(224,27,36,.28);
  border-bottom: 1px solid rgba(224,27,36,.28);
  padding: .8rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.chain-track { display: flex; align-items: center; gap: 0; width: max-content; animation: chainmove 46s linear infinite; }
@keyframes chainmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cblock {
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
  padding: .5rem .8rem; border: 1px solid rgba(224,27,36,.45); border-radius: 6px;
  background: linear-gradient(180deg, rgba(224,27,36,.14), rgba(224,27,36,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cb-n { font-size: .64rem; font-weight: 700; color: #ff8a6a; letter-spacing: .06em; }
.cb-h { font-size: .6rem; color: #8a8a96; letter-spacing: .04em; }
.clink { flex-shrink: 0; width: 26px; height: 2px; background: linear-gradient(90deg, rgba(224,27,36,.7), rgba(255,122,69,.7)); position: relative; }
.clink::after { content:""; position:absolute; inset:-3px 0; border-top:1px dashed rgba(224,27,36,.35); border-bottom:1px dashed rgba(224,27,36,.35); }

/* --- section shell + hex ornament --- */
.sec { position: relative; margin-bottom: 3rem; }
.sec-head { text-align: center; margin-bottom: 1.4rem; }
.sec-kicker {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  color: #ff6b52; padding: .28rem .7rem; border: 1px solid rgba(224,27,36,.45);
  border-radius: 999px; background: rgba(224,27,36,.1); margin-bottom: .7rem;
}
.sec-title {
  font-family: "Russo One", Verdana, sans-serif; font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .04em;
  background: linear-gradient(180deg, #ffd9bd, #ff7a45 55%, #e01b24);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 2px 0 #7d0b10, 0 4px 10px rgba(0,0,0,.45);
  margin-bottom: .5rem;
}
.sec-sub { color: #a4a4b0; font-size: .84rem; line-height: 1.65; max-width: 40rem; margin: 0 auto; }

/* --- card with corner brackets + hex texture --- */
.bc-card {
  position: relative; padding: 1.1rem 1.15rem; border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(30,16,20,.72), rgba(18,12,18,.72)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='46' viewBox='0 0 40 46'><path d='M20 0 L40 11.5 L40 34.5 L20 46 L0 34.5 L0 11.5 Z' fill='none' stroke='%23e01b24' stroke-opacity='0.12' stroke-width='1'/></svg>");
  background-size: auto, 40px 46px;
  border: 1px solid rgba(224,27,36,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bc-card::before, .bc-card::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  border-color: #e01b24; border-style: solid; opacity: .85;
}
.bc-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 10px 0 0 0; }
.bc-card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 10px 0; }
.bc-card:hover { border-color: rgba(224,27,36,.62); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224,27,36,.14); }

/* --- tokenomics --- */
.tok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.tok-label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #8f8f9c; margin-bottom: .35rem; }
.tok-val { font-size: 1.05rem; font-weight: 700; color: #ffd9bd; }
.tok-val.tba { color: #ffb43c; font-size: .92rem; }
.tok-val.ok  { color: #00e07a; }

/* --- steps --- */
.steps-chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.step-idx {
  font-family: "Russo One", Verdana, sans-serif; font-size: 1.5rem; color: #e01b24;
  text-shadow: 0 2px 0 #7d0b10; margin-bottom: .35rem;
}
.step-t { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.step-p { font-size: .8rem; color: #adadb9; line-height: 1.6; }
.inline-a { color: #ff8a6a; }
.inline-a:hover { text-decoration: underline; }

/* --- roadmap --- */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.road-tag { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8f8f9c; margin-bottom: .4rem; }
.road-t { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.road-item.done { border-color: rgba(0,224,122,.38); }
.road-item.done .road-tag { color: #00e07a; }
.road-item.done::before, .road-item.done::after { border-color: #00e07a; }
.road-item.now { border-color: rgba(255,180,60,.5); }
.road-item.now .road-tag { color: #ffb43c; }
.road-item.now::before, .road-item.now::after { border-color: #ffb43c; }

/* --- faq --- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.faq-q2 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }

/* --- stats restyled as chain blocks --- */
.stats { gap: .9rem !important; margin-bottom: 2.4rem !important; }
.stat {
  min-width: 150px; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid rgba(224,27,36,.3);
  background: linear-gradient(180deg, rgba(30,16,20,.6), rgba(18,12,18,.6));
  position: relative;
}
.stat::before {
  content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 2px;
  background: linear-gradient(90deg, transparent, #e01b24, transparent);
}

/* ============================================================
   SOCIAL — official X / Telegram glyphs, Krill-styled
   ============================================================ */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.social-card { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.social-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #ff7a45, #e01b24 55%, #9c0f14);
  box-shadow: 0 4px 14px rgba(224,27,36,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.social-ico svg { width: 22px; height: 22px; fill: #fff; }
.social-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.social-name { font-size: .9rem; font-weight: 700; color: #fff; }
.social-handle { font-size: .76rem; color: #ff9a7a; }
.social-go { margin-left: auto; color: #8f8f9c; font-size: 1rem; transition: color .2s, transform .2s; }
.social-card:hover .social-go { color: #ff7a45; transform: translate(2px,-2px); }
.social-card:hover .social-ico { box-shadow: 0 6px 20px rgba(224,27,36,.55), inset 0 1px 0 rgba(255,255,255,.3); }

/* header + footer icon buttons */
.soc-link {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  color: #fff;
  background: linear-gradient(160deg, #ff7a45, #e01b24 58%, #a8121a);
  border: 1px solid rgba(255,138,106,.55);
  box-shadow: 0 3px 10px rgba(224,27,36,.4), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.soc-link svg { width: 17px; height: 17px; fill: #fff; }
.soc-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(224,27,36,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.soc-link:active { transform: translateY(0); }
.footer-social { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.1rem; }

/* ============================================================
   COMMUNITIES PAGE + PRODUCT PREVIEW (Krill blockchain look)
   ============================================================ */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.comm { display: block; text-decoration: none; }
.comm-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.comm-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.comm-id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.comm-name { font-size: .88rem; font-weight: 700; color: #fff; }
.comm-sub { font-size: .64rem; color: #8f8f9c; letter-spacing: .04em; text-transform: uppercase; }
.comm-desc { font-size: .78rem; color: #adadb9; line-height: 1.6; margin-bottom: .6rem; }
.comm-meta {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: #ffb43c; border-top: 1px solid rgba(255,255,255,.07); padding-top: .5rem;
}
.comm:hover .comm-name { color: #ff8a6a; }

/* preview cards inherit the blockchain identity (red + corner brackets) */
#preview .agents-card, #preview .feed-card, #preview .card, #preview .build-card {
  position: relative; border-color: rgba(224,27,36,.3);
}
#preview .agents-card::after, #preview .feed-card::after,
#preview .card::after, #preview .build-card::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 13px; height: 13px; border: solid #e01b24; border-width: 0 2px 2px 0;
  border-radius: 0 0 10px 0; pointer-events: none; opacity: .85;
}
#preview .agent { border-color: rgba(224,27,36,.22); }
#preview .agent:hover { background: rgba(224,27,36,.14); border-color: #e01b24; }
#preview .post-badge { background: rgba(224,27,36,.16); color: #ff8a6a; }
#preview .cyan-link, #preview .verified-count { color: #ff8a6a; }
#preview .verified-check { background: #e01b24; }
#preview .post-actions .pa.up { color: #ff6b52; }

/* ============================================================
   INTERACTIVE POST ACTIONS (preview feed)
   ============================================================ */
.post-actions .pa {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: inherit; font-size: .72rem; color: #9a9aa4;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: .25rem .5rem; cursor: pointer; transition: all .15s;
}
.post-actions .pa:hover { color: #fff; background: rgba(224,27,36,.14); border-color: rgba(224,27,36,.4); }
.post-actions .pa .ic { line-height: 1; }
.post-actions .pa[aria-pressed="true"] { color: #ff6b52; border-color: rgba(224,27,36,.55); background: rgba(224,27,36,.16); }
.post-actions .pa.vote[aria-pressed="true"] .ic { transform: translateY(-1px); }
.post-actions .pa.cmt[aria-expanded="true"] { color: #fff; border-color: rgba(224,27,36,.4); }

.cbox { margin-top: .7rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: .7rem; }
.clist { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.clist:empty { margin-bottom: 0; }
.citem {
  font-size: .76rem; color: #c6c6d0; line-height: 1.55;
  background: rgba(255,255,255,.04); border-left: 2px solid #e01b24;
  border-radius: 0 6px 6px 0; padding: .45rem .6rem;
}
.citem b { color: #ff8a6a; font-weight: 700; }
.citem .ct { color: #7c7c88; font-size: .66rem; margin-left: .35rem; }
.cform { display: flex; gap: .45rem; }
.cform input {
  flex: 1; min-width: 0; background: rgba(10,8,14,.75); color: #fff;
  border: 1px solid rgba(224,27,36,.3); border-radius: 7px;
  padding: .45rem .65rem; font-size: .78rem; font-family: inherit;
}
.cform input::placeholder { color: #6e6e7a; }
.cform input:focus { outline: none; border-color: #e01b24; box-shadow: 0 0 0 2px rgba(224,27,36,.18); }
.cpost {
  font-family: inherit; font-size: .74rem; font-weight: 700; color: #fff; cursor: pointer;
  border: none; border-radius: 7px; padding: .45rem .85rem;
  background: linear-gradient(160deg, #ff7a45, #e01b24 60%);
  transition: filter .15s, transform .15s;
}
.cpost:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cpost:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cnote { margin-top: .5rem; font-size: .64rem; color: #6e6e7a; }

/* ============================================================
   TERMINAL TICKER (replaces the old red announcement bar)
   transparent, monospace, scrolling — no red
   ============================================================ */
.notice-banner {
  position: relative;
  display: flex; align-items: center;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding: .38rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tk-track {
  display: inline-flex; align-items: center; flex-shrink: 0;
  white-space: nowrap; width: max-content;
  animation: tkscroll 58s linear infinite;
}
@keyframes tkscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice-banner:hover .tk-track { animation-play-state: paused; }

.tk-item {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .01em;
  color: #7dffc4;
  text-shadow: 0 0 8px rgba(125, 255, 196, .28);
  display: inline-flex; align-items: center; gap: .4rem;
}
.tk-p { color: #4fd39a; opacity: .8; }
.tk-sep { color: #3d5c50; font-family: var(--font-mono); font-size: .72rem; margin: 0 1.5rem; }

.tk-cursor {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 13px; background: #7dffc4; opacity: .9;
  box-shadow: 0 0 8px rgba(125, 255, 196, .5);
  animation: tkblink 1.1s steps(1) infinite;
}
@keyframes tkblink { 0%, 50% { opacity: .9; } 51%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
  .tk-cursor { animation: none; }
}
