/* =========================================
   WHO FIRED — Data-first layoff tracker
   Refined UI: editorial, trustworthy, clean
   ========================================= */

:root {
  --bg: #0c0c0f;
  --surface: #141418;
  --surface-elevated: #1a1a1f;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #e5484d;
  --accent-hover: #f2555a;
  --accent-muted: rgba(229, 72, 77, 0.15);
  --gold: #f0b429;
  --silver: #a8a8a8;
  --bronze: #c47d3a;
  --success: #46a758;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  /* compat */
  --black: var(--bg);
  --card: var(--surface);
  --card2: var(--surface-elevated);
  --dim: #25252a;
  --green: var(--success);
  --muted: var(--text-muted);
  --accent2: #f97316;
  --font-display: var(--font-heading);
}

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

html { scroll-behavior: smooth; }

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

/* Subtle grain */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

/* Office-setup background animation */
.office-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.office-bg-window {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: linear-gradient(165deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  border-radius: 0 0 0 120px;
  animation: officeWindow 18s ease-in-out infinite;
}

.office-bg-desk {
  position: absolute;
  bottom: 0;
  height: 12%;
  background: linear-gradient(to top, rgba(255,255,255,0.04), transparent);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.office-bg-desk-1 {
  left: 0;
  width: 45%;
  animation: officeDesk 14s ease-in-out infinite;
}

.office-bg-desk-2 {
  right: 0;
  width: 40%;
  animation: officeDesk 16s ease-in-out infinite 1s;
}

.office-bg-desk-3 {
  left: 30%;
  width: 35%;
  bottom: 18%;
  height: 8%;
  opacity: 0.6;
  animation: officeDesk 12s ease-in-out infinite 0.5s;
}

.office-bg-floating {
  position: absolute;
  width: 24px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.06);
}

.office-bg-doc-1 {
  top: 25%;
  left: 15%;
  animation: officeFloat 20s ease-in-out infinite;
}

.office-bg-doc-2 {
  top: 55%;
  right: 20%;
  width: 20px;
  height: 28px;
  animation: officeFloat 22s ease-in-out infinite 2s;
}

.office-bg-doc-3 {
  top: 40%;
  right: 35%;
  width: 18px;
  height: 24px;
  animation: officeFloat 18s ease-in-out infinite 4s;
}

.office-bg-monitor {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 120px;
  height: 70px;
  margin-left: -60px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  animation: officeMonitor 10s ease-in-out infinite;
}

@keyframes officeWindow {
  0%, 100% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(-2%, 1%) scale(1.02); }
}

@keyframes officeDesk {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-3px); }
}

@keyframes officeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(4px, -6px) rotate(2deg); }
  50% { transform: translate(-3px, 2px) rotate(-1deg); }
  75% { transform: translate(2px, 4px) rotate(1deg); }
}

@keyframes officeMonitor {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Office background — repeated in sections (hero, main, blogs, footer) */
.office-bg-section {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.office-bg-hero .office-bg-window { top: -10%; right: -5%; width: 40%; height: 50%; }
.office-bg-hero .office-bg-desk-1 { left: 0; width: 50%; }
.office-bg-hero .office-bg-desk-2 { right: 0; width: 45%; }
.office-bg-hero .office-bg-doc-1 { top: 30%; left: 10%; }
.office-bg-hero .office-bg-monitor { bottom: 20%; left: 55%; margin-left: -50px; width: 100px; height: 58px; }

.office-bg-main { opacity: 0.85; }
.office-bg-main .office-bg-window { top: -15%; left: -8%; width: 45%; height: 55%; right: auto; }
.office-bg-main .office-bg-desk-1 { right: 0; left: auto; width: 50%; }
.office-bg-main .office-bg-desk-3 { left: 55%; bottom: 25%; width: 30%; }
.office-bg-main .office-bg-doc-2 { top: 35%; right: 15%; }
.office-bg-main .office-bg-monitor { bottom: 18%; left: 35%; margin-left: -45px; width: 90px; height: 52px; }

.office-bg-blogs .office-bg-window { top: -20%; right: -10%; width: 50%; height: 60%; }
.office-bg-blogs .office-bg-desk-1 { left: 0; width: 40%; }
.office-bg-blogs .office-bg-desk-2 { right: 0; width: 45%; }
.office-bg-blogs .office-bg-doc-3 { top: 50%; left: 25%; }
.office-bg-blogs .office-bg-monitor { bottom: 15%; right: 30%; left: auto; margin-left: 0; margin-right: -40px; width: 80px; height: 46px; }

.office-bg-footer { opacity: 0.7; }
.office-bg-footer .office-bg-desk-1 { left: 0; width: 55%; }
.office-bg-footer .office-bg-desk-2 { right: 0; width: 50%; }
.office-bg-footer .office-bg-doc-1 { top: 20%; right: 20%; left: auto; }

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(12, 12, 15, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left { display: flex; align-items: center; gap: 20px; }

.topbar-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fire-icon {
  display: inline-block;
  animation: fireFlicker 2s ease-in-out infinite;
  pointer-events: none;
}

.fire-icon-logo {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(229, 72, 77, 0.4));
}

.fire-icon-btn {
  font-size: 1rem;
  line-height: 1;
  margin-right: 4px;
  filter: drop-shadow(0 0 4px rgba(229, 72, 77, 0.3));
}

@keyframes fireFlicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.fire-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0;
  animation: fireCornerIn 1.2s ease 0.3s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fire-corner::before {
  content: '🔥';
  font-size: 28px;
  opacity: 0.4;
  animation: fireFlicker 3s ease-in-out infinite;
  line-height: 1;
}

.fire-corner-tl {
  top: 20px;
  left: 20px;
}

.fire-corner-br {
  bottom: 20px;
  right: 20px;
  animation-delay: 0.6s;
}

.fire-corner-br::before {
  font-size: 24px;
  opacity: 0.3;
}

@keyframes fireCornerIn {
  to { opacity: 1; }
}

.topbar-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s;
}

.topbar-logo:hover { color: var(--accent); }

.topbar-tag {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.topbar-divider { opacity: 0.4; }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* TICKER */
.ticker-wrap {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 99;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-dot {
  color: var(--accent);
  opacity: 0.5;
  font-size: 6px;
}

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

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 64px;
  border-bottom: 1px solid var(--border);
  overflow-x: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero-inner.hero-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: start;
}

.hero-left {
  min-width: 0;
  min-height: 200px;
}

.hero-right {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 18px;
  background: var(--surface-elevated);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.hero-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-right-cell {
  min-height: 100px;
  min-width: 0;
}

.hero-right-chart-wrap.hero-right-cell {
  grid-column: 1 / -1;
  min-height: 160px;
}

.hero-right-top3-links.hero-right-cell {
  grid-column: 1 / -1;
}

.hero-right-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(229, 72, 77, 0.2);
}

.hero-right-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-right-chart-wrap {
  position: relative;
  padding: 16px;
  min-height: 180px;
}

.hero-right-chart-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-right-chart-inner {
  height: 160px;
  width: 100%;
}

.hero-right-chart-inner canvas {
  width: 100% !important;
  height: 160px !important;
  display: none;
}

.hero-right-chart-inner canvas[data-visible="true"] {
  display: block;
}

.hero-right-chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  padding: 24px;
  text-align: center;
}

.hero-right-top3-links {
  padding: 16px;
}

.hero-right-top3-links-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-right-top3-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-right-top3-links-empty {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
}

.hero-right-top3-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}

.hero-right-top3-link:hover {
  border-color: var(--accent);
  background: rgba(229, 72, 77, 0.08);
}

.hero-right-top3-link-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-right-top3-link-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.hero-right-top3-link-source {
  font-size: 0.75rem;
  color: var(--accent);
}

/* Top 3 Companies · In the news */
.hero-right-news {
  padding: 18px;
}

.hero-right-news-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.hero-right-news-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}

.hero-right-news-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-right-news-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.hero-news-card {
  padding: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-news-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(229, 72, 77, 0.15);
}

.hero-news-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-news-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.hero-news-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 72, 77, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.hero-news-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

/* (Office animation moved to .office-bg-section in multiple sections) */

@keyframes officeDeskFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes officeScreenGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(229, 72, 77, 0); }
  50% { box-shadow: 0 0 12px rgba(229, 72, 77, 0.2); }
}

@keyframes officePersonIdle {
  0%, 100% { transform: translateX(calc(-50% - 28px)) rotate(0deg); }
  25% { transform: translateX(calc(-50% - 30px)) rotate(-2deg); }
  75% { transform: translateX(calc(-50% - 26px)) rotate(2deg); }
}

.hero-awards {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hero-awards-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-awards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-award-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
}

.hero-award-item[data-rank="1"] { border-left-color: var(--gold); }
.hero-award-item[data-rank="2"] { border-left-color: var(--silver); }
.hero-award-item[data-rank="3"] { border-left-color: var(--bronze); }

.hero-award-item.placeholder .hero-award-name,
.hero-award-item.placeholder .hero-award-count { color: var(--text-muted); }

.hero-award-rank {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-award-name {
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-award-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.hero-venn {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venn-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.venn-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.venn-label-center {
  font-size: 8px;
}

.hero-latest {
  padding: 20px;
}

.hero-latest-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-latest-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-latest-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-prompt-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-prompt-input::placeholder { color: var(--text-muted); }
.hero-prompt-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 75% 40%, rgba(229, 72, 77, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* Hero visual: hammer */
.hero-visual {
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hammer-wrap {
  position: relative;
  width: 72px;
  height: 100px;
  color: var(--accent2);
  filter: drop-shadow(0 4px 12px rgba(255, 59, 59, 0.2));
}

.hammer-svg {
  width: 100%;
  height: 100%;
  transform-origin: 60% 15%;
  transition: transform 0.15s ease-out;
}

.hammer-handle { color: #4a3728; }
.hammer-head { color: var(--accent2); }
.hammer-face { opacity: 0.9; }

.hammer-wrap.idle .hammer-svg {
  animation: hammerIdle 2.5s ease-in-out infinite;
}

.hammer-wrap.bash .hammer-svg {
  animation: hammerBash 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hammer-impact {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 12px;
  margin-left: -30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 59, 59, 0.35) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.hammer-wrap.bash .hammer-impact {
  animation: impactBurst 0.5s ease-out forwards;
}

/* Decorative hammers around the site (idle animation) */
.hammer-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--accent2);
  opacity: 0.5;
}

.hammer-deco-svg {
  width: 100%;
  height: 100%;
  transform-origin: 60% 15%;
  animation: hammerIdle 2.5s ease-in-out infinite;
}

.hammer-deco .hammer-handle { color: #4a3728; }
.hammer-deco .hammer-head { color: var(--accent2); }
.hammer-deco .hammer-face { opacity: 0.9; }

.hammer-deco-hero {
  top: 24px;
  right: 24px;
  width: 32px;
  height: 44px;
}

.hammer-deco-dashboard {
  top: 20px;
  right: 24px;
  width: 28px;
  height: 38px;
}

.hammer-deco-section {
  top: 24px;
  left: 24px;
  width: 24px;
  height: 32px;
}

.hammer-deco-tr {
  left: auto;
  right: 24px;
}

.hammer-deco-blogs {
  top: 24px;
  left: 50%;
  margin-left: -14px;
  width: 28px;
  height: 38px;
}

.hammer-deco-footer {
  bottom: 50%;
  left: 24px;
  top: auto;
  transform: translateY(50%);
  width: 24px;
  height: 32px;
}

#dashboard { position: relative; }
#dashboard .dashboard-toolbar,
#dashboard .section,
#dashboard .kpi-strip { position: relative; z-index: 1; }
.hero { position: relative; }
.blogs-wrap { position: relative; }
.blogs-wrap .main-container { position: relative; z-index: 1; }
.footer { position: relative; }
.footer > span,
.footer > .footer-dot,
.footer > .footer-link { position: relative; z-index: 1; }
.section { position: relative; }

@keyframes hammerIdle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(2deg); }
}

@keyframes hammerBash {
  0% { transform: rotate(-8deg); }
  35% { transform: rotate(52deg); }
  50% { transform: rotate(48deg); }
  100% { transform: rotate(-6deg); }
}

@keyframes impactBurst {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-title-row .hammer-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 72px;
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.15s forwards;
}

.hero-title-row .hammer-impact {
  left: 50%;
  bottom: -4px;
  margin-left: -24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.25s forwards;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.4s forwards;
}

.fetch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.5s forwards, btnPulse 2.5s ease-in-out 1.5s 2;
  position: relative;
  box-shadow: 0 2px 12px rgba(229, 72, 77, 0.25);
  align-self: flex-start;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(229, 72, 77, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.15); }
}

.fetch-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 72, 77, 0.3);
}

.fetch-btn:active {
  transform: translateY(0);
}

.fetch-btn:disabled {
  background: var(--dim);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-icon { font-size: 0.9rem; opacity: 0.9; }
.btn-arrow { transition: transform 0.2s; }
.fetch-btn:hover .btn-arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.6s forwards;
}

.hero-cta-secondary {
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.5s forwards;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.link-btn:hover {
  color: var(--accent);
}

/* KPI STRIP */
.kpi-strip {
  display: flex;
  align-items: stretch;
  padding: 24px;
  overflow-x: auto;
  animation: fadeIn 0.5s ease 0.05s backwards;
}

.kpi-card {
  flex: 1;
  min-width: 140px;
  padding: 24px 20px;
  background: var(--surface);
  animation: fadeIn 0.5s ease forwards;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  border-radius: var(--radius-md);
  position: relative;
  margin: 0 1px;
}

.kpi-card:first-child { margin-left: 0; }
.kpi-card:last-child { margin-right: 0; }

.kpi-card:hover {
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}

.kpi-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.kpi-divider {
  width: 1px;
  min-width: 1px;
  height: 48px;
  align-self: center;
  background: var(--border);
  flex-shrink: 0;
}

/* MAIN CONTAINER */
.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.dashboard-toolbar {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.toolbar-btn:hover {
  background: var(--dim);
  border-color: var(--border-strong);
}

.toolbar-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.toolbar-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.toolbar-btn-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.toolbar-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.main-container .section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.main-container .kpi-strip { margin: 0 -24px 24px; padding: 20px 24px; }

/* SECTIONS */
.section {
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  animation: sectionReveal 0.5s ease forwards;
  opacity: 0;
}

#dashboard .section:nth-child(3) { animation-delay: 0.08s; }
#dashboard .section:nth-child(4) { animation-delay: 0.14s; }
#dashboard .section:nth-child(5) { animation-delay: 0.2s; }
#dashboard .section:nth-child(6) { animation-delay: 0.26s; }

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

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* PODIUM */
.podium-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.podium-item {
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.2s;
}

.podium-item:hover {
  background: var(--surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.podium-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.podium-item.rank-1::before { background: var(--gold); }
.podium-item.rank-2::before { background: var(--silver); }
.podium-item.rank-3::before { background: var(--bronze); }

.podium-rank {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  opacity: 0.08;
  position: absolute;
  top: 20px;
  right: 24px;
}

.podium-medal {
  font-size: 32px;
  margin-bottom: 16px;
}

.podium-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.podium-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.podium-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.podium-sector {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.podium-bar {
  margin-top: 24px;
  height: 3px;
  background: var(--dim);
  border-radius: 2px;
  overflow: hidden;
}

.podium-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-1 .podium-bar-fill { background: var(--gold); }
.rank-2 .podium-bar-fill { background: var(--silver); }
.rank-3 .podium-bar-fill { background: var(--bronze); }

/* CHARTS */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.chart-box {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.chart-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.chart-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chart-type {
  background: var(--accent-muted);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 0.65rem;
  border-radius: var(--radius-sm);
}

.chart-wrap {
  position: relative;
  height: 280px;
}

/* HEATMAP */
.heatmap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.heat-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: default;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.heat-cell:hover {
  border-color: var(--border-strong);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.heat-cell-action {
  cursor: pointer;
}

.heat-cell-action .heat-ask {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

.heat-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.heat-count {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: white;
}

/* TABLE CONTROLS */
.table-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.search-input::placeholder { color: var(--text-muted); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.active:hover { filter: brightness(1.08); }

/* DATA TABLE */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--surface-elevated);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-table th.sortable:hover { color: var(--accent); }

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: var(--surface-elevated);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.td-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.td-name {
  font-weight: 600;
  white-space: nowrap;
}

.td-sector {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

.td-layoffs {
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}

.td-layoffs.high { color: var(--accent); }
.td-layoffs.med { color: var(--accent2); }
.td-layoffs.low { color: var(--text); }

.td-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.td-reason {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.td-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.6;
}

.td-source-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 59, 59, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.td-source-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.td-actions {
  white-space: nowrap;
  vertical-align: middle;
}

.btn-get-details {
  padding: 6px 12px;
  background: var(--surface-elevated);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-get-details:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
}

/* Hero top 3 — article cards */
.hero-three-cards-section {
  padding-top: 32px;
}

.hero-three-cards-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-three-cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-three-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  animation: cardReveal 0.5s ease forwards;
  opacity: 0;
}

.hero-three-card:nth-child(1) { animation-delay: 0.05s; }
.hero-three-card:nth-child(2) { animation-delay: 0.15s; }
.hero-three-card:nth-child(3) { animation-delay: 0.25s; }

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

.hero-three-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hero-three-card:hover .hero-three-card-count {
  color: var(--accent-hover);
}

.hero-three-card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-three-card.card-rank-1 .hero-three-card-badge { color: var(--gold); }
.hero-three-card.card-rank-2 .hero-three-card-badge { color: var(--silver); }
.hero-three-card.card-rank-3 .hero-three-card-badge { color: var(--bronze); }

.hero-three-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.hero-three-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-three-card-sector {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-three-card-layoffs {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-three-card-count {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-three-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-three-card-reason {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-height: 0;
}

.hero-three-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.hero-three-card-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 72, 77, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.hero-three-card-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.hero-three-card-btn {
  padding: 8px 14px;
  background: var(--surface-elevated);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-three-card-btn:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .hero-three-cards {
    grid-template-columns: 1fr;
  }
}

/* MEDIA PROOF SECTION */
.section-media-proof .section-header { margin-bottom: 16px; }

.media-proof-intro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 24px;
}

.media-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.media-proof-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.media-proof-card:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.media-proof-outlet {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.media-proof-company { font-weight: 600; }

.media-proof-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.media-proof-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
}

.media-proof-none {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.td-date {
  font-weight: 500;
  color: var(--text);
}

.td-bar {
  width: 80px;
  height: 4px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  overflow: hidden;
}

.td-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* LOADING */
.loading-screen, .error-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.loading-inner, .error-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loading-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ls {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.ls.active { color: var(--text); }
.ls.done { color: var(--success); }

.error-code {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.error-msg {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ========================================
   CHAT: BOTTOM SHEET (opens after fetch)
   ======================================== */
.chat-overlay,
.news-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-overlay[aria-hidden="false"],
.news-panel-overlay[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.chat-backdrop,
.news-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chat-sheet,
.news-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 72vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 301;
}

.chat-overlay[aria-hidden="false"] .chat-sheet,
.news-panel-overlay[aria-hidden="false"] .news-panel {
  transform: translateY(0);
}

.chat-sheet-header,
.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-sheet-title,
.news-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.chat-sheet-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 20px 12px;
  flex-shrink: 0;
}

.news-panel-icon {
  color: var(--accent);
  font-size: 18px;
}

.chat-sheet-close,
.news-panel-close {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: var(--radius-sm);
}

.chat-sheet-close:hover,
.news-panel-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.news-panel-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  padding: 0 24px 16px;
  flex-shrink: 0;
}

/* Chat panel: messages */
.chat-panel { display: flex; flex-direction: column; }

.chat-messages {
  flex: 1;
  min-height: 120px;
  max-height: 28vh;
  overflow-y: auto;
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
}

.chat-msg-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
}

.chat-msg p { margin: 0; }

.chat-msg-user {
  align-self: flex-end;
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.25);
  margin-left: 24px;
}

.chat-msg-user .chat-msg-label { color: var(--accent); }

.chat-msg-bot {
  align-self: flex-start;
  background: var(--card2);
  border: 1px solid var(--border);
  margin-right: 24px;
}

.chat-msg-loading { opacity: 0.8; }

.chat-msg-error { border-color: rgba(255, 59, 59, 0.3); }

.chat-msg-intro {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

.chat-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-article-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

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

.chat-article-item .news-item-title { font-size: 13px; margin-bottom: 4px; }
.chat-article-item .news-item-meta { font-size: 9px; margin-bottom: 4px; }
.chat-article-item .news-item-snippet { font-size: 11px; line-height: 1.4; }
.chat-article-item .news-item-link { margin-top: 6px; display: inline-block; }

.news-panel-prompt-wrap {
  padding: 0 24px 16px;
  flex-shrink: 0;
}

.news-panel-prompt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-panel-prompt {
  width: 100%;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.news-panel-prompt:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.15);
}

.news-panel-prompt::placeholder {
  color: var(--muted);
}

.news-panel-chips-wrap {
  padding: 0 24px 16px;
  flex-shrink: 0;
}

.news-panel-chips-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-chip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.news-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 59, 59, 0.06);
  transform: translateY(-1px);
}

.news-chip:active {
  transform: translateY(0);
}

.news-panel-actions {
  padding: 0 24px 20px;
  flex-shrink: 0;
}

.news-panel-fetch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-panel-fetch-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229, 72, 77, 0.25);
}

.news-panel-fetch-btn:disabled {
  background: var(--dim);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.news-btn-icon { font-size: 14px; }

.news-panel-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
  position: relative;
}

.news-panel-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.news-loading-dots {
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='4' cy='12' r='2' fill='black'/%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3Ccircle cx='20' cy='12' r='2' fill='black'/%3E%3C/svg%3E") no-repeat center;
  mask-size: 24px 24px;
  animation: news-dots 1s ease-in-out infinite;
}

@keyframes news-dots {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

.news-panel-error {
  padding: 16px;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  border-radius: 4px;
}

.news-panel-list {
  list-style: none;
}

.news-panel-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
  animation: newsItemIn 0.4s ease forwards;
  opacity: 0;
}

.news-panel-list li:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
  border-radius: 6px;
}

.news-panel-list li:last-child { border-bottom: none; }

.news-item-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.news-item-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-item-snippet {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.news-item-link:hover { color: var(--gold); gap: 10px; }

.news-panel-empty {
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-align: center;
}

.news-panel-list:not(:empty) ~ .news-panel-empty { display: none; }

/* BLOGS & SCROLLABLE BOTTOM */
.blogs-wrap {
  position: relative;
  z-index: 1;
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(20, 20, 24, 0.4));
}

.blogs-inner {
  padding: 0 24px;
}

.blogs-wrap .section-title {
  margin-bottom: 8px;
}

.blogs-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.blog-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.blog-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.blog-card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-link:hover {
  color: var(--accent-hover);
}

.blogs-cta {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.blogs-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* FOOTER */
.footer {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-dot { color: var(--accent); opacity: 0.5; font-size: 0.5rem; }

.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

/* Scroll to top FAB */
.scroll-top-fab {
  position: fixed;
  bottom: 72px;
  right: 24px;
  z-index: 198;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.scroll-top-fab:hover {
  background: var(--dim);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* FAB + right-side chat panel */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 199;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(229, 72, 77, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.chat-fab:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 72, 77, 0.4);
}

.chat-fab-icon { font-size: 1rem; opacity: 0.95; }
.chat-fab-label { letter-spacing: 0.02em; }

.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  z-index: 200;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-panel.chat-window {
  top: auto;
  bottom: 0;
  right: 0;
  height: auto;
  max-height: min(560px, 85vh);
  min-height: 380px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-left: none;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.chat-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.chat-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.chat-panel-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.chat-panel-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chat-panel-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.chat-panel-desc {
  flex-shrink: 0;
  margin: 0;
  padding: 0 20px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 20px 20px;
  overflow: hidden;
  gap: 12px;
}

.chat-panel-chips-top {
  flex-shrink: 0;
  order: -1;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.chat-panel .chat-messages {
  flex: 1;
  min-height: 100px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 0;
  gap: 10px;
}

.chat-panel-input-row {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.chat-panel-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  min-height: 72px;
  box-sizing: border-box;
}

.chat-panel-input:focus { border-color: var(--accent); }

.chat-panel-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.chat-panel-send:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.chat-panel-send:disabled {
  background: var(--dim);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.chat-panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.chat-panel .news-panel-loading,
.chat-panel .news-panel-error {
  padding: 8px 0;
  font-size: 0.8rem;
}

.chat-panel .news-panel-error { color: var(--accent); }

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-right {
    position: static;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
  }
  .hero-venn { min-height: 140px; }
}

@media (max-width: 768px) {
  .scroll-top-fab { bottom: 64px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
  .chat-fab { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 0.85rem; }
  .chat-panel { max-width: 100%; }
  .chat-panel.chat-window { max-height: 90vh; min-height: 320px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-prompt-input { min-width: 0; }
  .hero-right { min-width: 0; }
  .blogs-wrap { padding: 48px 0 56px; }
  .blogs-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .blog-card { padding: 20px; }
}

.section-top3 .hero-top3-label { display: none; }
.section-top3 .hero-top3-list { display: flex; flex-direction: column; gap: 0; }
.section-top3 .hero-chart-box { margin-top: 20px; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes newsItemIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding: 80px 24px 48px; }
  .section { padding: 40px 24px; }
  .kpi-strip { flex-direction: column; padding: 16px; gap: 12px; }
  .kpi-divider { width: 100%; height: 1px; min-width: 100%; }
  .kpi-card { margin: 0; }
  .charts-grid { grid-template-columns: 1fr; }
  .podium-wrap { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; padding: 20px 24px; }
}

/* ========================================
   HERO SPLIT LAYOUT
   (two columns come from .hero-inner.hero-grid, not .hero,
    so the right column shows hero-right content)
   ======================================== */

.hero:has(.hero-left) {
  min-height: calc(100vh - 52px - 28px);
  border-bottom: 1px solid var(--border);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 64px;
  border-right: 1px solid var(--border);
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: radial-gradient(ellipse at 30% 100%, rgba(229, 72, 77, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* TOP 3 IN HERO */
.hero-top3 {
  flex: 1;
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero-top3-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-top3-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* REAL TOP 3 ITEMS */
.top3-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.top3-item:last-child { border-bottom: none; }
.top3-item:nth-child(1) { animation-delay: 0.1s; }
.top3-item:nth-child(2) { animation-delay: 0.2s; }
.top3-item:nth-child(3) { animation-delay: 0.3s; }

.top3-medal { font-size: 22px; }

.top3-info {}
.top3-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.top3-sector {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.top3-date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.top3-get-details {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.top3-get-details:hover {
  color: var(--accent-hover);
}

.top3-count {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  text-align: right;
}
.top3-count.c1 { color: var(--gold); }
.top3-count.c2 { color: var(--silver); }
.top3-count.c3 { color: var(--bronze); }

/* SKELETON */
.top3-skeleton {
  display: grid;
  grid-template-columns: 32px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.4;
}
.top3-skeleton:last-child { border-bottom: none; }

.sk-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.sk-body { display: flex; flex-direction: column; gap: 8px; }

.sk-bar {
  height: 10px;
  background: var(--dim);
  border-radius: 2px;
  animation: shimmer 1.5s ease-in-out infinite;
}
.sk-bar.short { height: 7px; }

.sk-num {
  height: 24px;
  width: 50px;
  background: var(--dim);
  border-radius: 2px;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* MINI CHART IN HERO */
.hero-chart-box {
  flex: 1;
  padding: 32px 40px 40px;
  position: relative;
  z-index: 1;
}

.hero-chart-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-chart-wrap {
  position: relative;
  height: 180px;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.placeholder-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  width: 100%;
  justify-content: center;
}

.ph-bar {
  width: 28px;
  background: var(--dim);
  border-radius: 2px;
  animation: shimmer 1.5s ease-in-out infinite;
}
.ph-bar:nth-child(2) { animation-delay: 0.2s; }
.ph-bar:nth-child(3) { animation-delay: 0.4s; }
.ph-bar:nth-child(4) { animation-delay: 0.6s; }
.ph-bar:nth-child(5) { animation-delay: 0.8s; }
.ph-bar:nth-child(6) { animation-delay: 1s; }

.placeholder-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ticker-wrap { height: 28px; }
  .ticker { font-size: 10px; gap: 12px; }
  .hero-inner.hero-grid { padding: 0 16px; }
  .hero-grid { gap: 24px; }
  .hammer-wrap { width: 56px; height: 78px; }
  .hero-right { min-height: 0; }
  .hero-top3 { padding: 32px 24px 24px; }
  .hero-chart-box { padding: 24px 24px 32px; }
}
