/* ── finscans.com — Main Stylesheet v2.0 ─────────────────────── */
/* Light default, dark mode via [data-theme="dark"] on <html>     */

/* ── LIGHT THEME (default) ─────────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg:             #F4F7FB;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F8FAFF;
  --bg-subtle:      #EEF2F8;
  --header-bg:      #FFFFFF;
  --header-border:  #E2E8F0;
  --footer-bg:      #1A2B4A;
  --footer-text:    rgba(220,232,255,0.75);
  --footer-border:  rgba(255,255,255,0.07);
  --market-bg:      #0F1E38;
  --text:           #0F172A;
  --text-muted:     #475569;
  --text-light:     #94A3B8;
  --border:         #E2E8F0;
  --shadow-sm:      0 1px 4px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.03);
  --shadow:         0 4px 16px rgba(15,23,42,0.09), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg:      0 10px 40px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.07);
  --logo-fin:       #0B1E3D;
  --logo-scans:     #00A878;
}

/* ── DARK THEME ─────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:             #0D1117;
  --bg-card:        #161B26;
  --bg-card-hover:  #1C2333;
  --bg-subtle:      #1A2233;
  --header-bg:      #0B1422;
  --header-border:  rgba(255,255,255,0.06);
  --footer-bg:      #060E1C;
  --footer-text:    rgba(200,220,255,0.6);
  --footer-border:  rgba(255,255,255,0.06);
  --market-bg:      #060E1C;
  --text:           #E2E8F0;
  --text-muted:     #94A3B8;
  --text-light:     #64748B;
  --border:         rgba(255,255,255,0.08);
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.3);
  --shadow:         0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.5);
  --logo-fin:       #A8C8FF;
  --logo-scans:     #00C896;
}

/* ── Shared tokens ──────────────────────────────────────────────── */
:root {
  --accent:        #00A878;
  --accent-dark:   #008C64;
  --accent-light:  #00C896;
  --accent-glow:   rgba(0,168,120,0.12);
  --bullish:       #10B981;
  --bullish-bg:    rgba(16,185,129,0.12);
  --bearish:       #EF4444;
  --bearish-bg:    rgba(239,68,68,0.12);
  --neutral:       #6366F1;
  --neutral-bg:    rgba(99,102,241,0.12);
  --impact-high:   #EF4444;
  --impact-medium: #F59E0B;
  --impact-low:    #10B981;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --transition:    0.22s cubic-bezier(0.4,0,0.2,1);
  --container:     1200px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}
img,svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
.site-main { flex: 1; }

/* ── Container ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header-inner { display: flex; align-items: center; height: 60px; }
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em;
}
.logo-spinner {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
  animation: logo-spin 3s infinite linear;
}
.logo-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: 50%;
  background: var(--logo-scans);
  --_m:
    conic-gradient(#0000 10%, #000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
}
.logo-spinner::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 50%;
  background: var(--logo-scans);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
}
@keyframes logo-spin { to { transform: rotate(1turn); } }
.logo-fin   { color: var(--logo-fin);   transition: color 0.3s ease; }
.logo-scans { color: var(--logo-scans); transition: color 0.3s ease; }

/* ── Market bar ─────────────────────────────────────────────────── */
.market-bar {
  background: var(--market-bg);
  padding: 5px 0;
  overflow: hidden;
  transition: background 0.3s ease;
}
.market-bar-inner { display: flex; align-items: center; gap: 14px; }
.market-label {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.15em;
  color: var(--accent-light); flex-shrink: 0; white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items {
  display: flex; gap: 36px;
  animation: ticker 22s linear infinite;
  width: max-content;
}
.ticker-item { font-size: 0.75rem; font-weight: 500; white-space: nowrap; color: rgba(200,220,255,0.5); }
.ticker-item.bullish { color: var(--bullish); }
.ticker-item.bearish { color: var(--bearish); }
.ticker-item.neutral { color: #818CF8; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FEATURED CARD ──────────────────────────────────────────────── */
.featured-section { padding: 28px 0 0; }
.featured-card {
  border-radius: var(--radius-lg); padding: 36px 44px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.featured-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.28) 0%, transparent 55%);
  pointer-events: none;
}
.featured-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.featured-title {
  font-size: clamp(1.3rem,2.5vw,1.85rem); font-weight: 800;
  color: #fff; line-height: 1.25; letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.featured-title a { color: inherit; transition: opacity var(--transition); }
.featured-title a:hover { opacity: 0.88; }
.featured-excerpt {
  color: rgba(255,255,255,0.78); font-size: 0.96rem; line-height: 1.7;
  max-width: 700px; position: relative; z-index: 1;
}
.featured-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 4px; position: relative; z-index: 1;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); padding: 3px 10px; transition: all var(--transition);
}
.tag-link:hover { background: rgba(0,200,150,0.18); border-color: var(--accent-light); color: var(--accent-light); }

/* ── FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar { padding: 20px 0 4px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.81rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.filter-tag:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-glow); }
.filter-tag-count {
  background: var(--bg-subtle); border-radius: var(--radius-pill);
  font-size: 0.7rem; padding: 1px 7px; font-weight: 700; color: var(--text-muted);
}

/* ── ARTICLES SECTION & GRID ────────────────────────────────────── */
.articles-section { padding: 20px 0 60px; }
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── ARTICLE CARD ───────────────────────────────────────────────── */
.article-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--bg-card-hover); }
.card-accent-bar { height: 3px; width: 100%; flex-shrink: 0; }
.card-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; flex-wrap: wrap; }
.card-body { padding: 0 16px 12px; flex: 1; }
.card-title {
  font-size: 0.96rem; font-weight: 700; line-height: 1.42; margin-bottom: 8px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { transition: color var(--transition); }
.card-title a:hover { color: var(--accent-dark); }
.card-excerpt {
  font-size: 0.83rem; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer { padding: 0 16px 16px; margin-top: auto; }
.impact-bar-wrap { height: 4px; background: var(--bg-subtle); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 12px; }
.impact-bar { height: 100%; border-radius: var(--radius-pill); }
.impact-bar.impact-high,   .impact-meter-fill.impact-high,   .cell-bar-fill.impact-high   { background: linear-gradient(90deg,#EF4444,#F97316); }
.impact-bar.impact-medium, .impact-meter-fill.impact-medium, .cell-bar-fill.impact-medium { background: linear-gradient(90deg,#F59E0B,#FBBF24); }
.impact-bar.impact-low,    .impact-meter-fill.impact-low,    .cell-bar-fill.impact-low    { background: linear-gradient(90deg,#10B981,#34D399); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-date { font-size: 0.75rem; color: var(--text-light); }
.card-read-more { font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); transition: color var(--transition); }
.card-read-more:hover { color: var(--accent-light); }

/* ── BADGES ─────────────────────────────────────────────────────── */
.asset-badge,.asset-badge-sm,.asset-badge-lg {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--asset-bg,rgba(59,130,246,0.1)); color: var(--asset-color,#3B82F6);
}
.asset-badge-lg { font-size: 0.84rem; padding: 5px 14px; }
.sentiment-badge,.sentiment-badge-sm,.sentiment-badge-lg {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
}
.sentiment-badge-lg { font-size: 0.84rem; padding: 5px 14px; }
.sentiment-bullish,.sentiment-Bullish { background: var(--bullish-bg); color: var(--bullish); }
.sentiment-bearish,.sentiment-Bearish { background: var(--bearish-bg); color: var(--bearish); }
.sentiment-neutral,.sentiment-Neutral { background: var(--neutral-bg); color: var(--neutral); }
.impact-badge,.impact-badge-lg {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(239,68,68,0.12); color: #EF4444;
}
.impact-badge-lg { font-size: 0.84rem; padding: 5px 14px; }
.impact-badge.impact-medium,.impact-badge-lg.impact-medium { background: rgba(245,158,11,0.12); color: #F59E0B; }
.impact-badge.impact-low,.impact-badge-lg.impact-low       { background: rgba(16,185,129,0.12); color: var(--bullish); }
.article-date { font-size: 0.74rem; color: var(--text-light); }
.sentiment-bullish-text,.sentiment-Bullish-text { color: var(--bullish); }
.sentiment-bearish-text,.sentiment-Bearish-text { color: var(--bearish); }
.sentiment-neutral-text,.sentiment-Neutral-text { color: var(--neutral); }

/* Sidebar tag links (light bg context) */
.sidebar-tags .tag-link { color: var(--text-muted); background: var(--bg-subtle); border-color: var(--border); }
.sidebar-tags .tag-link:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-dark); }

/* Buttons */
.btn-read-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px;
  background: var(--accent); color: #fff; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.88rem; transition: all var(--transition);
}
.btn-read-more:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-primary,.btn-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px;
  background: var(--accent); color: #fff; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem; transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent-light); }
.btn-back { background: transparent; border: 1.5px solid var(--accent); color: var(--accent-dark); }
.btn-back:hover { background: var(--accent-glow); }

/* ── TAG HERO ───────────────────────────────────────────────────── */
.tag-hero { background: linear-gradient(135deg,#0B1E3D 0%,#1A3A6B 100%); padding: 48px 0; text-align: center; }
.tag-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tag-hero-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-light); }
.tag-hero-title { font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.tag-hero-count { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

/* ── ARTICLE HERO ───────────────────────────────────────────────── */
.article-hero { padding: 36px 0 32px; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.79rem; color: rgba(255,255,255,0.5); margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep { opacity: 0.4; }
.article-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-hero-title {
  font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 800; color: #fff;
  line-height: 1.22; letter-spacing: -0.025em; margin-bottom: 14px; max-width: 840px;
}
.article-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-tag {
  font-size: 0.74rem; font-weight: 600; color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill); padding: 2px 10px; transition: all var(--transition);
}
.hero-tag:hover { color: var(--accent-light); background: rgba(0,200,150,0.15); border-color: var(--accent-light); }
.impact-meter-hero {
  background: rgba(0,0,0,0.18); border-radius: var(--radius); padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.1); max-width: 340px;
}
.impact-meter-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.77rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.impact-meter-val { font-size: 1.35rem; font-weight: 800; color: #fff; }
.impact-meter-val small { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.impact-meter-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: var(--radius-pill); overflow: hidden; }
.impact-meter-fill { height: 100%; border-radius: var(--radius-pill); }

/* ── ARTICLE LAYOUT ─────────────────────────────────────────────── */
.article-wrap { padding: 36px 0 60px; }
.article-layout { display: grid; grid-template-columns: 1fr 310px; gap: 28px; align-items: start; }
.article-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.content-block {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.block-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--bg-subtle); }
.exec-summary .summary-text { font-size: 1rem; line-height: 1.78; color: var(--text-muted); font-style: italic; border-left: 3px solid var(--accent); padding-left: 16px; }
.article-text-content p { font-size: 0.95rem; line-height: 1.82; color: var(--text); margin-bottom: 16px; }
.article-text-content p:last-child { margin-bottom: 0; }
.sentiment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.sentiment-cell { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 14px; transition: background 0.3s ease; }
.cell-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.cell-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.cell-bar { height: 6px; background: var(--border); border-radius: var(--radius-pill); margin-top: 8px; overflow: hidden; }
.cell-bar-fill { height: 100%; border-radius: var(--radius-pill); }
.reasoning-block { background: var(--bg-subtle); border-radius: var(--radius-sm); padding: 18px; border-left: 3px solid var(--accent); transition: background 0.3s ease; }
.reasoning-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.reasoning-text { font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); }
.source-block { display: flex; align-items: center; gap: 12px; padding: 14px 22px; flex-wrap: wrap; }
.source-label { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }
.source-link { font-size: 0.84rem; font-weight: 600; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition); }
.source-link:hover { color: var(--accent-light); }
.disclaimer-block { padding: 14px 22px; background: #FFFBF0; border: 1px solid #FDE68A; border-radius: var(--radius); }
.disclaimer-block p { font-size: 0.79rem; color: #92400E; line-height: 1.55; }
[data-theme="dark"] .disclaimer-block { background: #2A1F05; border-color: #78350F; }
[data-theme="dark"] .disclaimer-block p { color: #FCD34D; }

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.article-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; }
.sidebar-block {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.sidebar-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-lang-list { display: flex; flex-direction: column; gap: 6px; }
.sidebar-lang-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-subtle); border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.sidebar-lang-btn:hover,.sidebar-lang-btn.active { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-glow); }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item {
  display: flex; gap: 10px; padding: 10px; border-radius: var(--radius-sm);
  background: var(--bg-subtle); transition: background var(--transition);
}
.related-item:hover { background: var(--accent-glow); }
.related-sentiment { width: 4px; border-radius: var(--radius-pill); flex-shrink: 0; min-height: 38px; }
.related-title { font-size: 0.81rem; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 4px; }
.related-meta { display: flex; align-items: center; gap: 8px; font-size: 0.71rem; color: var(--text-light); }

/* ── PAGINATION ─────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: flex; gap: 5px; }
.page-num,.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); border: 1.5px solid var(--border); transition: all var(--transition);
}
.page-num:hover,.page-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-glow); }
.page-num.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 800; }
.page-btn { gap: 6px; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); padding: 52px 0 0; transition: background 0.3s ease; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid var(--footer-border);
}
.footer-logo { margin-bottom: 14px; }
/* Logo colors in dark footer stay readable */
.footer-logo .logo-fin   { color: #A8C8FF; }
.footer-logo .logo-scans { color: var(--accent-light); }
.footer-desc { font-size: 0.84rem; line-height: 1.65; margin-bottom: 16px; color: var(--footer-text); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-pill {
  font-size: 0.68rem; font-weight: 600; padding: 3px 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill); color: var(--footer-text);
}
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.87rem; color: var(--footer-text); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-lang-grid { display: flex; flex-direction: column; gap: 5px; }
.footer-lang-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 500;
  color: var(--footer-text); border: 1px solid transparent; transition: all var(--transition);
}
.footer-lang-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.footer-lang-btn.active { color: var(--accent-light); border-color: rgba(255,255,255,0.12); background: rgba(0,200,150,0.08); }

/* ── Dark mode toggle ───────────────────────────────────────────── */
.dark-mode-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; background: none; border: none; cursor: pointer;
}
.toggle-track {
  width: 44px; height: 24px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill); position: relative;
  transition: background 0.3s ease, border-color 0.3s ease; flex-shrink: 0;
}
[data-theme="dark"] .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform 0.3s ease; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
[data-theme="dark"] .toggle-thumb { transform: translateX(20px); }
.toggle-label { font-size: 0.82rem; font-weight: 600; color: var(--footer-text); }
.label-dark  { display: none; }
[data-theme="dark"] .label-light { display: none; }
[data-theme="dark"] .label-dark  { display: inline; }

.footer-bottom { padding: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.footer-disclaimer { font-size: 0.73rem; line-height: 1.6; color: rgba(200,220,255,0.3); max-width: 860px; }
.footer-copy { font-size: 0.76rem; color: rgba(200,220,255,0.3); }

/* ── 404 / EMPTY ────────────────────────────────────────────────── */
.error-section { padding: 100px 0; text-align: center; }
.error-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--border); letter-spacing: -0.05em; line-height: 1; }
.error-title { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.error-msg { font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }
.empty-section { padding: 80px 0; text-align: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-icon { font-size: 3rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-sidebar .sidebar-block { flex: 1; min-width: 200px; }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 24px 20px; }
  .featured-footer { flex-direction: column; align-items: flex-start; }
  .article-hero-title { font-size: 1.4rem; }
  .sentiment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pagination { gap: 6px; }
  .page-num,.page-btn { min-width: 36px; height: 36px; font-size: 0.82rem; }
  .content-block { padding: 18px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .card-header { flex-wrap: nowrap; overflow-x: auto; }
}
@media print {
  .site-header,.site-footer,.article-sidebar,.market-bar { display: none; }
  .content-block { box-shadow: none; border: 1px solid #ddd; }
}