/* AppData Insight — styles.css */

:root {
  --bg: #080b10;
  --bg2: #0d1117;
  --bg3: #111820;
  --surface: #141c26;
  --surface2: #1a2535;
  --border: rgba(0,200,120,0.12);
  --border2: rgba(0,200,120,0.25);
  --green: #00e87a;
  --green2: #00c862;
  --green-dim: rgba(0,232,122,0.08);
  --green-glow: rgba(0,232,122,0.15);
  --red: #ff3b5c;
  --red-dim: rgba(255,59,92,0.08);
  --amber: #ffb830;
  --amber-dim: rgba(255,184,48,0.08);
  --blue: #38bdf8;
  --blue-dim: rgba(56,189,248,0.08);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.08);
  --orange: #f97316;
  --text: #e2e8f0;
  --text2: #b0bec5;
  --text3: #475569;
  --mono: 'Space Mono', monospace;
  --display: 'Syne', sans-serif;
  --body: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green2); border-radius: 2px; }

/* NAV — scoped to #navbar so it doesn't affect other <nav> elements (e.g. TOC) */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  backdrop-filter: blur(0px);
}
nav#navbar.scrolled {
  background: rgba(8,11,16,0.92);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
nav { } /* reset — prevent global nav styles leaking to TOC/other navs */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 1; }
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,232,122,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,232,122,0); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
/* Wallet Risk CTA button in nav */
.nav-links a.nav-wrs {
  color: #f59e0b;
  padding: 4px 12px;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 5px;
  background: rgba(245,158,11,0.07);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-links a.nav-wrs:hover {
  color: #fbbf24;
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.55);
}
.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--mono);
  border: none;
  background: none;
  color: var(--text3);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--green); color: #000; font-weight: 700; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 1px;
  transition: all 0.25s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(8,11,16,0.98);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-lang-row {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,232,122,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,232,122,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,232,122,0.06) 0%, transparent 70%);
  top: 10%; left: -100px;
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.04) 0%, transparent 70%);
  bottom: 10%; right: -80px;
  animation: orb-float 10s ease-in-out infinite reverse;
}
@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ── Animated background brand image ──────────────────────────────── */
.hero-og-float {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 44vw, 580px);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  animation: hero-og-drift 12s ease-in-out infinite;
  filter: blur(0.4px);
  user-select: none;
}
@keyframes hero-og-drift {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
  33%       { transform: translate(-50%, -50%) translateY(-16px) rotate(0.4deg); }
  66%       { transform: translate(-50%, -50%) translateY(-7px) rotate(-0.3deg); }
}

.hero-content { max-width: 820px; position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--green-dim);
  border: 1px solid var(--border2);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.6s 0.1s forwards;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  opacity: 0;
  animation: fade-up 0.6s 0.2s forwards;
}
.hero-title-accent { color: var(--green); display: block; }
.hero-subtitle {
  font-family: var(--body);
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0;
  animation: fade-up 0.6s 0.35s forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s 0.5s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--green);
  color: #000;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-transform: uppercase;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,232,122,0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--text2);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-transform: uppercase;
}
.btn-secondary:hover { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s 0.65s forwards;
}
.hero-stat-val {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-stat-val span { color: var(--green); }
.hero-stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; font-family: var(--mono); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO 2-COLUMN LAYOUT */
.hero { justify-content: flex-start; align-items: center; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px 380px;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;   /* center on wide screens — without this the layout pinned left and the BTC chart sat mid-screen */
  position: relative;
  z-index: 1;
}
@media (min-width: 1680px) {
  .hero-layout { max-width: 1480px; grid-template-columns: 1fr 320px 430px; gap: 56px; }
}
.hero-layout .hero-content { max-width: none; }

/* ── WRS Hero Promo Card ─────────────────────────────────────────────────── */
.hero-wrs-promo {
  background: linear-gradient(160deg, rgba(0,232,122,0.07) 0%, rgba(0,232,122,0.02) 100%);
  border: 1px solid rgba(0,232,122,0.22);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(0,232,122,0.05);
}
.hwp-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
}
.hwp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}
.hwp-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.hwp-sub {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.hwp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  align-self: flex-start;
}
.hwp-btn:hover { opacity: .88; transform: translateY(-1px); }
.hwp-chains {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  letter-spacing: .06em;
}
.hwp-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,232,122,0.1);
}
.hwp-stat { display: flex; flex-direction: column; gap: 2px; }
.hwp-stat-val {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.hwp-stat-lbl {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hwp-stat-div {
  width: 1px; height: 28px;
  background: rgba(0,232,122,0.15);
  flex-shrink: 0;
}

/* Hero Right Panel — Chart Card */
.hero-chart-wrap {
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(0,232,122,0.04), 0 24px 60px rgba(0,0,0,0.5);
  animation: fade-up 0.6s 0.8s both;
}
.chart-card-header {
  padding: 12px 16px;
  background: rgba(8,11,16,0.7);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chart-card-symbols {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chart-card-sym {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text2);
}
.chart-card-sym.active { color: var(--text); }
.chart-live-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-live-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.chart-tv-container {
  height: 210px;
  position: relative;
}
.chart-tv-container iframe,
.chart-tv-container .tradingview-widget-container {
  width: 100% !important;
  height: 100% !important;
}
.chart-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.chart-stat-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
}
.chart-stat-cell:nth-child(2n) { border-right: none; }
.chart-stat-cell:nth-child(3),
.chart-stat-cell:nth-child(4) {
  border-top: 1px solid var(--border);
}
.chart-stat-lbl {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.chart-stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 3px;
}
.chart-stat-num.red    { color: var(--red); }
.chart-stat-num.green  { color: var(--green); }
.chart-stat-num.amber  { color: var(--amber); }
.chart-stat-chg {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}
.chart-stat-chg.up   { color: var(--green); }
.chart-stat-chg.down { color: var(--red); }

/* Wallet Risk Scorer — Hero Teaser Card */
.wrs-teaser-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(245,158,11,0.07) 0%, rgba(245,158,11,0.03) 100%);
  border-top: 1px solid rgba(245,158,11,0.25);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.wrs-teaser-card:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.14) 0%, rgba(245,158,11,0.06) 100%);
  border-top-color: rgba(245,158,11,0.5);
}
.wrs-teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}

.wrs-teaser-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wrs-teaser-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.wrs-teaser-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: #f59e0b;
  line-height: 1.2;
}
.wrs-teaser-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  line-height: 1.3;
  margin-top: 2px;
}
.wrs-teaser-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.wrs-teaser-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 7px;
  border-radius: 20px;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
}
.wrs-teaser-arrow {
  color: #f59e0b;
  font-size: 14px;
  transition: transform 0.2s;
}
.wrs-teaser-card:hover .wrs-teaser-arrow {
  transform: translateX(3px);
}

/* Edu link in nav */
.nav-edu-link {
  background: var(--green-dim);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 3px 10px;
  color: var(--green) !important;
}

/* X FEED SECTION */
.x-feed-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.x-feed-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
}
.x-feed-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.x-feed-inner {
  min-height: 400px;
  background: var(--bg);
}
.x-blocked-msg {
  padding: 60px 32px;
  text-align: center;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  display: none;
}

@media (max-width: 1200px) {
  .hero-layout { grid-template-columns: 1fr 280px; gap: 32px; }
  .hero-right { display: none; }
}
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-wrs-promo { max-width: 500px; }
  .hero-right { display: none; }
}

/* TICKER */
.ticker-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; }
.ticker-item .red { background: var(--red); color: var(--red); }
.ticker-item .green { background: var(--green); }
.ticker-item .amt { color: var(--red); font-weight: 700; }
.ticker-item .amtg { color: var(--green); font-weight: 700; }
.ticker-sep { color: var(--text3); padding: 0 8px; }

/* LIVE DASHBOARD */
.live-dashboard {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  position: relative;
  z-index: 1;
}
.live-dash-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1px 1fr 1px 1fr;
  align-items: stretch;
}
.live-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 12px 0;
}
.live-item {
  padding: 24px 28px;
}
.live-item:first-child { padding-left: 0; }
.live-item:last-child { padding-right: 0; }
.live-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-label-dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.2s step-end infinite;
}
.live-label-dot.green { background: var(--green); animation: pulse-dot 1.5s infinite; }
.live-counter {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: color 0.1s;
}
.live-value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.live-sub {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
}
.btc-up { color: var(--green); font-weight: 600; }
.btc-down { color: var(--red); font-weight: 600; }

/* THREAT LEVEL */
.threat-badge {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
  animation: threat-glow 1.8s ease-in-out infinite;
}
@keyframes threat-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(255,59,92,0.4); opacity: 1; }
  50% { text-shadow: 0 0 32px rgba(255,59,92,0.9); opacity: 0.8; }
}
.threat-badge.elevated {
  color: var(--amber);
  animation: threat-glow-amber 2s ease-in-out infinite;
}
@keyframes threat-glow-amber {
  0%, 100% { text-shadow: 0 0 12px rgba(255,184,48,0.4); }
  50% { text-shadow: 0 0 32px rgba(255,184,48,0.9); }
}

/* PROTOCOL SCANNER */
.scanner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.scanner-pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1s ease-in-out infinite;
}
.scanner-text {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* SECTION BASE */
section { padding: 100px 32px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--green);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc { color: var(--text2); max-width: 520px; font-size: 14px; line-height: 1.8; margin-bottom: 56px; }

/* LIVE ALERT BANNER */
.alert-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0;
  margin: 0;
  max-width: 100%;
}
.alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.alert-badge {
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: blink 1.5s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.alert-text { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.alert-text strong { color: var(--text); }
.alert-text a { color: var(--green); text-decoration: none; }
.alert-text a:hover { text-decoration: underline; }

/* EXPLOIT CARDS */
.exploit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.exploit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}
.exploit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.exploit-card.critical::before { background: var(--red); }
.exploit-card.high::before { background: var(--amber); }
.exploit-card.medium::before { background: var(--blue); }
.exploit-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.exploit-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 10px; }
.exploit-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.exploit-severity {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.sev-critical { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,59,92,0.2); }
.sev-high { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(255,184,48,0.2); }
.sev-medium { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(56,189,248,0.2); }
.exploit-amount {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.exploit-meta { font-family: var(--mono); font-size: 11px; color: var(--text3); margin-bottom: 14px; }
.exploit-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
}
.exploit-desc { font-size: 13px; color: var(--text2); line-height: 1.7; margin-top: 12px; }

/* FORENSICS TOOLS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
}
.tool-tier {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tier-free { background: var(--green-dim); color: var(--green); border: 1px solid var(--border2); }
.tier-paid { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(255,184,48,0.2); }
.tier-freemium { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(56,189,248,0.2); }
.tool-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text);
}
.tool-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.tool-desc { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; }
.tool-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tool-card:hover .tool-link { color: var(--green); }

/* EXPLOIT CARD LINKS */
a.exploit-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.exploit-source {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a.exploit-card:hover .exploit-source { color: var(--green); }
.exploit-source-arrow { opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: translateX(-4px); }
a.exploit-card:hover .exploit-source-arrow { opacity: 1; transform: translateX(0); }

/* ATTACK ANATOMY */
.anatomy-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.anatomy-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.anatomy-title { font-family: var(--mono); font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.1em; }
.anatomy-steps { padding: 24px; display: flex; flex-direction: column; gap: 0; }
.anatomy-step {
  display: flex;
  gap: 20px;
  position: relative;
}
.anatomy-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -16px;
  width: 1px;
  background: var(--border);
}
.anatomy-step { padding-bottom: 24px; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.step-content { flex: 1; padding-top: 6px; }
.step-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.step-code {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  overflow-x: auto;
}

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 48px;
}
@media (max-width: 1000px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  min-width: 0;
}
.metric-label { font-family: var(--mono); font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.metric-val {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.metric-val.red { color: var(--red); }
.metric-val.green { color: var(--green); }
.metric-val.amber { color: var(--amber); }
.metric-sub { font-size: 10px; color: var(--text3); }

/* MINI CHART */
.mini-chart { width: 100%; height: 80px; margin-top: 10px; }

/* ADDRESS TRACER DEMO */
.tracer-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tracer-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tracer-dot { width: 8px; height: 8px; border-radius: 50%; }
.tracer-title { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.tracer-body { padding: 20px; }
.tracer-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tracer-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.tracer-input:focus { border-color: var(--green); }
.tracer-input::placeholder { color: var(--text3); }
.tracer-btn {
  padding: 10px 20px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.tracer-btn:hover { background: #fff; }
.tracer-result { display: none; }
.tracer-result.show { display: block; }
.tracer-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
  overflow-x: auto;
}
.flow-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  min-width: 90px;
}
.flow-node .addr { color: var(--green); font-size: 10px; }
.flow-node .label { color: var(--text2); font-size: 10px; margin-top: 2px; }
.flow-node.flagged { border-color: var(--red); }
.flow-node.flagged .addr { color: var(--red); }
.flow-arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  padding: 0 6px;
  white-space: nowrap;
}
.flow-arrow .amt { display: block; color: var(--amber); font-size: 10px; text-align: center; }
.tracer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
}
.tag.danger { border-color: rgba(255,59,92,0.3); color: var(--red); background: var(--red-dim); }
.tag.warn { border-color: rgba(255,184,48,0.3); color: var(--amber); background: var(--amber-dim); }
.tag.ok { border-color: var(--border2); color: var(--green); background: var(--green-dim); }

/* INTELLIGENCE FEED / ARTICLES */
.article-featured {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s;
  margin-bottom: 20px;
}
.article-featured:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.article-featured-cover {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.article-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-cover::before,
.article-featured-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.15) 3px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
}
.cover-icon {
  font-size: 48px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(0,232,122,0.3));
}
.cover-forensic { background: linear-gradient(135deg, #0d2018, #081510); border-bottom: 1px solid rgba(0,232,122,0.2); }
.cover-analysis { background: linear-gradient(135deg, #0d1828, #081020); border-bottom: 1px solid rgba(56,189,248,0.2); }
.cover-data { background: linear-gradient(135deg, #1a1508, #120f05); border-bottom: 1px solid rgba(255,184,48,0.2); }
.cover-breaking { background: linear-gradient(135deg, #1a0810, #14060c); border-bottom: 1px solid rgba(255,59,92,0.2); }
.cover-tool { background: linear-gradient(135deg, #100f1a, #0c0a16); border-bottom: 1px solid rgba(167,139,250,0.2); }
.cover-threat { background: linear-gradient(135deg, #1a0f08, #150c05); border-bottom: 1px solid rgba(249,115,22,0.2); }
.article-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-cat {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.article-cat.forensic { color: var(--green); }
.article-cat.analysis { color: var(--blue); }
.article-cat.data { color: var(--amber); }
.article-cat.breaking { color: var(--red); }
.article-cat.tool { color: var(--purple); }
.article-cat.threat { color: var(--orange); }
.article-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
  flex: 1;
}
.article-featured .article-title { font-size: 22px; margin-bottom: 16px; }
.article-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.article-footer {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: auto;
  flex-wrap: wrap;
  row-gap: 6px;
}
.article-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}
.article-readtime {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-left: 10px;
}
.article-readtime::before { content: '· '; }
.article-cta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.article-featured:hover .article-cta,
.article-card:hover .article-cta { opacity: 1; }
.article-soon {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* FUND ALERT TOAST */
.fund-alert-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid rgba(255,59,92,0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: none;
}
.fund-alert-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-badge {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: blink 1.5s step-end infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.toast-msg { color: var(--text); }
.toast-addr { color: var(--green); }

/* NEWSLETTER */
.newsletter-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,232,122,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-title { font-family: var(--display); font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.newsletter-sub { color: var(--text2); font-size: 14px; margin-bottom: 28px; max-width: 400px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.nl-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.nl-input:focus { border-color: var(--green); }
.nl-btn {
  padding: 12px 22px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.nl-btn:hover { background: #fff; }
.nl-note { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 12px; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { font-family: var(--display); font-weight: 800; font-size: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--text3); }

/* CANVAS BACKGROUND */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: none; }

/* SECTION BG STRIPE */
.stripe { background: var(--bg2); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .live-dash-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .live-divider { display: none; }
  .live-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }
  .live-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .live-item:nth-last-child(-n+2) { border-bottom: none; }
  .live-dash-inner { padding: 0 20px; }
  .live-item:first-child { padding-left: 0; }
  .live-item:nth-child(2) { padding-left: 20px; }
  .article-featured {
    grid-template-columns: 1fr;
  }
  .article-featured-cover { min-height: 200px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  section { padding: 60px 20px; }
  .hero-stats { gap: 24px; }
  .newsletter-wrap { padding: 28px 20px; }
  footer { padding: 30px 20px; }
  .alert-inner { padding: 12px 20px; }
  .live-dash-inner { grid-template-columns: 1fr; padding: 0 20px; }
  .live-item { border-right: none !important; }
  .live-item:nth-last-child(2) { border-bottom: 1px solid var(--border) !important; }
}

/* ── CHAT WIDGET ────────────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 450;
  font-family: var(--body);
}
.chat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #000;
  padding: 12px 22px 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,232,122,0.3);
  transition: all 0.2s;
  position: relative;
  user-select: none;
  border: none;
}
.chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,232,122,0.45); }
.chat-toggle.active { background: var(--surface2); color: var(--text); box-shadow: none; border: 1px solid var(--border2); }
.chat-toggle-icon { font-size: 18px; line-height: 1; }
.chat-notif {
  position: absolute;
  top: -5px; right: -5px;
  width: 20px; height: 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  border: 2px solid var(--bg);
  animation: blink 2s step-end infinite;
}
.chat-notif.notif-pop { animation: notif-bounce 0.4s ease, blink 2s step-end 0.5s infinite; }
@keyframes notif-bounce { 0%{transform:scale(0)} 60%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 62px; left: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  max-height: 540px;
}
.chat-window.open {
  display: flex;
  animation: chat-slide 0.25s ease;
}
@keyframes chat-slide {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Chat Header */
.chat-header {
  padding: 14px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--green-dim);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-name { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text); }
.chat-status { font-family: var(--mono); font-size: 10px; color: var(--green); letter-spacing: 0.05em; margin-top: 1px; }
.chat-close { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 16px; padding: 4px 6px; transition: color 0.2s; line-height: 1; }
.chat-close:hover { color: var(--text); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 260px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  animation: msg-in 0.2s ease;
}
@keyframes msg-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.chat-msg.bot {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.bot strong { color: var(--green); }
.chat-msg.user {
  background: var(--green);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: tdot 1.1s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot {
  0%,100% { transform: translateY(0); opacity: 0.3; }
  50%      { transform: translateY(-5px); opacity: 1; }
}

/* Quick Replies */
.chat-quick-replies {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  min-height: 44px;
  flex-shrink: 0;
}
.qr-btn {
  padding: 5px 13px;
  background: var(--green-dim);
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.4;
}
.qr-btn:hover { background: var(--green); color: #000; border-color: var(--green); transform: translateY(-1px); }

/* Input */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--body);
}
.chat-input:focus { border-color: var(--green); }
.chat-input::placeholder { color: var(--text3); }
.chat-send {
  padding: 9px 15px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  line-height: 1;
}
.chat-send:hover { background: #fff; }

@media (max-width: 480px) {
  .chat-widget { left: 12px; bottom: 12px; }
  .chat-window { width: calc(100vw - 24px); left: 0; }
}

/* PL HIDDEN BY DEFAULT */
[data-lang="pl"] { display: none; }
body.lang-pl [data-lang="pl"] { display: initial; }
body.lang-pl [data-lang="en"] { display: none; }
body.lang-pl .section-desc[data-lang="pl"] { display: block; }
body.lang-pl .hero-subtitle[data-lang="pl"] { display: block; }
body.lang-pl .article-featured-content [data-lang="pl"] { display: block; }

/* ── SKIP LINK ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--green);
  color: #000;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── GLOBAL FOCUS STATES ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ── READING PROGRESS BAR ───────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0,232,122,0.6);
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ── EXPLOIT FILTER BAR ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #000; }
.filter-btn[data-filter="critical"].active { background: var(--red); border-color: var(--red); }
.filter-btn[data-filter="high"].active { background: var(--amber); border-color: var(--amber); }
.filter-btn[data-filter="medium"].active { background: var(--blue); border-color: var(--blue); }

/* ── TOOL SEARCH ────────────────────────────────────────────── */
.tool-search-wrap {
  position: relative;
  margin-bottom: 24px;
  max-width: 380px;
}
.tool-search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}
.tool-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px 10px 38px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.tool-search:focus { border-color: var(--green); }
.tool-search::placeholder { color: var(--text3); }

/* Copy address button in tracer flow */
.addr-copy-btn {
  display: block;
  margin: 4px auto 0;
  padding: 2px 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}
.addr-copy-btn:hover { border-color: var(--green); color: var(--green); }

/* ── ARTICLE READER (article.html) ──────────────────────────── */
.art-page-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  align-items: start;
}

/* Main content column */
.art-main { min-width: 0; }

.art-breadcrumb-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.art-breadcrumb-link:hover { color: var(--green); }

.art-header { margin-bottom: 48px; }

.art-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.art-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.art-title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.art-excerpt-lede {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 24px;
  border-left: 3px solid var(--green);
  padding-left: 18px;
}

.art-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
}
.art-meta-author strong { color: var(--text); }
.art-meta-sep { opacity: 0.4; }

/* Prose: rendered Markdown */
.prose { color: var(--text); }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 52px 0 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 36px 0 12px;
}
.prose p { margin-bottom: 18px; line-height: 1.85; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text2); font-style: italic; }
.prose code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--green);
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--green);
}
.prose blockquote {
  border-left: 3px solid var(--green);
  padding-left: 18px;
  color: var(--text2);
  margin: 24px 0;
  font-style: italic;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.prose li { margin-bottom: 6px; line-height: 1.7; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
  display: block;
}
.prose th {
  background: var(--surface);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prose td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.prose tr:hover td { background: var(--surface); color: var(--text); }

/* Inline code block (used in articles.json HTML content) */
.article-code {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 20px 0;
}

/* Inline table (used in articles.json HTML content) */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 12px;
  display: block;
  overflow-x: auto;
}
.article-table thead tr {
  background: var(--surface);
}
.article-table th {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.article-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.article-table tr:hover td { background: var(--surface); color: var(--text); }

/* Art-body (articles.json HTML) inherits prose-like treatment */
#art-body h2 { font-family: var(--display); font-size: clamp(20px,2.5vw,26px); font-weight:800; color:var(--text); margin:48px 0 16px; padding-top:32px; border-top:1px solid var(--border); }
#art-body h3 { font-family: var(--display); font-size: clamp(17px,2vw,20px); font-weight:700; color:var(--text); margin:36px 0 12px; }
#art-body p  { margin-bottom:18px; line-height:1.85; }
#art-body ul, #art-body ol { padding-left:24px; margin-bottom:18px; }
#art-body li { margin-bottom:6px; line-height:1.7; }
#art-body a  { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
#art-body strong { color:var(--text); font-weight:600; }
#art-body code { font-family:var(--mono); font-size:13px; background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:1px 6px; color:var(--green); }

/* Article footer: share + author */
.art-footer-block {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.art-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.art-share-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.art-share-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.18s;
}
.art-share-btn:hover { border-color: var(--green); color: var(--green); }
.art-share-copied {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

/* Author card */
.art-author-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-items: flex-start;
}
.author-avatar {
  font-size: 36px;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--green-dim);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}
.author-bio {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.author-x-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
}
.author-x-link:hover { text-decoration: underline; }

/* Related articles */
.art-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.art-related-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.art-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Sidebar */
.art-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.toc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.toc-heading {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.toc-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}
.toc-link {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  padding: 6px 18px;
  border-left: 2px solid transparent;
  transition: all 0.18s;
  line-height: 1.5;
}
.toc-link:hover { color: var(--text); border-left-color: var(--border2); }
.toc-link.active { color: var(--green); border-left-color: var(--green); background: var(--green-dim); }
.toc-sub { padding-left: 30px; font-size: 11px; }

.art-sidebar-back { padding: 4px 0; }
.art-back-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.art-back-link:hover { color: var(--green); }

/* Responsive article layout */
@media (max-width: 900px) {
  .art-page-wrap {
    grid-template-columns: 1fr;
    padding: 100px 20px 60px;
  }
  .art-sidebar { position: static; }
  .toc-card { display: none; }
  .art-related-grid { grid-template-columns: 1fr; }
}

/* ── ARTICLES SECTION FILTER (index.html) ───────────────────── */
.articles-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.articles-filter-bar .filter-btn { font-size: 10px; padding: 5px 14px; }

/* Highlighted articles from articles.js */
.article-card.has-content .article-cta::before {
  content: '📖 ';
  font-size: 10px;
}

/* ── X PROFILE PANEL ────────────────────────────────────────── */
.x-panel-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.x-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.x-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.x-profile-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--green-dim);
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.x-profile-info { flex: 1; }

.x-profile-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.x-profile-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.x-profile-bio {
  font-size: 12px;
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.6;
}

.x-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  margin-top: 4px;
}
.x-follow-btn:hover { background: var(--green); transform: scale(1.03); }

.x-threads { padding: 0 24px; }

.x-thread-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.x-thread-item:last-child { border-bottom: none; }

.x-thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.x-thread-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--border2);
  padding: 2px 7px;
  border-radius: 3px;
}

.x-thread-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}

.x-thread-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 8px;
}

.x-thread-read {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.x-thread-read:hover { opacity: 0.7; text-decoration: underline; }

.x-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.x-view-all:hover { color: var(--green); background: var(--green-dim); }

/* Right column */
.x-panel-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.x-articles-cta {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.x-articles-cta:hover { border-color: var(--green); background: var(--green-dim); }

.x-articles-cta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.x-articles-cta-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.x-articles-cta-sub {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.5;
}

.x-articles-cta-arrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.x-stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.x-stats-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.x-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.x-stats-row:last-child { border-bottom: none; }

.x-stats-item-label {
  font-size: 12px;
  color: var(--text2);
}

.x-stats-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}
.x-stats-val.green { color: var(--green); }
.x-stats-val.red   { color: var(--red); }
.x-stats-val.blue  { color: var(--blue); }

@media (max-width: 860px) {
  .x-panel-grid { grid-template-columns: 1fr; }
  .x-panel-right { flex-direction: row; flex-wrap: wrap; }
  .x-articles-cta, .x-stats-card { flex: 1 1 260px; }
}

/* ── DEFILLAMA LIVE HACK TRACKER ────────────────────────────── */
#hack-tracker {
  padding: 100px 32px 80px;
}

.ht-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ht-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ht-source-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.ht-updated {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}

.ht-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.ht-view-all {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.ht-view-all:hover { color: var(--blue); }

/* Table wrapper */
.ht-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Column headers */
.ht-thead {
  display: grid;
  grid-template-columns: 1fr 110px 130px 110px 90px;
  padding: 10px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.ht-th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

/* Data rows */
.ht-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px 110px 90px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  align-items: center;
  transition: background 0.15s;
}
.ht-row:last-child { border-bottom: none; }
.ht-row:hover { background: rgba(255,255,255,0.025); }

/* Left border accent by severity */
.ht-row-critical { border-left: 3px solid var(--red); }
.ht-row-high     { border-left: 3px solid var(--amber); }
.ht-row-medium   { border-left: 3px solid var(--blue); }
.ht-row-low      { border-left: 3px solid var(--text3); }

.ht-cell { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ht-name { display: flex; align-items: center; gap: 8px; overflow: hidden; }

.ht-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.ht-link:hover { color: var(--green); }

.ht-chain {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ht-amt { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.ht-critical { color: var(--red); }
.ht-high     { color: var(--amber); }
.ht-medium   { color: var(--blue); }
.ht-low      { color: var(--text3); }

.ht-type { font-size: 11px; color: var(--text3); }

.ht-date { font-family: var(--mono); font-size: 10px; color: var(--text3); }

/* Severity badge */
.ht-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
}
.ht-badge-critical { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(255,59,92,0.3); }
.ht-badge-high     { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(255,184,48,0.3); }
.ht-badge-medium   { background: var(--blue-dim);  color: var(--blue);  border: 1px solid rgba(56,189,248,0.3); }
.ht-badge-low      { background: var(--bg3);       color: var(--text3); border: 1px solid var(--border); }

/* Loading / error states */
.ht-loading {
  padding: 48px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ht-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.2s infinite;
}

.ht-error {
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}
.ht-error a { color: var(--blue); }

@media (max-width: 700px) {
  #hack-tracker { padding: 80px 16px 60px; }
  .ht-thead { grid-template-columns: 1fr 90px 80px; }
  .ht-row   { grid-template-columns: 1fr 90px 80px; }
  /* hide type and severity columns on small screens */
  .ht-type, .ht-date, .ht-cell:last-child,
  .ht-th:nth-child(3), .ht-th:nth-child(4), .ht-th:nth-child(5) { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.about-text {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.75;
  margin: 16px 0 28px;
  max-width: 560px;
}
.about-principles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-principle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-principle-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-principle-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text1);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.about-principle-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
/* About card (right column) */
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 80px;
}
.about-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #00b859 100%);
  color: #000;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(0,232,122,0.25);
}
.about-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text1);
}
.about-role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
}
.about-bio {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin: 8px 0 4px;
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.about-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.about-social-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,232,122,0.08);
}

@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-card { position: static; }
  .about-text { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   WORK WITH US SECTION
═══════════════════════════════════════════════════════════ */
.wwu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 36px;
}
.wwu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wwu-card:hover {
  border-color: rgba(0,232,122,0.3);
  box-shadow: 0 8px 32px rgba(0,232,122,0.07);
}
.wwu-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.wwu-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text1);
  text-transform: uppercase;
}
.wwu-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}
.wwu-cta {
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.wwu-cta-note {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
  font-style: italic;
}
.wwu-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--green);
  color: #000;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.wwu-btn:hover {
  background: #1fff8d;
  box-shadow: 0 0 24px rgba(0,232,122,0.4);
}

@media (max-width: 900px) {
  .wwu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wwu-grid { grid-template-columns: 1fr; }
}
