/* ==========================================================================
   RugProof - Premium Timber Station & Cyber Theme
   Inspire by Timber Inspection Station, AuraTrade, with sleek modern colors
   ========================================================================== */

/* --- CSS Reset & Global Tokens --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Universal Accents */
  --accent-gold: #F59E0B;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-cyan: #38BDF8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);

  /* Status Colors */
  --c-safer: #10B981;
  --c-safer-bg: rgba(16, 185, 129, 0.14);
  --c-moderate: #F59E0B;
  --c-moderate-bg: rgba(245, 158, 11, 0.14);
  --c-warn: #F97316;
  --c-warn-bg: rgba(249, 115, 22, 0.14);
  --c-danger: #EF4444;
  --c-danger-bg: rgba(239, 68, 68, 0.16);
}

/* ==========================================
   DARK THEME (Default & Master Aesthetic)
   Rich Slate Obsidian Canvas + Warm Titanium Timber Frames
   ========================================== */
html[data-theme="dark"] {
  --bg-canvas: #090D16;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151D2E 0%, #0A0E17 55%, #060910 100%);
  --bg-subtle-grid: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  
  --board-bg: #111724;
  --board-outer-border: #2A364E;
  --board-inner-border: #1D2638;
  --board-bevel-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
  --board-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --panel-card-bg: #161F30;
  --panel-card-hover: #1A253A;
  --panel-card-border: #232F46;
  
  --input-bg: #0D1320;
  --input-border: #2C3A54;
  --input-focus: #F59E0B;

  --text-main: #FFFFFF;
  --text-heading: #F8FAFC;
  --text-sub: #E2E8F0;
  --text-muted: #8E9BB2;
  --text-dim: #64748B;

  --rivet-color-1: #FDE68A;
  --rivet-color-2: #D97706;
  --rivet-color-3: #78350F;
  --rivet-shadow: rgba(0, 0, 0, 0.8);

  --header-bg: rgba(12, 17, 27, 0.88);
  --header-border: rgba(255, 255, 255, 0.08);

  --btn-inspect-bg: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --btn-inspect-text: #0B0F19;
  --btn-inspect-shadow: 0 4px 18px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);

  --btn-check-bg: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  --btn-check-border: #334155;
  --btn-check-text: #F8FAFC;
  --btn-check-hover: #26344B;

  --btn-dex-bg: rgba(56, 189, 248, 0.12);
  --btn-dex-border: rgba(56, 189, 248, 0.3);
  --btn-dex-text: #38BDF8;

  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.12);
  --chip-text: #CBD5E1;
}

/* ==========================================
   LIGHT THEME
   Warm Ivory Slate Canvas + Chestnut Bronze Frames
   ========================================== */
html[data-theme="light"] {
  --bg-canvas: #F4F1EA;
  --bg-gradient: radial-gradient(circle at 50% 0%, #FAF8F4 0%, #EDE7DC 60%, #E4DDD0 100%);
  --bg-subtle-grid: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);

  --board-bg: #EAE3D5;
  --board-outer-border: #C8BCAC;
  --board-inner-border: #DCD2C3;
  --board-bevel-shadow: 0 12px 32px rgba(92, 70, 48, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
  --board-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --panel-card-bg: #FFFFFF;
  --panel-card-hover: #FCFBF8;
  --panel-card-border: #DDD5C7;

  --input-bg: #FFFFFF;
  --input-border: #C4B8A6;
  --input-focus: #D97706;

  --text-main: #1C1917;
  --text-heading: #0C0A09;
  --text-sub: #44403C;
  --text-muted: #78716C;
  --text-dim: #A8A29E;

  --rivet-color-1: #FBBF24;
  --rivet-color-2: #B45309;
  --rivet-color-3: #78350F;
  --rivet-shadow: rgba(0, 0, 0, 0.3);

  --header-bg: rgba(244, 241, 234, 0.92);
  --header-border: rgba(0, 0, 0, 0.08);

  --btn-inspect-bg: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  --btn-inspect-text: #FFFFFF;
  --btn-inspect-shadow: 0 4px 14px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);

  --btn-check-bg: #F5F0E6;
  --btn-check-border: #D1C7B7;
  --btn-check-text: #292524;
  --btn-check-hover: #EBE3D3;

  --btn-dex-bg: rgba(2, 132, 199, 0.1);
  --btn-dex-border: rgba(2, 132, 199, 0.3);
  --btn-dex-text: #0284C7;

  --chip-bg: rgba(0, 0, 0, 0.04);
  --chip-border: rgba(0, 0, 0, 0.1);
  --chip-text: #44403C;
}

/* --- Base Body & Typography --- */
body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-main {
  flex: 1;
  padding-bottom: 60px;
}

h1, h2, h3, h4, .brand-name, .station-title, .yard-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.18s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 100;
  transition: all 0.2s ease;
}

.site-header.sticky {
  position: sticky;
  top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 30%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #1C1917 30%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Pills */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .main-nav {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-pill {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill.active {
  color: #0B0F19;
  background: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

html[data-theme="light"] .nav-pill.active {
  color: #FFFFFF;
}

/* Header Right: Stats strip + Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-stats-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 10px;
  min-width: 68px;
}

html[data-theme="light"] .stat-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-heading);
}

.stat-num.highlight {
  color: var(--accent-gold);
}

.stat-num.red {
  color: var(--c-danger);
}

.stat-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

html[data-theme="light"] .theme-toggle {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: rotate(15deg);
}

html[data-theme="dark"] .ic-moon { display: none; }
html[data-theme="light"] .ic-sun { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ==========================================================================
   STATION BOARD COMPONENT (Timber / Cyber Panel Frame + Rivets)
   ========================================================================== */
.station-board {
  position: relative;
  background: var(--board-bg);
  border: 3px solid var(--board-outer-border);
  border-radius: 20px;
  box-shadow: var(--board-bevel-shadow), var(--board-highlight);
  padding: 32px 36px;
  margin-bottom: 28px;
  overflow: hidden;
}

/* 4 Brass Corner Rivets / Studs */
.station-rivet {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--rivet-color-1) 0%, var(--rivet-color-2) 60%, var(--rivet-color-3) 100%);
  box-shadow: 0 1px 3px var(--rivet-shadow), inset 0 0 1px rgba(255, 255, 255, 0.6);
  z-index: 5;
  pointer-events: none;
}

.station-rivet.tl { top: 12px; left: 12px; }
.station-rivet.tr { top: 12px; right: 12px; }
.station-rivet.bl { bottom: 12px; left: 12px; }
.station-rivet.br { bottom: 12px; right: 12px; }

/* ==========================================================================
   HERO: TOKEN INSPECTION STATION
   ========================================================================== */
.hero-station-wrap {
  padding: 40px 0 24px;
}

.hero-station {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--board-bg) 0%, rgba(17, 23, 36, 0.95) 100%);
  border-width: 4px;
}

.station-header {
  margin-bottom: 26px;
}

.station-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.station-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-heading);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.station-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Inspection Search Bar */
.station-search-box {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
}

.station-search-box:focus-within {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.station-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.station-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 34px 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 130px;
  transition: all 0.18s ease;
}

html[data-theme="light"] .station-select {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.station-select:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.station-select.fixed {
  background-image: none;
  padding-right: 16px;
  display: grid;
  place-items: center;
}

.station-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.station-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.98rem;
  padding: 12px 16px;
  outline: none;
}

.station-input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-body);
}

.station-input.highlight-pulse {
  animation: pulseInput 0.8s ease;
}

@keyframes pulseInput {
  0% { background: rgba(245, 158, 11, 0.25); }
  100% { background: transparent; }
}

.station-inspect-btn {
  border: 0;
  background: var(--btn-inspect-bg);
  color: var(--btn-inspect-text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0 32px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--btn-inspect-shadow);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.station-inspect-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.station-inspect-btn:active {
  transform: translateY(0) scale(0.98);
}

.station-inspect-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Quick Test Chips */
.station-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.quick-chip {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.scan-status {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  animation: fadeIn 0.2s ease;
}

.scan-status.busy {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
}

.scan-status.err {
  color: var(--c-danger);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   2-COLUMN MAIN CONTENT & SIDEBAR GRID
   ========================================================================== */
.main-content-wrap {
  padding-top: 10px;
}

.content-grid-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: LIVE TIMBER YARD
   ========================================================================== */
.yard-board {
  padding: 28px 30px;
}

.yard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.yard-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.yard-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
}

.yard-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-safer);
  box-shadow: 0 0 8px var(--c-safer);
  animation: pulseGreen 1.6s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.live-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--c-safer);
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Chain Filter Tabs */
.yard-chain-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.yard-tab {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.yard-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.yard-tab.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.tab-dot.solana { background: #9945FF; }
.tab-dot.ethereum { background: #627EEA; }
.tab-dot.base { background: #0052FF; }
.tab-dot.bsc { background: #F3BA2F; }
.tab-dot.arbitrum { background: #28A0F0; }

/* Timber Cards Grid */
.timber-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.timber-card {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.timber-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 12px rgba(245, 158, 11, 0.1);
}

/* Timber Card Header */
.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tc-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.coin-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #1A2234;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.coin-icon.sm { width: 28px; height: 28px; }
.coin-icon.xl { width: 68px; height: 68px; }

.coin-fallback, .tc-fb {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  text-transform: uppercase;
}

.tc-icon.tc-fb {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.tc-name-wrap {
  min-width: 0;
}

.tc-symbol {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-chain-age {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Safety Badge Pill */
.tc-safety-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--sc-bg, rgba(16, 185, 129, 0.14));
  border: 1px solid var(--sc-color, #10B981);
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tc-safety-badge.lg {
  padding: 6px 14px;
  border-radius: 12px;
}

.tc-safety-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sc-color, #10B981);
  text-transform: uppercase;
}

.tc-safety-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sc-color, #10B981);
  line-height: 1;
}

/* Metrics Table */
.tc-metrics-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
}

html[data-theme="light"] .tc-metrics-table {
  background: rgba(0, 0, 0, 0.03);
}

.tc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.tc-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.tc-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.buys-sells .b-val { color: var(--c-safer); }
.buys-sells .s-val { color: var(--c-danger); }

/* Card Actions */
.tc-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tc-check-btn {
  background: var(--btn-check-bg);
  border: 1px solid var(--btn-check-border);
  color: var(--btn-check-text);
}

.tc-check-btn:hover {
  background: var(--btn-check-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.tc-dex-btn {
  background: var(--btn-dex-bg);
  border: 1px solid var(--btn-dex-border);
  color: var(--btn-dex-text);
  padding: 8px 12px;
}

.tc-dex-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

/* Yard Footer (Search & Pagination) */
.yard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .yard-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.yard-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 240px;
}

.yard-search input {
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
}

.yard-search svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.ys-clear {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 4px;
}

.yard-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yard-page-btn {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
}

.yard-page-btn:hover {
  background: var(--panel-card-hover);
  border-color: var(--accent-gold);
}

.yard-page-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0 6px;
}

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--panel-card-bg);
  border: 1px dashed var(--panel-card-border);
  border-radius: 14px;
}

/* ==========================================================================
   RIGHT COLUMN: SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  padding: 22px 24px;
  margin-bottom: 0;
}

.sw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .sw-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sw-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-icon {
  font-size: 1.1rem;
}

.sw-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.sw-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.sw-tag.danger {
  color: var(--c-danger);
  background: var(--c-danger-bg);
  border-color: rgba(239, 68, 68, 0.3);
}

.sw-tag.ok {
  color: var(--c-safer);
  background: var(--c-safer-bg);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Top Coins Widget List */
.top-coins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-coin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.16s ease;
}

.top-coin-row:hover {
  background: var(--panel-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateX(3px);
}

.tc-rank {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 24px;
}

.tc-icon, .rc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tc-details {
  flex: 1;
  min-width: 0;
}

.tc-symbol-txt {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
}

.tc-name-txt {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-values {
  text-align: right;
}

.tc-price-txt {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.tc-chg-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.tc-chg-badge.up {
  color: var(--c-safer);
  background: var(--c-safer-bg);
}

.tc-chg-badge.down {
  color: var(--c-danger);
  background: var(--c-danger-bg);
}

/* Recently Checked List (from Screenshot) */
.recent-checked-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-checked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.16s ease;
}

.recent-checked-item:hover {
  background: var(--panel-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateX(3px);
}

.rc-info {
  flex: 1;
  min-width: 0;
}

.rc-sym {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-heading);
}

.rc-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.rc-score-box {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  min-width: 38px;
  text-align: right;
}

/* Danger Radar List */
.danger-coins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.danger-coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 9px 12px;
  border-radius: 12px;
  transition: all 0.16s ease;
}

.danger-coin-row:hover {
  background: rgba(239, 68, 68, 0.14);
}

.danger-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--c-danger);
  background: rgba(239, 68, 68, 0.16);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Node Status Grid */
.node-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.node-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.node-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.node-pulse.ok {
  background: var(--c-safer);
  box-shadow: 0 0 6px var(--c-safer);
}

.node-name {
  font-weight: 600;
  color: var(--text-sub);
  flex: 1;
}

.node-stat {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* ==========================================================================
   REPORT / POST PAGE LAYOUT
   ========================================================================== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding-top: 30px;
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-hero {
  padding: 28px 32px;
  margin-bottom: 0;
}

.post-hero-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.post-hero-info {
  flex: 1;
  min-width: 240px;
}

.post-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.post-hero-title-row h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-heading);
}

.post-hero-title-row .sym {
  color: var(--accent-gold);
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chain-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
}

.addr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.addr:hover {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

.post-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-socials a {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
}

.post-socials a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Gauge Meter */
.score-gauge {
  position: relative;
  display: grid;
  place-items: center;
}

.score-gauge svg {
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

html[data-theme="light"] .gauge-track {
  stroke: rgba(0, 0, 0, 0.08);
}

.gauge-fill {
  fill: none;
  stroke: var(--sc, var(--accent-gold));
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.gauge-num {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-num b {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
}

.gauge-num span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.post-hero-grade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.grade-tag.lg {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--sc, var(--accent-gold));
  border: 1.5px solid var(--sc, var(--accent-gold));
}

.check-counts {
  display: flex;
  gap: 8px;
}

.cc {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.cc.pass { background: var(--c-safer-bg); color: var(--c-safer); }
.cc.warn { background: var(--c-warn-bg); color: var(--c-warn); }
.cc.fail { background: var(--c-danger-bg); color: var(--c-danger); }

.rescan-btn {
  background: var(--btn-check-bg);
  border: 1px solid var(--btn-check-border);
  color: var(--btn-check-text);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.rescan-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Market Stats Grid in Post */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.m-stat {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.m-stat b {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.m-stat .chg {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.m-stat .chg.up { color: var(--c-safer); }
.m-stat .chg.down { color: var(--c-danger); }
.m-stat .up-t { color: var(--c-safer); }
.m-stat .down-t { color: var(--c-danger); }

/* Security Checks List */
.checks-panel, .verdict-panel {
  padding: 24px 28px;
}

.checks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  padding: 14px 16px;
  border-radius: 12px;
}

.check-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.check-item.pass .check-ic { background: var(--c-safer-bg); color: var(--c-safer); }
.check-item.warn .check-ic { background: var(--c-warn-bg); color: var(--c-warn); }
.check-item.fail .check-ic { background: var(--c-danger-bg); color: var(--c-danger); }
.check-item.info .check-ic { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }

.check-body {
  flex: 1;
}

.check-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.check-body .pen {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-danger);
  margin-left: 6px;
}

.check-body span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.verdict-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.verdict-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Share & Embed */
.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-card-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.16s ease;
}

.share-btn:hover {
  background: var(--panel-card-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.embed-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.embed-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.embed-code {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 10px;
  border-radius: 8px;
  resize: none;
  outline: none;
}

/* ==========================================================================
   FAQ SECTION (AEO)
   ========================================================================== */
.faq-section {
  padding-top: 10px;
}

.faq-board {
  padding: 28px 32px;
}

.faq-head {
  margin-bottom: 20px;
}

.faq-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel-card-bg);
  border: 1px solid var(--panel-card-border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-gold);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  padding: 48px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 420px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-chains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-chains li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1080px) {
  .timber-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid-layout, .post-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-col, .post-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    background: var(--board-bg);
    border: 2px solid var(--board-outer-border);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-burger {
    display: flex;
  }
  .header-stats-strip {
    display: none;
  }
  .station-board {
    padding: 22px 18px;
  }
  .timber-cards-grid {
    grid-template-columns: 1fr;
  }
  .station-search-box {
    flex-direction: column;
    padding: 8px;
  }
  .station-select {
    width: 100%;
  }
  .station-inspect-btn {
    width: 100%;
    padding: 14px;
  }
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
