/* Fonts are loaded from header.php via <link rel="stylesheet"> with
   &display=swap — a CSS @import here blocked first paint. */

:root {
  --bg: #050a0e;
  --bg-1: #0a1628;
  --bg-2: #0d2137;
  --panel: rgba(13,33,55,0.7);
  --border: rgba(0,212,170,0.1);
  --teal: #00d4aa;
  --teal-dim: rgba(0,212,170,0.15);
  --red: #ff4d4d;
  --amber: #f0b429;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #7c8aa0;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

/* в”Ђв”Ђв”Ђ Reset & Base в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* Accessible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

/* в”Ђв”Ђв”Ђ Data Ticker в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.data-ticker {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.data-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  border-right: 1px solid var(--bg-2);
}

.ticker-item__sym {
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.ticker-item__price {
  color: var(--text);
  font-weight: 400;
}

.ticker-item__change {
  font-weight: 500;
  font-size: 10px;
}

.ticker-item__change.up   { color: var(--teal); }
.ticker-item__change.down { color: var(--red); }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* в”Ђв”Ђв”Ђ Site Nav в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5,10,14,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
}

.site-nav__logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-nav__logo-icon {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.site-nav__breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__breadcrumb a {
  color: var(--text-muted);
}

.site-nav__breadcrumb a:hover { color: var(--teal); }

.site-nav__breadcrumb-sep {
  opacity: 0.4;
}

.site-nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(0,212,170,0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(0,212,170,0); }
}

/* в”Ђв”Ђв”Ђ Dashboard Grid в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.dashboard-wrapper {
  padding: 1px 0 0;
  background: var(--bg-2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 1px;
  min-height: calc(100vh - 84px);
  background: var(--bg-2);
}

/* в”Ђв”Ђв”Ђ Panel в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.panel:hover {
  border-color: rgba(0,212,170,0.25);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,170,0.04) 0%, transparent 60%);
  transition: opacity 0.3s;
  opacity: 0;
}

.panel.glow::before { opacity: 1; }

.panel__header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.panel__badge {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(0,212,170,0.2);
  letter-spacing: 0.05em;
}

.panel__badge.red {
  background: rgba(255,77,77,0.12);
  color: var(--red);
  border-color: rgba(255,77,77,0.2);
}

/* в”Ђв”Ђв”Ђ Left Sidebar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sidebar-left {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Market Summary */
.market-summary { }

.market-summary__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(13,33,55,0.8);
}

.market-row:last-child { border-bottom: none; }

.market-row__name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.market-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.market-row__price {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.market-row__change {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
}

.up   { color: var(--teal); }
.down { color: var(--red); }

/* Chart Thumbnails */
.chart-thumbs { }

.chart-thumbs__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }

.chart-thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.chart-thumb:hover {
  border-color: rgba(0,212,170,0.35);
  transform: scale(1.01);
}

.chart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.4) brightness(0.5);
  transition: filter 0.3s;
}

.chart-thumb:hover img {
  filter: saturate(0.6) brightness(0.6);
}

.chart-thumb__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,14,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.chart-thumb__label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}

.chart-thumb__tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--teal);
  background: rgba(0,212,170,0.15);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 2px;
  padding: 1px 5px;
}

/* Watchlist */
.watchlist { }

.watchlist__body { padding: 8px 0; }

.ticker-symbol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 2px solid transparent;
}

.ticker-symbol:hover {
  background: var(--teal-dim);
  border-left-color: var(--teal);
}

.ticker-symbol__left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ticker-symbol__code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ticker-symbol__name {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.ticker-symbol__price {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

/* в”Ђв”Ђв”Ђ Main Center в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.main-center {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Price Hero */
.price-hero {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.price-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.price-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.price-hero__tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
}

.price-hero__exchange {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.05em;
}

.price-hero__name {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.price-hero__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--mono);
}

.price-hero__data {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.price-hero__price {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-hero__change-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 4px;
}

.price-hero__change {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.price-hero__change-pct {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.price-hero__stats {
  display: flex;
  gap: 24px;
  margin-left: auto;
  padding-bottom: 4px;
}

.price-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-stat__label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-stat__value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Analysis Section */
.analysis-section {
  padding: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 14px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--teal);
  border-radius: 2px;
}

.section-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Analyst Cards */
.analyst-cards {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analyst-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  border-left: 3px solid var(--teal);
  opacity: 0;
  transform: translateX(20px);
}

.analyst-card.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s, box-shadow 0.25s;
}

.analyst-card:hover {
  border-color: rgba(0,212,170,0.4);
  border-left-color: var(--teal);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,170,0.1);
}

.analyst-card--bearish {
  border-left-color: var(--red);
}

.analyst-card--neutral {
  border-left-color: var(--amber);
}

.analyst-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.analyst-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}

.analyst-card__title a {
  color: inherit;
}

.analyst-card__title a:hover { color: var(--teal); }

.analyst-card__rating {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rating-buy {
  background: rgba(0,212,170,0.15);
  color: var(--teal);
  border: 1px solid rgba(0,212,170,0.25);
}

.rating-sell {
  background: rgba(255,77,77,0.12);
  color: var(--red);
  border: 1px solid rgba(255,77,77,0.2);
}

.rating-hold {
  background: rgba(240,180,41,0.12);
  color: var(--amber);
  border: 1px solid rgba(240,180,41,0.2);
}

.analyst-card__excerpt {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.analyst-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.analyst-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analyst-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
}

.analyst-card__name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}

.analyst-card__firm {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}

.analyst-card__source {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.analyst-card__source a {
  color: var(--text-muted);
  font-size: 10px;
}

.analyst-card__source a:hover { color: var(--teal); }

/* News Feed */
.news-section {
  border-top: 1px solid var(--border);
}

.news-list {
  padding: 8px 32px 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(13,33,55,0.6);
  cursor: pointer;
  transition: background 0.15s;
  opacity: 0;
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: transparent; }
.news-item:hover .news-item__title { color: var(--teal); }

.news-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.news-dot.teal  { background: var(--teal); }
.news-dot.red   { background: var(--red); }
.news-dot.amber { background: var(--amber); }

.news-item__body { min-width: 0; }

.news-item__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.2s;
}

.news-item__title a { color: inherit; }

.news-item__desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.news-item__time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* в”Ђв”Ђв”Ђ Right Sidebar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.sidebar-right {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Related Links */
.related-markets { }

.related-markets__body { padding: 10px 0; }

.related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.15s;
  border-left: 2px solid transparent;
  line-height: 1.35;
}

.related-link:hover {
  color: var(--teal);
  background: var(--teal-dim);
  border-left-color: var(--teal);
}

.related-link::before {
  content: 'в†’';
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.related-link:hover::before { color: var(--teal); }

/* Stat Cells */
.stats-grid { }

.stats-grid__body {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-cell {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-cell__label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.stat-cell__value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.stat-cell__sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* Sector Performance */
.sector-perf { }

.sector-perf__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }

.sector-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sector-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sector-bar__name {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
}

.sector-bar__val {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.sector-bar__track {
  height: 3px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}

.sector-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

.sector-bar__fill.up   { background: var(--teal); }
.sector-bar__fill.down { background: var(--red); }

/* в”Ђв”Ђв”Ђ Footer в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__left {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.site-footer__left a { color: var(--text-muted); }
.site-footer__left a:hover { color: var(--teal); }

.site-footer__right {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__right a { color: var(--text-muted); }
.site-footer__right a:hover { color: var(--teal); }

.site-footer__sep {
  opacity: 0.3;
}

/* в”Ђв”Ђв”Ђ Scrollbar в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,170,0.3); }

/* в”Ђв”Ђв”Ђ Responsive в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 220px 1fr;
  }
  .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-left { display: none; }
  .analyst-cards { padding: 16px; }
  .news-list { padding: 8px 16px 16px; }
  .price-hero { padding: 20px 16px; }
  .price-hero__price { font-size: 32px; }
  .price-hero__stats { display: none; }
  .section-header { padding: 14px 16px 12px; }
}

/* AI Article Section */
.ai-article {
  background: rgba(255,255,255,.04);
  margin: 32px 0 0;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ai-article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.ai-article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  opacity: .9;
}
.ai-article-body p {
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  opacity: .8;
}

/* в”Ђв”Ђ Keyword-themed imagery (offline SVG charts) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.post-featured {
  margin: 0 auto 16px;
  max-width: 720px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.post-featured img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
}
.post-featured__cap {
  padding: 8px 14px;
  font-family: var(--font-mono, monospace);
  font-size: .74rem;
  color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.06);
}
.article-figure {
  margin: 14px auto;
  max-width: 640px;
}
.article-figure img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
}
.article-figure--sm img {
  height: 94px;
  object-fit: cover;
}
.article-figure figcaption {
  margin-top: 8px;
  font-family: var(--font-mono, monospace);
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}
.article-body-list li {
  margin: 0 0 8px 18px;
  font-size: .95rem;
  line-height: 1.7;
  opacity: .8;
}
.related-chart {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: inherit;
}
.related-chart + .related-chart {
  border-top: 1px solid rgba(255,255,255,.05);
}
.related-chart:hover {
  background: rgba(255,255,255,.04);
}
.related-chart img {
  width: 40px;
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
  border: 1px solid rgba(255,255,255,.08);
}
.related-chart span {
  font-size: .84rem;
  line-height: 1.3;
}
/* ai-article lists compactness */
.ai-article-body ul {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
}




/* TDS offer CTA */
.offer-cta { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.offer-cta__label { font: 600 .72rem var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.offer-cta .offer-btn { display: inline-block; padding: 8px 18px; background: var(--teal-dim); border: 1px solid var(--teal); border-radius: 8px; color: var(--teal); font: 600 .88rem var(--sans); }
.offer-cta .offer-btn:hover { background: var(--teal); color: var(--bg); }

/* ─── Sitemap (HTML) ─── */
.sitemap-page {
  padding: 40px 0 64px;
  background: var(--bg);
}
.sitemap-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.sitemap-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.sitemap-subtitle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 28px;
}
.sitemap-section {
  border-top: 1px solid var(--border);
  padding: 18px 0 22px;
}
.sitemap-section h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.sitemap-section-meta {
  margin-top: 8px;
}
.sitemap-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.sitemap-list a {
  color: var(--text-dim);
  font-size: 13px;
}
.sitemap-list a:hover { color: var(--teal); }
.cat-count {
  font-size: 9px;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.05em;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 16px;
}
.sitemap-link {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sitemap-link:hover {
  color: var(--teal);
  border-color: var(--border);
  background: var(--teal-dim);
}

/* Primary article remains first in DOM, gap-aware dashboard placement. */
.dashboard-grid { grid-template-columns:240px minmax(0,1fr) 220px; }
.dashboard-grid > .main-center { grid-column:2; grid-row:1; min-width:0; }
.dashboard-grid > .sidebar-left { grid-column:1; grid-row:1; }
.dashboard-grid > .sidebar-right { grid-column:3; grid-row:1; }
.price-hero__name, .ai-article-body { overflow-wrap:anywhere; }
@media (max-width:1100px) { .dashboard-grid { grid-template-columns:220px minmax(0,1fr); } }
@media (max-width:768px) { .dashboard-grid { grid-template-columns:minmax(0,1fr); } .dashboard-grid > .main-center { grid-column:1; } }
.site-nav { min-height:52px; height:auto; padding-block:10px; gap:12px; }
.site-nav__breadcrumb { flex:1; min-width:0; flex-wrap:wrap; }
.site-nav__breadcrumb > span:last-child { flex:1 1 160px; min-width:0; overflow-wrap:anywhere; }
.site-nav__logo, .site-nav__status { flex-shrink:0; }
@media (max-width:768px) { .site-nav { flex-wrap:wrap; padding-inline:16px; } .site-nav__breadcrumb { flex-basis:100%; order:3; } }
