/* ═══════════════════════════════════════════════════════
   BLOOMBERG-STYLE JUNIOR MINING MEDIA — MINERALPULSE
   v3.0 — Premium fintech UI with glassmorphism, animations,
   watchlist, notifications, collapsible panels, tooltips
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-primary: #000000;
  --bg-panel: #080808;
  --bg-card: #0D0D0D;
  --bg-hover: #141414;
  --bg-input: #111111;
  --border: #1A1A1A;
  --border-light: #252525;
  --amber: #FFA028;
  --amber-dim: #CC8020;
  --amber-glow: rgba(255, 160, 40, 0.08);
  --blue: #0068FF;
  --blue-dim: #0050CC;
  --teal: #4AF6C3;
  --red: #FF433D;
  --red-dim: rgba(255, 67, 61, 0.12);
  --teal-dim: rgba(74, 246, 195, 0.12);
  --white: #FFFFFF;
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-15: rgba(255,255,255,0.15);
  --gold: #FFD700;
  --silver-metal: #C0C0C0;
  --copper: #B87333;
  --uranium: #7FFF00;
  --lithium: #00BFFF;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

/* ══════════ ANIMATED DOT GRID BACKGROUND ══════════ */
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--white-70);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255,160,40,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-32px, -32px); }
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--amber); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-30); }

/* ══════════ SCROLL REVEAL ANIMATIONS ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ COUNTER ANIMATION ══════════ */
.counter-animate {
  display: inline-block;
  transition: transform 0.3s ease;
}
.counter-animate.tick {
  animation: counterTick 0.4s ease;
}
@keyframes counterTick {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(-8px); opacity: 0; }
  60% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ══════════ TOOLTIP SYSTEM ══════════ */
.tooltip {
  position: relative;
  cursor: pointer;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-light);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 501;
}
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tooltip:hover::before {
  opacity: 1;
}

/* ══════════ TOP ALERT BAR ══════════ */
.alert-bar {
  background: linear-gradient(90deg, var(--amber), #FFB840, var(--amber));
  background-size: 200% 100%;
  animation: alertShimmer 3s ease infinite;
  color: #000;
  text-align: center;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
@keyframes alertShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.alert-bar span { opacity: 0.6; margin: 0 8px; }

/* ══════════ TICKER BAR — Gradient fade edges ══════════ */
.ticker-wrap {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-panel), transparent);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-panel), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  height: 100%;
  transition: background 0.2s;
}
.ticker-item:hover { background: var(--bg-hover); }
.ticker-item .symbol { color: var(--amber); font-weight: 600; }
.ticker-item .price { color: var(--white); font-weight: 500; }
.ticker-item .change { font-weight: 600; font-size: 10.5px; }
.ticker-item .change.up { color: var(--teal); }
.ticker-item .change.down { color: var(--red); }

/* ══════════ HEADER / NAV ══════════ */
.header {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* ── AMBIENT GLOW behind logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}
.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255,160,40,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark .logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, rgba(255,160,40,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: background 0.3s;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-wordmark-top {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
}
.logo-wordmark-top .pulse { color: var(--amber); }
.logo-wordmark-bottom {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--white-30);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}
.logo:hover .logo-mark svg .mark-pulse { animation: logoPulse 0.6s ease-in-out; }
.logo:hover .logo-glow { background: radial-gradient(circle, rgba(255,160,40,0.4) 0%, transparent 70%); }
@keyframes logoPulse {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(1.15); }
  100% { transform: scaleY(1); }
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--white-50);
}
.footer-logo-text span { color: var(--amber-dim); }

/* ── DESKTOP NAV — Active underline slide ── */
.desktop-nav { display: flex; align-items: center; gap: 0; }
.desktop-nav a {
  padding: 18px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white-50);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
  left: 0;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--amber);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

/* ── NOTIFICATION BELL ── */
.notif-bell {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--white-50);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-bell:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.notif-bell svg { width: 16px; height: 16px; }
.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
  animation: notifPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes notifPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── MARKET CLOCK / STATUS BAR ── */
.market-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  padding: 0 12px;
  white-space: nowrap;
}
.market-clock .clock-time {
  color: var(--white-50);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.market-clock .market-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9px;
}
.market-clock .market-status.open { color: var(--teal); }
.market-clock .market-status.closed { color: var(--red); }
.market-clock .market-status .status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.market-clock .market-status.open .status-indicator {
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: statusPulse 2s infinite;
}
.market-clock .market-status.closed .status-indicator {
  background: var(--red);
  opacity: 0.6;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 2px var(--teal); }
}

/* ── Search overlay ── */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  height: 32px;
  gap: 6px;
  position: relative;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--amber-dim); }
.search-box svg { width: 14px; height: 14px; opacity: 0.4; flex-shrink: 0; }
.search-box input {
  background: none;
  border: none;
  color: var(--white-70);
  font-size: 12px;
  font-family: var(--font-sans);
  width: 160px;
  outline: none;
}
.search-box input::placeholder { color: var(--white-30); }
.search-box .kbd-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-30);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.search-results.active { display: block; animation: fadeIn 0.15s ease; }
.search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-result-item:hover { background: var(--bg-hover); }
.search-result-item:last-child { border-bottom: none; }
.search-result-type {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}
.search-result-type.stock { background: var(--teal-dim); color: var(--teal); }
.search-result-type.news { background: rgba(255,160,40,0.12); color: var(--amber); }
.search-result-type.commodity { background: rgba(255,215,0,0.12); color: var(--gold); }
.search-result-text {
  font-size: 12px;
  color: var(--white-70);
  line-height: 1.3;
}
.search-result-text strong { color: var(--white); }
.search-result-sub {
  font-size: 10px;
  color: var(--white-30);
  font-family: var(--font-mono);
}
.search-no-results {
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--white-30);
}

/* ── PREMIUM SUBSCRIBE BUTTON — Hover glow ── */
.btn-subscribe {
  background: var(--amber);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  padding: 8px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.btn-subscribe:hover {
  background: #FFB040;
  color: #000;
  box-shadow: 0 0 20px rgba(255,160,40,0.4), 0 0 40px rgba(255,160,40,0.15);
  transform: translateY(-1px);
}
.btn-subscribe:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(255,160,40,0.3);
}

/* ── Mobile hamburger ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white-70);
  border-radius: 1px;
  transition: all 0.25s ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--white-70);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-nav a.active { color: var(--amber); }
.mobile-nav .mobile-search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  height: 40px;
  gap: 8px;
}
.mobile-nav .mobile-search input {
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-sans);
  width: 100%;
  outline: none;
}
.mobile-nav .mobile-search input::placeholder { color: var(--white-30); }

/* ══════════ MAIN LAYOUT ══════════ */
.main-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* ── MARKET OVERVIEW STRIP — Accent borders + hover lift ── */
.market-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
}
.market-cell {
  background: var(--bg-card);
  padding: 12px 14px;
  min-width: 140px;
  text-align: center;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  position: relative;
}
.market-cell:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 2;
}
.market-cell:nth-child(1) { border-left-color: var(--gold); }
.market-cell:nth-child(2) { border-left-color: var(--silver-metal); }
.market-cell:nth-child(3) { border-left-color: var(--copper); }
.market-cell:nth-child(4) { border-left-color: var(--uranium); }
.market-cell:nth-child(5) { border-left-color: var(--lithium); }
.market-cell:nth-child(6) { border-left-color: var(--amber); }
.market-cell:nth-child(7) { border-left-color: var(--teal); }
.market-cell:nth-child(8) { border-left-color: var(--blue); }
.market-cell .label {
  font-size: 10px;
  color: var(--white-30);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.market-cell .value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}
.market-cell .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.market-cell .delta.up { color: var(--teal); }
.market-cell .delta.down { color: var(--red); }
.market-cell .sparkline {
  margin-top: 6px;
  height: 20px;
}
.market-cell .sparkline svg { width: 100%; height: 20px; }

/* Animated number flash */
.flash-up { animation: flashUp 0.6s ease; }
.flash-down { animation: flashDown 0.6s ease; }
@keyframes flashUp {
  0% { color: var(--white); }
  30% { color: var(--teal); }
  100% { color: var(--white); }
}
@keyframes flashDown {
  0% { color: var(--white); }
  30% { color: var(--red); }
  100% { color: var(--white); }
}

/* ── PANEL SPACING ── */
.content-grid aside .panel + .panel { margin-top: 20px; }
.content-grid section .panel + .panel,
.content-grid section .section-header { margin-top: 24px; }

/* ── GRID LAYOUT ── */
.content-grid {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: 16px;
}

/* ── PANEL BASE — Glassmorphism headers ── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.panel:hover { border-color: var(--border-light); }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid transparent;
  background-image: linear-gradient(var(--bg-panel), var(--bg-panel)),
                     linear-gradient(90deg, rgba(255,160,40,0.5), rgba(255,160,40,0.05));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
}
.panel-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(255,160,40,0.05));
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.panel-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600;
}
.panel-tabs {
  display: flex;
  gap: 0;
}
.panel-tab {
  padding: 6px 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--white-30);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.panel-tab:hover { color: var(--white-70); }
.panel-tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.panel-body { padding: 0; }
.panel-body.padded { padding: 14px; }

/* ── COLLAPSIBLE PANELS ── */
.panel-toggle {
  background: none;
  border: none;
  color: var(--white-30);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.2s;
  width: 20px;
  height: 20px;
}
.panel-toggle:hover { color: var(--white-70); }
.panel-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.collapsed .panel-toggle svg {
  transform: rotate(-90deg);
}
.panel .panel-body {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 1;
}
.panel.collapsed .panel-body {
  max-height: 0;
  opacity: 0;
}

/* "As of" timestamp */
.data-timestamp {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-30);
  padding: 6px 14px;
  border-top: 1px solid var(--border);
  text-align: right;
}

/* ═══════ LOADING SKELETONS ═══════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 3px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-row {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.skeleton-line { height: 12px; border-radius: 3px; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.w-half { width: 50%; }
.skeleton-line.w-third { width: 33%; }
.skeleton-line.w-short { width: 60px; }

/* ═══════ LEFT SIDEBAR ═══════ */
.commodity-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}
.commodity-row:hover { background: var(--bg-hover); }
.commodity-row:last-child { border-bottom: none; }
.commodity-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.commodity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.commodity-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-70);
}
.commodity-symbol {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-30);
  margin-left: 2px;
}
.commodity-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-align: right;
  transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}
.commodity-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  min-width: 52px;
}

/* Sector Navigator */
.sector-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.sector-nav-item:hover { background: var(--bg-hover); padding-left: 18px; }
.sector-nav-item .name {
  font-size: 12px;
  font-weight: 500;
}
.sector-nav-item .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ═══════ WATCHLIST PANEL ═══════ */
.watchlist-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.watchlist-item:hover { background: var(--bg-hover); }
.watchlist-item:last-child { border-bottom: none; }
.watchlist-item .wl-ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}
.watchlist-item .wl-name {
  font-size: 10px;
  color: var(--white-30);
  margin-top: 1px;
}
.watchlist-item .wl-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.watchlist-item .wl-change {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}
.watchlist-item .wl-change.up { color: var(--teal); }
.watchlist-item .wl-change.down { color: var(--red); }
.watchlist-add-btn {
  background: none;
  border: none;
  color: var(--white-30);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: all 0.2s;
  line-height: 1;
}
.watchlist-add-btn:hover { color: var(--amber); transform: scale(1.15); }
.watchlist-add-btn.active { color: var(--amber); }
.watchlist-empty {
  padding: 24px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-30);
  line-height: 1.6;
}
.watchlist-empty .wl-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.3;
}

/* ═══════ CENTER / MAIN FEED ═══════ */
/* ── HERO — Animated gradient overlay ── */
.hero-article {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  cursor: pointer;
}
.hero-article:hover .hero-img { transform: scale(1.03); }
.hero-img-wrap {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0,0,0,0.5) 25%,
    rgba(0,0,0,0.9) 65%,
    rgba(0,0,0,0.98) 100%
  );
  padding: 60px 24px 24px;
  animation: heroGradientShift 8s ease infinite alternate;
}
@keyframes heroGradientShift {
  0% {
    background: linear-gradient(
      transparent 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.9) 65%, rgba(0,0,0,0.98) 100%
    );
  }
  100% {
    background: linear-gradient(
      transparent 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.9) 65%, rgba(0,0,0,0.98) 100%
    );
  }
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #000;
  background: var(--amber);
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hero-tag.breaking { background: var(--red); color: var(--white); animation: breakingFlash 1.5s ease infinite; }
@keyframes breakingFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.hero-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.hero-excerpt {
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.5;
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--white-30); border-radius: 50%; }

/* ── PREMIUM ARTICLE CARDS — Gradient border on hover ── */
.articles-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.article-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,160,40,0), rgba(255,160,40,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s ease;
  z-index: 1;
}
.article-card:hover::before {
  background: linear-gradient(135deg, var(--amber), rgba(255,160,40,0.2), var(--amber));
}
.article-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,160,40,0.06);
}
.article-card-img {
  height: 160px;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 14px; flex: 1; }
.article-card-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.article-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.article-card:hover .article-card-title { color: var(--amber); }
.article-card-excerpt {
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  margin-top: 8px;
}

/* News Feed List */
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.15s, padding-left 0.15s;
  cursor: pointer;
}
.feed-item:hover { background: var(--bg-hover); padding-left: 18px; }
.feed-item.active-item { background: var(--bg-hover); border-left: 2px solid var(--amber); }
.feed-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  min-width: 42px;
  padding-top: 2px;
}
.feed-content {}
.feed-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.feed-tag.drill { color: var(--teal); }
.feed-tag.alert { color: var(--red); }
.feed-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-top: 2px;
}
.feed-snippet {
  font-size: 11.5px;
  color: var(--white-50);
  margin-top: 3px;
  line-height: 1.45;
}
.feed-thumb {
  width: 72px;
  height: 50px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════ TRADINGVIEW CHART EMBED ═══════ */
.tv-chart-wrap {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.tv-chart-wrap iframe { width: 100%; height: 100%; border: none; }
.chart-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.chart-tab {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--white-30);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.chart-tab:hover { color: var(--white-70); }
.chart-tab.active { color: var(--amber); border-bottom-color: var(--amber); background: var(--bg-card); }

/* ── CHART ACTIVE LABEL ── */
.chart-active-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-50);
  padding: 6px 16px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ═══════ DRILL RESULTS TABLE — Alternating rows ═══════ */
.drill-table { width: 100%; border-collapse: collapse; }
.drill-table th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--white-30);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  position: sticky;
  top: 0;
}
.drill-table td {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--white-70);
}
.drill-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.drill-table tr:hover td { background: var(--bg-hover); }
.drill-table .ticker { color: var(--amber); font-weight: 600; }
.drill-table .grade-high { color: var(--teal); font-weight: 600; }
.drill-table .grade-med { color: var(--white); }
.drill-table .grade-low { color: var(--white-50); }

/* ═══════ RIGHT SIDEBAR ═══════ */
.mover-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, padding-left 0.15s;
  cursor: pointer;
}
.mover-row:hover { background: var(--bg-hover); padding-left: 18px; }
.mover-rank {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  min-width: 16px;
}
.mover-info {}
.mover-ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}
.mover-name {
  font-size: 10px;
  color: var(--white-30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.mover-price {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white-70);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mover-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  min-width: 54px;
  padding: 2px 6px;
  border-radius: 2px;
}
.mover-change.up { color: var(--teal); background: var(--teal-dim); }
.mover-change.down { color: var(--red); background: var(--red-dim); }

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, rgba(255,160,40,0.08), rgba(255,160,40,0.02));
  border: 1px solid rgba(255,160,40,0.2);
  border-top: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.newsletter-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,160,40,0.04), transparent 50%);
  pointer-events: none;
}
.newsletter-cta h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 6px;
}
.newsletter-cta p {
  font-size: 12px;
  color: var(--white-50);
  margin-bottom: 12px;
  line-height: 1.5;
}
.newsletter-input-group {
  display: flex;
  gap: 6px;
}
.newsletter-input-group input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--white);
  font-size: 12px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input-group input:focus { border-color: var(--amber); }
.newsletter-input-group button {
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.newsletter-input-group button:hover {
  background: #FFB040;
  box-shadow: 0 0 16px rgba(255,160,40,0.3);
}

/* Trending Topics */
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, padding-left 0.15s;
}
.trending-item:hover { background: var(--bg-hover); padding-left: 18px; }
.trending-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--amber);
  min-width: 24px;
}
.trending-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-70);
  line-height: 1.3;
}
.trending-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-30);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════ STOCK SCREENER SECTION ═══════ */
.screener-section { margin-top: 16px; }
.screener-filters {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--white-50);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.filter-chip:hover { border-color: var(--amber); color: var(--amber); }
.filter-chip.active { background: var(--amber); color: #000; border-color: var(--amber); font-weight: 600; }
.screener-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Screener table — Alternating rows ── */
.screener-table { width: 100%; border-collapse: collapse; }
.screener-table th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--white-30);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  transition: color 0.15s;
}
.screener-table th:hover { color: var(--amber); }
.screener-table th .sort-arrow { font-size: 8px; margin-left: 3px; opacity: 0.5; }
.screener-table td {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.screener-table tbody tr { transition: background 0.1s; cursor: pointer; }
.screener-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.screener-table tbody tr:hover td { background: var(--bg-hover); }
.screener-table .tk { color: var(--amber); font-weight: 600; }
.screener-table .company-name { color: var(--white-70); font-family: var(--font-sans); font-size: 11px; }
.screener-table .price { color: var(--white); font-weight: 500; }
.screener-table .up { color: var(--teal); }
.screener-table .down { color: var(--red); }
.screener-table .mcap { color: var(--white-50); }
.screener-table .commodity-tag {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 2px;
  font-weight: 600;
}
.tag-gold { background: rgba(255,215,0,0.12); color: var(--gold); }
.tag-silver { background: rgba(192,192,192,0.12); color: var(--silver-metal); }
.tag-copper { background: rgba(184,115,51,0.12); color: var(--copper); }
.tag-uranium { background: rgba(127,255,0,0.12); color: var(--uranium); }
.tag-lithium { background: rgba(0,191,255,0.12); color: var(--lithium); }
.tag-nickel { background: rgba(160,160,200,0.12); color: #A0A0C8; }

.mini-spark { display: inline-block; vertical-align: middle; }
.mini-spark svg { display: block; }

/* ── 52-WEEK RANGE BAR ── */
.range-52w { min-width: 100px; }
.range-bar {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  position: relative;
  margin-bottom: 2px;
}
.range-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
}
.range-labels {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--white-30);
}

/* ═══════ IMPROVED HEATMAP ═══════ */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 2px;
  padding: 2px;
}
.heat-cell {
  padding: 12px 8px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s;
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.heat-cell:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 2;
  opacity: 1 !important;
}
.heat-cell .htk { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--white); }
.heat-cell .hpct { font-family: var(--font-mono); font-size: 14px; font-weight: 800; margin-top: 2px; }
.heat-cell .hname { font-size: 9px; color: rgba(255,255,255,0.6); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Variable heights based on significance */
.heat-cell.heat-lg { min-height: 80px; grid-row: span 1; }
.heat-cell.heat-xl { min-height: 100px; grid-column: span 2; }
.heat-green-3 { background: linear-gradient(135deg, rgba(74,246,195,0.4), rgba(74,246,195,0.25)); }
.heat-green-3 .hpct { color: var(--teal); }
.heat-green-2 { background: linear-gradient(135deg, rgba(74,246,195,0.25), rgba(74,246,195,0.15)); }
.heat-green-2 .hpct { color: var(--teal); }
.heat-green-1 { background: linear-gradient(135deg, rgba(74,246,195,0.12), rgba(74,246,195,0.06)); }
.heat-green-1 .hpct { color: rgba(74,246,195,0.7); }
.heat-red-1 { background: linear-gradient(135deg, rgba(255,67,61,0.12), rgba(255,67,61,0.06)); }
.heat-red-1 .hpct { color: rgba(255,67,61,0.7); }
.heat-red-2 { background: linear-gradient(135deg, rgba(255,67,61,0.25), rgba(255,67,61,0.15)); }
.heat-red-2 .hpct { color: var(--red); }
.heat-red-3 { background: linear-gradient(135deg, rgba(255,67,61,0.4), rgba(255,67,61,0.25)); }
.heat-red-3 .hpct { color: var(--red); }

/* ═══════ SECTION DIVIDERS ═══════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-left: 10px;
  border-left: 3px solid var(--amber);
}
.section-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  cursor: pointer;
  transition: color 0.2s;
}
.section-link:hover { color: var(--amber); }

/* ═══════ DISCLAIMER ═══════ */
.disclaimer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  max-width: 1600px;
  margin: 0 auto;
}
.disclaimer p {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white-30);
  line-height: 1.6;
  max-width: 900px;
}

/* ═══════ FOOTER — Multi-column layout ═══════ */
/* ═══════ PREMIUM FOOTER ═══════ */
footer {
  border-top: 1px solid var(--border);
  position: relative;
  margin-top: 48px;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-panel) 0%, #050505 100%);
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(255,160,40,0.3), var(--amber-dim), rgba(255,160,40,0.05));
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* Newsletter Banner */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin: 0 -24px;
  background: linear-gradient(135deg, rgba(255,160,40,0.06) 0%, rgba(255,160,40,0.02) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.footer-nl-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-nl-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.footer-nl-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer-nl-sub {
  font-size: 12px;
  color: var(--white-30);
  margin-top: 2px;
}
.footer-nl-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.footer-nl-form input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--white-70);
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.footer-nl-form input:focus { border-color: var(--amber-dim); }
.footer-nl-form input::placeholder { color: var(--white-30); }
.footer-nl-form button {
  background: var(--amber);
  color: #000;
  border: 1px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.footer-nl-form button:hover {
  background: #FFB040;
  box-shadow: 0 0 20px rgba(255,160,40,0.3);
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
}
.footer-col-brand {}
.footer-description {
  font-size: 12px;
  color: var(--white-30);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--white-30);
  transition: all 0.2s;
}
.footer-social-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255,160,40,0.06);
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--white-30);
  padding: 5px 0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--amber); padding-left: 6px; }

/* Disclaimer */
.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-disclaimer p {
  font-size: 10px;
  color: var(--white-15);
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}
.footer-left {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
}
.footer-exchanges {
  display: flex;
  gap: 4px;
}
.footer-exchanges span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--white-30);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.footer-exchanges span:hover {
  border-color: var(--amber-dim);
  color: var(--amber);
  background: rgba(255,160,40,0.06);
}

/* ═══════ UTILITIES ═══════ */
.text-amber { color: var(--amber); }
.text-teal { color: var(--teal); }
.text-red { color: var(--red); }
.text-muted { color: var(--white-30); }
.mono { font-family: var(--font-mono); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.status-dot.live { background: var(--teal); box-shadow: 0 0 6px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Keyboard shortcut toast */
.kbd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-50);
  z-index: 300;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.kbd-toast.show { display: block; animation: fadeIn 0.2s ease; }
.kbd-toast kbd {
  display: inline-block;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--amber);
  margin: 0 2px;
}

/* ═══════ NOTIFICATION CONTAINER ═══════ */
.notif-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  pointer-events: none;
}
.notif-toast {
  pointer-events: all;
}

/* ═══════ RESPONSIVE ═══════ */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 280px 1fr;
  }
  .content-grid > :nth-child(3) {
    display: none;
  }
  .market-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .market-clock { display: none; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* Mobile breakpoint */
@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid > :nth-child(3) { display: block; }
  .market-strip { grid-template-columns: repeat(2, 1fr); }
  .articles-duo { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-box { display: none; }
  .btn-subscribe { display: none; }
  .notif-bell { display: none; }
  .header-inner { height: 50px; }
  .hero-img-wrap { height: 220px; }
  .hero-title { font-size: 18px; }
  .hero-excerpt { font-size: 12px; }
  .tv-chart-wrap { height: 300px; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-nl-form { width: 100%; }
  .footer-nl-form input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-exchanges { flex-wrap: wrap; justify-content: center; }
  .alert-bar { font-size: 9px; padding: 5px 12px; }
  .main-wrap { padding: 12px 16px; }
  .market-cell { padding: 10px 8px; }
  .market-cell .value { font-size: 14px; }
  /* Hide less important panels on mobile */
  .sector-nav-panel,
  .trending-panel,
  .watchlist-panel.hide-mobile {
    display: none;
  }
  .heatmap-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  .heat-cell.heat-xl { grid-column: span 1; }
}

/* Small mobile */
@media (max-width: 480px) {
  .market-strip { grid-template-columns: 1fr 1fr; }
  .market-cell .label { font-size: 9px; }
  .market-cell .value { font-size: 13px; }
  .hero-title { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-card-img { height: 120px; }
  .panel-header { padding: 8px 12px; }
  .panel-title { font-size: 10px; }
}
