/* =============================================
   CRYPTAHUB — Main Stylesheet
   WordPress Theme v1.0.0
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=JetBrains+Mono:wght@300;400;600&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --bg:         #04040a;
  --bg2:        #07070f;
  --surface:    #0d0d1a;
  --surface2:   #111122;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.13);
  --accent:     #00e5c3;
  --accent-d:   #00b89c;
  --red:        #ff3d71;
  --green:      #00e5c3;
  --yellow:     #ffd60a;
  --text:       #eeeeff;
  --text2:      #9090b0;
  --muted:      #404060;
  --glow:       0 0 24px rgba(0,229,195,0.35);
  --glow-red:   0 0 24px rgba(255,61,113,0.35);
  --sidebar-w:  240px;
  --topbar-h:   56px;
  --ticker-h:   38px;
  --mobile-nav: 60px;
  --font-head:  'Syne', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --radius:     12px;
  --radius-sm:  8px;
}

/* ─── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(0,229,195,0.25); color: var(--text); }

/* ─── GRID BACKGROUND ────────────────────────────────────────── */
.ch-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,195,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,195,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ch-grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0,229,195,0.04) 0%, transparent 70%);
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.ch-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 300;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.ch-sidebar::-webkit-scrollbar { width: 4px; }
.ch-sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.ch-sidebar-inner { display: flex; flex-direction: column; min-height: 100%; }

.ch-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: -1;
}

.ch-main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}

.ch-page-content { flex: 1; }

/* ─── SIDEBAR LOGO ───────────────────────────────────────────── */
.ch-sidebar-logo {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ch-logo-link { display: block; text-decoration: none; }
.ch-logo-text {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
}
.logo-c   { color: var(--accent); }
.logo-hub { color: var(--text); }
.logo-dot { color: var(--red); }
.ch-logo-sub {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.25em;
  color: var(--muted); text-transform: uppercase;
  margin-top: 4px;
}

/* ─── SIDEBAR NAVIGATION ─────────────────────────────────────── */
.ch-nav-primary { padding: 16px 12px 8px; }
.ch-nav-list { list-style: none; }
.ch-nav-item-wrap { margin-bottom: 2px; }
.ch-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}
.ch-nav-item:hover { background: var(--surface); color: var(--text); }
.ch-nav-item.active {
  background: rgba(0,229,195,0.1);
  color: var(--accent);
  border-color: rgba(0,229,195,0.2);
}
.ch-nav-icon { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.ch-nav-item.active .ch-nav-icon { opacity: 1; }
.ch-nav-label { flex: 1; }
.ch-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.05em;
}
.ch-nav-badge--hot { background: var(--red); }

/* Sidebar section label */
.ch-nav-section-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
  padding: 16px 12px 6px;
}

/* ─── SIDEBAR BOTTOM ─────────────────────────────────────────── */
.ch-sidebar-bottom {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ch-sidebar-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 12px;
}
.ch-ss-item {}
.ch-ss-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
}
.ch-ss-label {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.ch-sidebar-cta {
  display: block; width: 100%;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  box-shadow: var(--glow);
}
.ch-sidebar-cta:hover { background: var(--accent-d); box-shadow: none; }

/* ─── MOBILE TOPBAR ──────────────────────────────────────────── */
.ch-mobile-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--mobile-nav);
  background: rgba(4,4,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.ch-mobile-logo {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em; text-decoration: none;
}
.ch-mobile-topbar-right { display: flex; align-items: center; gap: 12px; }
.ch-mobile-btc-price {
  font-family: var(--font-mono);
  font-size: 11px; display: flex; gap: 6px; align-items: center;
}
.mb-label { color: var(--muted); }
.mb-price { color: var(--accent); font-weight: 600; }
.ch-burger {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
}
.ch-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.ch-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ch-burger.open span:nth-child(2) { opacity: 0; }
.ch-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── DESKTOP TOPBAR ─────────────────────────────────────────── */
.ch-topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(4,4,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
}
.ch-topbar-search {
  flex: 1; max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 34px;
  position: relative; transition: border-color 0.2s;
}
.ch-topbar-search:focus-within { border-color: rgba(0,229,195,0.4); }
.ch-topbar-search input {
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px; width: 100%; letter-spacing: 0.02em;
}
.ch-topbar-search input::placeholder { color: var(--muted); }
.ch-search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  max-height: 280px; overflow-y: auto;
  z-index: 200; display: none;
}
.ch-search-results.open { display: block; }
.ch-topbar-markets {
  display: flex; align-items: center; gap: 12px;
  flex: 1;
}
.ch-tb-stat {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
}
.tbs-label { color: var(--muted); }
.tbs-val   { color: var(--text); font-weight: 600; }
.tbs-chg   { font-size: 10px; }
.tbs-chg.up { color: var(--green); }
.tbs-chg.dn { color: var(--red); }
.ch-tb-divider { width: 1px; height: 18px; background: var(--border2); }
.ch-topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ch-tb-btn {
  height: 30px; padding: 0 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer; border: none; text-decoration: none;
  display: flex; align-items: center;
  transition: all 0.2s; white-space: nowrap;
}
.ch-tb-btn.ghost {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}
.ch-tb-btn.ghost:hover { color: var(--text); border-color: var(--border2); }
.ch-tb-btn.solid {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow);
}
.ch-tb-btn.solid:hover { background: var(--accent-d); }

/* ─── TICKER ─────────────────────────────────────────────────── */
.ch-ticker-strip {
  height: var(--ticker-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center;
}
.ch-ticker-fade {
  position: absolute; top: 0; bottom: 0; width: 48px;
  z-index: 2; pointer-events: none;
}
.ch-ticker-fade--left  { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ch-ticker-fade--right { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.ch-ticker-track {
  display: flex; gap: 40px;
  animation: chTickerMove var(--ticker-speed, 40s) linear infinite;
  width: max-content; padding: 0 24px;
}
.ch-ticker-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  white-space: nowrap; flex-shrink: 0;
}
.ch-ti-name  { color: var(--text2); }
.ch-ti-price { color: var(--text); font-weight: 600; }
.ch-ti-chg   { font-size: 10px; }
.ch-ti-chg.up { color: var(--green); }
.ch-ti-chg.dn { color: var(--red); }
.ch-ticker-loading { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 0 24px; }

@keyframes chTickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PAGE ───────────────────────────────────────────────────── */
.ch-page { padding: 24px; max-width: 1600px; }

/* ─── LIVE DOT ───────────────────────────────────────────────── */
.ch-live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: chPulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes chPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── DOT ACCENT ─────────────────────────────────────────────── */
.ch-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.ch-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ch-section-title {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.ch-section-link {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--accent);
  text-decoration: none; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
.ch-section-link:hover { opacity: 0.7; }

/* ─── HERO BANNER ────────────────────────────────────────────── */
.ch-hero-banner {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0,229,195,0.04) 50%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 48px;
}
.ch-hero-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.ch-hero-banner::after {
  content: 'CRYPTAHUB';
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head); font-size: 110px;
  font-weight: 800; color: rgba(0,229,195,0.022);
  letter-spacing: -0.05em; white-space: nowrap; pointer-events: none;
}
.ch-hero-text { flex: 1; }
.ch-hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 10px;
}
.ch-hero-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.ch-hero-h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.ch-hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #4af0da);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ch-hero-desc { font-size: 14px; font-weight: 400; color: var(--text2); line-height: 1.7; }
.ch-hero-stats { display: flex; gap: 32px; flex-shrink: 0; }
.ch-hs-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600; color: var(--accent);
}
.ch-hs-label {
  font-size: 11px; color: var(--text2);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ─── OVERVIEW CARDS ─────────────────────────────────────────── */
.ch-overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.ch-ov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.25s;
  cursor: default; position: relative; overflow: hidden;
}
.ch-ov-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s;
}
.ch-ov-card:hover { border-color: var(--border2); }
.ch-ov-card:hover::after { transform: scaleX(1); }
.ch-ov-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 8px;
}
.ch-ov-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.ch-ov-change { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.ch-ov-change.up { color: var(--green); }
.ch-ov-change.dn { color: var(--red); }
.ch-ov-mini-chart { margin-top: 12px; }
.ch-ov-mini-chart canvas { width: 100% !important; }

/* ─── MAIN GRID ──────────────────────────────────────────────── */
.ch-main-grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 20px; margin-bottom: 24px; align-items: start;
}

/* ─── MARKET TABLE ───────────────────────────────────────────── */
.ch-market-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ch-table-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ch-table-header-left { display: flex; align-items: center; gap: 12px; }
.ch-plugin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,229,195,0.08);
  border: 1px solid rgba(0,229,195,0.2);
  border-radius: 6px; padding: 3px 9px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase;
}
.ch-plugin-badge::before {
  content: ''; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  animation: chPulse 2s infinite;
}
.ch-table-controls { display: flex; gap: 8px; align-items: center; }
.ch-table-tabs { display: flex; gap: 3px; }
.ch-ttab {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.05em; padding: 6px 12px;
  border-radius: 6px; cursor: pointer; border: none;
  background: transparent; color: var(--text2);
  transition: all 0.2s;
}
.ch-ttab.active { background: rgba(0,229,195,0.12); color: var(--accent); }
.ch-ttab:hover:not(.active) { color: var(--text); }

/* Table Scroll */
.ch-table-scroll { overflow-x: auto; }
.ch-market-table {
  width: 100%; border-collapse: collapse;
  min-width: 700px;
}
.ch-market-table thead tr { background: var(--bg2); }
.ch-market-table th {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.15em;
  color: var(--muted); text-transform: uppercase; font-weight: 400;
  padding: 11px 14px; text-align: left;
  white-space: nowrap; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
  transition: color 0.2s;
}
.ch-market-table th:hover { color: var(--text2); }
.th-right  { text-align: right !important; }
.th-center { text-align: center !important; }
.ch-market-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.033);
  transition: background 0.15s; cursor: pointer;
}
.ch-market-table tbody tr:hover { background: rgba(255,255,255,0.018); }
.ch-market-table tbody tr:last-child { border-bottom: none; }
.ch-market-table td { padding: 13px 14px; font-size: 13px; }

/* TD Types */
.td-rank { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.td-coin { display: flex; align-items: center; gap: 10px; }
.ch-coin-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}
.ch-coin-name { font-weight: 700; font-size: 13px; }
.ch-coin-sym  { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.td-price     { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-align: right; }
.td-chg       { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-align: right; }
.td-chg.up    { color: var(--green); }
.td-chg.dn    { color: var(--red); }
.td-mcap      { font-family: var(--font-mono); font-size: 12px; color: var(--text2); text-align: right; }
.td-spark     { text-align: center; }
.td-spark svg { width: 80px; height: 30px; display: inline-block; }
.td-action    { text-align: center; opacity: 0; transition: opacity 0.2s; }
tbody tr:hover .td-action { opacity: 1; }
.ch-trade-link {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 5px;
  background: rgba(0,229,195,0.1);
  border: 1px solid rgba(0,229,195,0.25);
  color: var(--accent); text-decoration: none;
  white-space: nowrap; transition: all 0.2s;
}
.ch-trade-link:hover { background: var(--accent); color: var(--bg); }

/* Table Loading */
.ch-table-loading td { text-align: center; padding: 40px; }
.ch-loading-indicator {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 20px 0;
}
.ch-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: chSpin 0.7s linear infinite;
}
@keyframes chSpin { to { transform: rotate(360deg); } }

/* Table Footer */
.ch-table-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.ch-table-info { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ch-pagination { display: flex; gap: 3px; }
.ch-page-btn {
  width: 26px; height: 26px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.ch-page-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ch-page-btn:hover:not(.active) { color: var(--text); border-color: var(--border2); }

/* ─── SWAP WIDGET ────────────────────────────────────────────── */
.ch-swap-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: calc(var(--topbar-h) + var(--ticker-h) + 16px);
}
.ch-swap-widget--large { position: relative; top: 0; max-width: 480px; }
.ch-swap-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.ch-swap-title {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
}
.ch-swap-icon { color: var(--accent); font-size: 16px; }
.ch-swap-sub  { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ch-swap-api-note {
  display: flex; align-items: flex-start; gap: 7px;
  background: rgba(255,214,10,0.06);
  border: 1px solid rgba(255,214,10,0.18);
  border-radius: var(--radius-sm);
  padding: 9px 12px; margin: 14px 16px 0;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--yellow); line-height: 1.5;
}
.ch-swap-body { padding: 16px; }
.ch-swap-field { margin-bottom: 8px; }
.ch-swap-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 5px;
  display: block;
}
.ch-swap-input-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  transition: border-color 0.2s;
}
.ch-swap-input-row:focus-within { border-color: rgba(0,229,195,0.4); }
.ch-swap-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono);
  font-size: 18px; font-weight: 600; min-width: 0;
}
.ch-swap-input::placeholder { color: var(--muted); }
.ch-swap-input[readonly] { color: var(--accent); }
.ch-swap-token-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 5px 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--text);
  transition: all 0.2s; white-space: nowrap;
}
.ch-swap-token-btn:hover { border-color: var(--accent); color: var(--accent); }
.ch-sti {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.ch-sti--btc { background: rgba(247,147,26,0.2); color: #f7931a; }
.ch-sti--eth { background: rgba(98,126,234,0.2); color: #627eea; }
.ch-token-arrow { font-size: 10px; color: var(--muted); }
.ch-swap-field-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); margin-top: 4px; padding: 0 2px;
}
.ch-swap-arrow-wrap { display: flex; justify-content: center; margin: -2px 0; }
.ch-swap-arrow {
  width: 34px; height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text2);
  transition: all 0.25s; position: relative; z-index: 2;
}
.ch-swap-arrow:hover { border-color: var(--accent); color: var(--accent); transform: rotate(180deg); }
.ch-swap-info {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px; margin: 12px 0;
}
.ch-swap-info-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  margin-bottom: 6px;
}
.ch-swap-info-row:last-child { margin-bottom: 0; }
.ch-sir-label { color: var(--muted); }
.ch-sir-val   { color: var(--text2); }
.ch-accent    { color: var(--accent) !important; }
.ch-swap-btn {
  width: 100%; padding: 13px;
  border-radius: 10px;
  background: var(--accent); color: var(--bg);
  border: none;
  font-family: var(--font-head);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.05em; cursor: pointer;
  box-shadow: var(--glow);
  transition: all 0.25s; text-transform: uppercase;
}
.ch-swap-btn:hover:not(:disabled) { background: var(--accent-d); transform: translateY(-1px); }
.ch-swap-btn:disabled {
  background: var(--surface2); color: var(--muted);
  box-shadow: none; cursor: not-allowed;
}
.ch-swap-providers { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ch-sp-label { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 7px; }
.ch-sp-list  { display: flex; gap: 5px; flex-wrap: wrap; }
.ch-sp-chip  {
  font-family: var(--font-mono); font-size: 9px;
  padding: 3px 8px; border-radius: 5px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted);
}
.ch-sp-chip.active { color: var(--accent); border-color: rgba(0,229,195,0.3); }

/* ─── ANALYTICS ──────────────────────────────────────────────── */
.ch-analytics-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.ch-an-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s;
}
.ch-an-card:hover { border-color: var(--border2); }
.ch-an-card-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
/* Fear & Greed */
.ch-gauge-wrap { display: flex; flex-direction: column; align-items: center; }
.ch-gauge-svg  { width: 140px; height: 80px; display: block; }
.ch-gauge-num  { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--yellow); }
.ch-gauge-label { font-family: var(--font-mono); font-size: 11px; color: var(--yellow); }
.ch-fg-history {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px;
}
.ch-fgh-label { color: var(--muted); }
.ch-fgh-val   { color: var(--text); margin-left: 4px; }
/* Dominance */
.ch-dom-list { display: flex; flex-direction: column; gap: 10px; }
.ch-dom-hdr  { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; margin-bottom: 5px; }
.ch-dom-name { color: var(--text2); }
.ch-dom-pct  { color: var(--text); font-weight: 600; }
.ch-dom-bar-bg { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.ch-dom-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
/* Trending */
.ch-trending-list { display: flex; flex-direction: column; gap: 8px; }
.ch-trend-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.ch-trend-item:hover { background: var(--surface2); }
.ch-trend-rank { font-family: var(--font-mono); font-size: 10px; color: var(--muted); width: 16px; }
.ch-trend-name { font-size: 13px; font-weight: 700; }
.ch-trend-sym  { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.ch-trend-score { font-family: var(--font-mono); font-size: 10px; color: var(--accent); margin-left: auto; }

/* ─── NEWS GRID ──────────────────────────────────────────────── */
.ch-news-section { margin-bottom: 24px; }
.ch-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ch-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all 0.25s; position: relative;
}
.ch-news-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.ch-news-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.ch-news-card:hover::before { transform: scaleX(1); }
.ch-news-card-link { display: block; padding: 18px; text-decoration: none; color: inherit; }
.ch-news-card-src  {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px;
}
.ch-news-card-title { font-size: 13px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; color: var(--text); }
.ch-news-card-meta  { font-family: var(--font-mono); font-size: 9px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.ch-news-card-tag   { background: rgba(0,229,195,0.1); border-radius: 4px; padding: 2px 6px; color: var(--accent); }

/* ─── ARCHIVE ────────────────────────────────────────────────── */
.ch-archive-header { margin-bottom: 24px; }
.ch-archive-breadcrumb {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.ch-archive-breadcrumb a { color: var(--muted); text-decoration: none; }
.ch-archive-breadcrumb a:hover { color: var(--accent); }
.ch-bc-sep { color: var(--border2); }
.ch-archive-type {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px;
}
.ch-archive-h1 { font-size: clamp(24px, 4vw, 48px); font-weight: 800; margin-bottom: 10px; }
.ch-archive-desc { color: var(--text2); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.ch-archive-stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ch-archive-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ch-archive-count strong { color: var(--text); }
.ch-archive-cat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-cat-pill {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none; transition: all 0.2s;
}
.ch-cat-pill:hover, .ch-cat-pill.active {
  background: rgba(0,229,195,0.1); border-color: rgba(0,229,195,0.3); color: var(--accent);
}
/* Posts Grid */
.ch-posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.ch-post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.25s; list-style: none;
}
.ch-post-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.ch-post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.ch-post-card-image { display: block; overflow: hidden; aspect-ratio: 16/9; }
.ch-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ch-post-card:hover .ch-post-card-image img { transform: scale(1.03); }
.ch-post-card-body { padding: 18px; }
.ch-post-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.ch-post-card-cat {
  font-family: var(--font-mono); font-size: 9px;
  background: rgba(0,229,195,0.1); color: var(--accent);
  padding: 2px 8px; border-radius: 4px; text-decoration: none;
  letter-spacing: 0.1em;
}
.ch-post-card-read { color: var(--muted); }
.ch-post-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.ch-post-card-title a { text-decoration: none; color: var(--text); transition: color 0.2s; }
.ch-post-card-title a:hover { color: var(--accent); }
.ch-post-card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.ch-post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.ch-post-card-author { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.ch-author-avatar-sm { width: 20px; height: 20px; border-radius: 50%; }
.ch-post-card-link {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); text-decoration: none;
  transition: opacity 0.2s; letter-spacing: 0.05em;
}

/* ─── SINGLE POST ────────────────────────────────────────────── */
.ch-page--single { display: grid; grid-template-columns: 1fr 300px; gap: 32px; max-width: 1200px; }
.ch-article-header { margin-bottom: 28px; }
.ch-article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; font-family: var(--font-mono); font-size: 10px;
}
.ch-article-cat {
  background: rgba(0,229,195,0.1); color: var(--accent);
  padding: 3px 10px; border-radius: 5px; text-decoration: none;
  letter-spacing: 0.1em; font-size: 9px;
}
.ch-article-time, .ch-article-read-time { color: var(--muted); }
.ch-article-title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.ch-article-excerpt { font-size: 17px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.ch-article-byline {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.ch-author-avatar { width: 32px; height: 32px; border-radius: 50%; }
.ch-author-name { display: block; font-weight: 700; font-size: 13px; }
.ch-author-role { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ch-article-image { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.ch-article-image img { width: 100%; }
/* Article Content */
.ch-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.ch-content h2, .ch-content h3 { font-weight: 700; margin: 28px 0 14px; }
.ch-content h2 { font-size: 22px; }
.ch-content h3 { font-size: 18px; }
.ch-content p  { margin-bottom: 18px; }
.ch-content a  { color: var(--accent); text-decoration: underline; }
.ch-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px; margin: 20px 0;
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text2);
}
.ch-content code {
  background: var(--surface2); color: var(--accent);
  padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px;
}
.ch-content pre {
  background: var(--surface2); padding: 20px; border-radius: var(--radius-sm);
  overflow-x: auto; margin: 20px 0;
}
.ch-article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.ch-tag {
  font-family: var(--font-mono); font-size: 10px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none; transition: all 0.2s;
}
.ch-tag:hover { color: var(--accent); border-color: rgba(0,229,195,0.3); }
/* Post Navigation */
.ch-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 28px;
}
.ch-nav-label { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.ch-nav-title { display: block; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; transition: color 0.2s; }
.ch-nav-title:hover { color: var(--accent); }
/* Article Sidebar */
.ch-article-sidebar { padding-top: 4px; }
.ch-related { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ch-related-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.ch-related-list { display: flex; flex-direction: column; gap: 12px; }
.ch-related-item { display: flex; gap: 10px; text-decoration: none; }
.ch-related-img { width: 56px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ch-related-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-related-item-title { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.ch-related-date { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.ch-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  margin-top: auto;
}
.ch-footer-top {
  padding: 48px 40px;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px;
}
.ch-footer-logo {
  display: block; text-decoration: none;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.ch-footer-logo .logo-c { color: var(--accent); }
.ch-footer-desc { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.ch-footer-socials { display: flex; gap: 8px; }
.ch-social-btn {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); text-decoration: none; transition: all 0.2s;
}
.ch-social-btn:hover { border-color: var(--accent); color: var(--accent); }
.ch-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ch-footer-bottom {
  padding: 18px 40px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ch-footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.ch-footer-menu { list-style: none; display: flex; gap: 24px; }
.ch-footer-menu a { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.ch-footer-menu a:hover { color: var(--accent); }
.ch-footer-disclaimer { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ─── MOBILE BOTTOM NAV ──────────────────────────────────────── */
.ch-mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  height: 64px;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  align-items: center; justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ch-mnav-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 8px 12px; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  color: var(--muted); transition: all 0.2s; font-size: 9px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ch-mnav-btn.active { color: var(--accent); }
.ch-mnav-btn svg { width: 22px; height: 22px; }
.ch-mnav-swap {
  background: var(--accent); color: var(--bg) !important;
  width: 52px; height: 52px; border-radius: 50%;
  margin-top: -12px; flex-direction: column;
  box-shadow: var(--glow);
}
.ch-mnav-swap svg { width: 22px; height: 22px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.ch-btn-primary {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
  font-size: 14px; letter-spacing: 0.03em;
  transition: all 0.2s; box-shadow: var(--glow);
}
.ch-btn-primary:hover { background: var(--accent-d); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.ch-archive-pagination, .cryptahub-pagination {
  display: flex; justify-content: center; gap: 6px; padding: 32px 0;
}
.cryptahub-pagination .page-numbers,
.ch-archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none; transition: all 0.2s;
}
.cryptahub-pagination .current,
.ch-archive-pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cryptahub-pagination .page-numbers:hover:not(.current),
.ch-archive-pagination .page-numbers:hover:not(.current) { color: var(--text); border-color: var(--border2); }

/* ─── SWAP PAGE ──────────────────────────────────────────────── */
.ch-swap-page-header { margin-bottom: 28px; }
.ch-swap-page-desc { font-size: 15px; color: var(--text2); line-height: 1.7; margin-top: 10px; }
.ch-swap-page-grid {
  display: grid; grid-template-columns: 480px 1fr;
  gap: 28px; margin-bottom: 40px; align-items: start;
}
.ch-swap-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.ch-swap-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.ch-sic-icon  { font-size: 24px; margin-bottom: 10px; }
.ch-sic-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ch-sic-desc  { font-size: 12px; color: var(--text2); line-height: 1.6; }
.ch-providers-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.ch-providers-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.ch-providers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-provider-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 8px 12px;
}
.ch-pi-name   { font-size: 13px; font-weight: 600; }
.ch-pi-status { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; }
.ch-provider-item.active .ch-pi-status { color: var(--accent); }
.ch-provider-item.coming  { opacity: 0.5; }
.ch-provider-item.coming .ch-pi-status { color: var(--muted); }
.ch-api-integration-notice {
  background: rgba(255,214,10,0.05); border: 1px solid rgba(255,214,10,0.2);
  border-radius: var(--radius); padding: 18px;
}
.ch-ain-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.ch-ain-desc  { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.ch-ain-btn {
  display: inline-block;
  background: var(--yellow); color: var(--bg);
  padding: 8px 18px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-decoration: none; transition: opacity 0.2s;
}
.ch-ain-btn:hover { opacity: 0.85; }

/* ─── NO POSTS ───────────────────────────────────────────────── */
.ch-no-posts {
  text-align: center; padding: 80px 40px;
}
.ch-no-posts-icon { font-size: 48px; margin-bottom: 16px; }
.ch-no-posts h2   { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ch-no-posts p    { color: var(--text2); margin-bottom: 24px; }

/* ─── HIDE UTILS ─────────────────────────────────────────────── */
.ch-hide-mobile  { }
.ch-hide-tablet  { }

/* ─── ELEMENTOR COMPAT ───────────────────────────────────────── */
.ch-elementor-page .ch-page-content { padding: 0; }
.elementor-section { position: relative; }
.e-con, .elementor-container { max-width: 100%; }

/* ─── WIDGET STYLES ──────────────────────────────────────────── */
.cryptahub-widget { margin-bottom: 16px; }
.widget-title {
  font-size: 13px; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .ch-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .ch-analytics-grid { grid-template-columns: 1fr 1fr; }
  .ch-news-grid { grid-template-columns: 1fr 1fr; }
  .ch-posts-grid { grid-template-columns: 1fr 1fr; }
  .ch-posts-grid .ch-post-card--featured { grid-column: auto; grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .ch-main-grid { grid-template-columns: 1fr; }
  .ch-swap-widget { position: relative; top: 0; }
  .ch-page--single { grid-template-columns: 1fr; }
  .ch-article-sidebar { order: -1; }
  .ch-swap-page-grid { grid-template-columns: 1fr; }
  .ch-swap-page-widget .ch-swap-widget--large { max-width: 100%; }
  .ch-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .ch-footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  /* Hide desktop sidebar, show mobile */
  .ch-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 400;
  }
  .ch-sidebar.open { transform: translateX(0); }
  .ch-sidebar.open .ch-sidebar-overlay { display: block; }

  .ch-main-wrap { margin-left: 0; padding-top: var(--mobile-nav); }
  .ch-topbar    { display: none; }
  .ch-mobile-topbar { display: flex; }
  .ch-mobile-bottom-nav { display: flex; }
  .ch-page { padding: 16px 14px; padding-bottom: 80px; }
  .ch-hero-banner { flex-direction: column; gap: 20px; }
  .ch-hero-banner::after { display: none; }
  .ch-hero-stats { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 768px) {
  .ch-analytics-grid { grid-template-columns: 1fr; }
  .ch-news-grid { grid-template-columns: 1fr; }
  .ch-posts-grid { grid-template-columns: 1fr; }
  .ch-swap-info-cards { grid-template-columns: 1fr; }
  .ch-providers-grid { grid-template-columns: 1fr 1fr; }
  .ch-footer-top { padding: 32px 20px; }
  .ch-footer-bottom { padding: 16px 20px; }
  .ch-footer-cols { grid-template-columns: 1fr; }
  .ch-post-nav { grid-template-columns: 1fr; }
  .ch-hide-mobile { display: none !important; }
  .ch-archive-stats { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .ch-overview-grid { grid-template-columns: 1fr 1fr; }
  .ch-hero-banner { padding: 22px 18px; }
  .ch-hero-h1 { font-size: 22px; }
  .ch-ticker-strip { display: none; }
  .ch-hide-tablet { display: none !important; }
}
