/* =========================================
   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: #FFD700;
  --yellow: #F0B429;
  --yellow-bright: #FFD700;
  --red-glow: rgba(229, 72, 77, 0.4);
  --yellow-glow: rgba(240, 180, 41, 0.3);
  --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;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Spacer: reserves space so content is not hidden under fixed topbar + ticker */
.header-spacer {
  height: calc(92px + env(safe-area-inset-top, 0px));
  min-height: calc(92px + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
}

/* Anchor targets: scroll into view below fixed header */
#hero, #live-feed, #ai-agent, #heatmap, #alerts, #who-is-hiring, #personal-risk {
  scroll-margin-top: calc(92px + env(safe-area-inset-top, 0px));
}

/* 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;
  min-height: calc(56px + env(safe-area-inset-top, 0px));
  padding: max(12px, env(safe-area-inset-top, 0)) 0 max(12px, env(safe-area-inset-top, 0)) 0;
  box-sizing: border-box;
  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;
  min-height: 56px;
}

.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-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 16px;
}

.topbar-nav-link {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

@media (max-width: 768px) {
  .topbar-nav { display: none; }
}

.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; }

/* Workflow banner — automated nudge (hides after fetch or dismiss) */
.workflow-banner {
  position: relative;
  z-index: 98;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 44px 8px 16px;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.08) 0%, rgba(229, 72, 77, 0.06) 100%);
  border-bottom: 1px solid rgba(240, 180, 41, 0.15);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.workflow-banner-text { color: #FFD700; }
.workflow-banner-arrow { color: var(--accent); font-weight: 600; }
.workflow-banner-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.workflow-banner-dismiss:hover { color: var(--text); background: rgba(255,255,255,0.08); }

/* Engagement: strips and chips (left, center, bottom) */
.engagement-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.engagement-strip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.engagement-chip {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.engagement-chip:hover {
  background: rgba(229, 72, 77, 0.18);
  border-color: var(--accent);
}
.engagement-cta-wrap { margin-top: 20px; text-align: center; }
.engagement-cta {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.engagement-cta:hover {
  background: var(--accent);
  color: #fff;
}
.engagement-cta-secondary {
  color: #22c55e;
  border-color: #22c55e;
}
.engagement-cta-secondary:hover { background: #22c55e; color: #fff; }
.hero-three-cards-cta { margin-top: 16px; }
.venn-15-cta { margin-top: 16px; }

.hero-ask-ai-try {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  line-height: 1.6;
}
.link-btn-inline {
  font-size: inherit;
  padding: 0 4px;
  min-height: auto;
  display: inline;
  vertical-align: baseline;
}
.link-btn-inline:hover { text-decoration: underline; }

.feed-card-ask { margin-top: 10px; }
.feed-card-ask-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.feed-card-ask-btn:hover {
  background: var(--accent);
  color: #fff;
}

.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); }
}

/* LIVE TICKER BAR — CNBC / Bloomberg style */
.ticker-wrap {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  height: 36px;
  background: linear-gradient(90deg, #0a0a0d 0%, #111115 50%, #0a0a0d 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  border-top: 1px solid rgba(229, 72, 77, 0.1);
  overflow: hidden;
  z-index: 99;
  display: flex;
  align-items: center;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.08);
  border-right: 1px solid rgba(255, 215, 0, 0.2);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-label .live-dot-ticker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e5484d;
  animation: pulse-dot 1.2s infinite;
  box-shadow: 0 0 6px rgba(229, 72, 77, 0.6);
}

.ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerScroll var(--ticker-speed, 40s) linear infinite;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 36px;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}

.ticker-item:hover { background: rgba(255,255,255,0.04); }

.ticker-company {
  font-weight: 600;
  color: var(--text);
}

.ticker-value {
  font-weight: 700;
}

.ticker-value.ticker-down {
  color: #e5484d;
}

.ticker-value.ticker-down::before {
  content: '▼';
  font-size: 0.6em;
  margin-right: 2px;
}

.ticker-value.ticker-up {
  color: #22c55e;
}

.ticker-value.ticker-up::before {
  content: '▲';
  font-size: 0.6em;
  margin-right: 2px;
}

.ticker-dot {
  color: rgba(255, 215, 0, 0.3);
  font-size: 4px;
}

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

/* Hero section wrap: full-width hero (sidebars moved to bottom) */
.hero-section-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr minmax(260px, 300px);
  gap: 0;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  min-height: 0;
}

.hero-section-wrap.hero-full-width {
  grid-template-columns: 1fr;
}

/* Sidebars section: news (left) | hiring (right) — at bottom */
.sidebars-section {
  width: 100%;
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
}

.sidebars-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(260px, 300px);
  gap: 0;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  justify-content: center;
}

.sidebars-wrap .tech-news-sidebar {
  border-right: 1px solid var(--border);
  border-left: none;
}

.sidebars-wrap .who-hiring-sidebar {
  border-left: none;
}

.tech-news-sidebar {
  position: relative;
  z-index: 1;
  padding: 24px 16px 24px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tech-news-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  max-height: min(85vh, 600px);
  min-width: 0;
  overflow: visible;
}

.tech-news-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  flex-shrink: 0;
}

.tech-news-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.tech-news-list-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px 0 0;
  scroll-behavior: smooth;
}

.tech-news-list-wrap.auto-scroll {
  animation: newsAutoScroll 30s linear infinite;
}

@keyframes newsAutoScroll {
  0%, 10% { scroll-behavior: auto; }
  15% { scroll-behavior: smooth; }
}

.tech-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.35;
  border-left: 3px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  animation: newsSlideIn 0.4s ease forwards;
}

@keyframes newsSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.tech-news-item a {
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: color 0.15s;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tech-news-item a:hover {
  color: var(--accent);
}

.tech-news-item.news-layoff { border-left-color: #e5484d; }
.tech-news-item.news-hiring { border-left-color: #22c55e; }
.tech-news-item.news-warning { border-left-color: #FFD700; }

.tech-news-item .tech-news-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tech-news-item .tech-news-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.tech-news-item.tech-news-loading {
  color: var(--text-muted);
  border-bottom: none;
  border-left-color: transparent;
}

.tech-news-item.tech-news-error {
  color: var(--accent);
  border-left-color: transparent;
}

/* Who's hiring right sidebar */
.who-hiring-sidebar {
  position: relative;
  z-index: 1;
  padding: 24px 24px 24px 16px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.who-hiring-sidebar-card {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, var(--surface) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-height: min(85vh, 600px);
}

.who-hiring-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.who-hiring-sidebar-sub {
  font-size: 0.72rem;
  color: #22c55e;
  margin: 0 0 12px 0;
}

.who-hiring-sidebar-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.who-hiring-sidebar-loading,
.who-hiring-sidebar-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px 0;
}

.who-hiring-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.who-hiring-sidebar-item:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.who-hiring-sidebar-item-company {
  font-weight: 600;
  font-size: 0.88rem;
}

.who-hiring-sidebar-item-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.who-hiring-sidebar-item-source {
  font-size: 0.68rem;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.who-hiring-sidebar-link {
  margin-top: 12px;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
  text-decoration: none;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}

.who-hiring-sidebar-link:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.tech-news-refresh {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.tech-news-refresh:hover {
  background: rgba(229, 72, 77, 0.08);
  border-color: var(--accent);
}

/* Personal Layoff Risk Score — 10 roles, bar % and AI risk */
.personal-risk-section {
  position: relative;
  z-index: 1;
  padding: 32px 24px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.personal-risk-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px 0;
}

.personal-risk-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  max-width: 640px;
}

.personal-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.personal-risk-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.personal-risk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.personal-risk-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.personal-risk-cat {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.personal-risk-bar-wrap {
  position: relative;
  height: 20px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.personal-risk-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(229, 72, 77, 0.85) 100%);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.personal-risk-pct {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 1;
}

.personal-risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.78rem;
}

.personal-risk-ai {
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.personal-risk-ai-high { background: rgba(229, 72, 77, 0.2); color: var(--accent); }
.personal-risk-ai-medium { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.personal-risk-ai-low { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.personal-risk-note {
  color: var(--text-muted);
  line-height: 1.35;
}

/* Who is hiring banner — below tech news card; click scrolls to #who-is-hiring */
.who-is-hiring-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.who-is-hiring-banner:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
}

.who-is-hiring-banner-icon { font-size: 1.1rem; }
.who-is-hiring-banner-text { flex: 1; }
.who-is-hiring-banner-arrow { font-size: 0.85rem; opacity: 0.8; }

/* Insider signals & early warnings — left sidebar, below Who is hiring */
.insider-signals-card {
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.08);
  min-width: 0;
}

.insider-signals-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.insider-signals-icon { font-size: 1rem; }
.insider-signals-alert {
  font-size: 1rem;
  animation: insiderAlertPulse 1.5s ease-in-out infinite;
}

@keyframes insiderAlertPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

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

.insider-signals-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.insider-signals-list-wrap {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}

.insider-signals-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insider-signals-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.insider-signals-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

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

.insider-signals-item-title {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.insider-signals-item-snippet {
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}

.insider-signals-item-link {
  font-size: 0.75rem;
  color: #f97316;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.insider-signals-item-link:hover { text-decoration: underline; }

.insider-signals-item-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.insider-signals-item-icon {
  font-size: 1rem;
  margin-right: 6px;
  flex-shrink: 0;
}

.insider-signals-item-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.insider-signals-unverified {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  background: rgba(240, 180, 41, 0.2);
  color: #F0B429;
  border-radius: 4px;
  margin-left: 6px;
  flex-shrink: 0;
}

.insider-signals-refresh {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: #f97316;
  background: transparent;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.insider-signals-refresh:hover {
  background: rgba(249, 115, 22, 0.08);
  border-color: #f97316;
}

/* Who is hiring section — job cards from web (Naukri / LinkedIn style) */
.who-is-hiring-section {
  position: relative;
  z-index: 1;
  padding: 40px 24px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.who-is-hiring-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px 0;
}

.who-is-hiring-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  max-width: 640px;
}

.who-is-hiring-toolbar {
  margin-bottom: 16px;
}

.who-is-hiring-refresh {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: #22c55e;
  background: transparent;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.who-is-hiring-refresh:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.who-is-hiring-refresh:disabled { opacity: 0.6; cursor: not-allowed; }

.who-is-hiring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.who-is-hiring-loading,
.who-is-hiring-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.who-is-hiring-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.who-is-hiring-card:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.who-is-hiring-card-company {
  font-weight: 600;
  font-size: 0.95rem;
}

.who-is-hiring-card-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.who-is-hiring-card-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.who-is-hiring-card-source {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22c55e;
  margin-top: 4px;
}

/* Top 15 companies · by sector (Venn) — below Who is hiring, visible after fetch */
.venn-15-section {
  position: relative;
  z-index: 1;
  padding: 40px 24px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.venn-15-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px 0;
}

.venn-15-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.venn-15-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}

.venn-15-svg-wrap {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.venn-15-svg {
  width: 100%;
  height: auto;
  display: block;
}

.venn-15-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venn-15-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.venn-15-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.venn-15-name { font-weight: 500; color: var(--text); }
.venn-15-sector { font-size: 0.8rem; color: var(--text-muted); }
.venn-15-layoffs { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 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-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -8px 0 8px;
}

.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-counters {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.42s forwards;
}

.hero-counter { display: flex; flex-direction: column; gap: 2px; }
.hero-counter-val { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.hero-counter-label { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* LIVE hero counter — big animated rolling number */
.hero-live-counter {
  margin: 24px 0 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(229, 72, 77, 0.08) 0%, rgba(240, 180, 41, 0.06) 100%);
  border: 1px solid rgba(229, 72, 77, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-live-counter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #e5484d, #FFD700, #e5484d);
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(229, 72, 77, 0.15);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e5484d;
  margin-bottom: 12px;
}

.hero-live-badge .live-dot-hero {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e5484d;
  animation: pulse-dot-hero 1s infinite;
  box-shadow: 0 0 8px rgba(229, 72, 77, 0.6);
}

@keyframes pulse-dot-hero {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(229, 72, 77, 0.6); }
  50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 16px rgba(229, 72, 77, 0.8); }
}

.hero-live-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-live-number .counter-value {
  background: linear-gradient(135deg, #FFD700 0%, #e5484d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-live-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-live-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-live-date {
  color: var(--text-secondary);
}

.hero-live-refresh-note {
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-live-refresh-note::before {
  content: '⏱';
  font-size: 0.85em;
}

/* Countdown timer — next refresh */
.countdown-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(240, 180, 41, 0.06);
  border: 1px solid rgba(240, 180, 41, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.countdown-label { color: var(--text-secondary); }
.countdown-value { color: #FFD700; font-weight: 600; letter-spacing: 0.08em; }
.countdown-dot { width: 4px; height: 4px; border-radius: 50%; background: #FFD700; animation: pulse-dot 2s infinite; }

.hero-ask-ai-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.25);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: fadeUp 0.5s ease 0.48s forwards;
}

.hero-ask-ai-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.hero-ask-ai-sub { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.4; }
.hero-ask-ai-input {
  width: 100%; max-width: 280px; padding: 10px 14px; margin-bottom: 10px; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); display: block;
}
.fetch-btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.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;
}

.risk-banner {
  padding: 14px 24px; margin-bottom: 0; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.risk-banner-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.risk-banner-value { font-weight: 700; font-size: 1rem; }
.risk-banner-value.risk-low { color: #22c55e; }
.risk-banner-value.risk-medium { color: #f59e0b; }
.risk-banner-value.risk-high { color: var(--accent); }
.risk-banner-desc { font-size: 0.85rem; color: var(--text-secondary); margin-left: 4px; }

.section-intro { font-size: 0.9rem; color: var(--text-secondary); margin: -8px 0 20px; max-width: 560px; }

.feed-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
.feed-empty { grid-column: 1 / -1; text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.9rem; }
.feed-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feed-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.feed-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.feed-card-company { font-weight: 600; font-size: 1rem; color: var(--text); }
.feed-card-confidence { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 4px; }
.feed-conf-high { background: rgba(229,72,77,0.2); color: #ff6b6b; }
.feed-conf-medium { background: rgba(245,158,11,0.2); color: #fbbf24; }
.feed-conf-low { background: rgba(34,197,94,0.15); color: #4ade80; }
.feed-card-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.feed-card-layoffs { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 8px; }
.feed-card-reason { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; margin: 0 0 10px; }
.feed-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.feed-tag { font-size: 0.7rem; padding: 2px 8px; background: rgba(255,255,255,0.06); border-radius: 4px; color: var(--text-muted); }
.feed-card-source { margin-top: 8px; }
.feed-source-link { font-size: 0.8rem; color: var(--accent); text-decoration: none; }
.feed-source-link:hover { text-decoration: underline; }

.coming-soon { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px dashed var(--border); }
.section-placeholder { opacity: 0.95; }
.section-placeholder .section-intro { margin-bottom: 16px; }

/* Alerts & Career Survival Guidance */
.alerts-career-section .section-intro { margin-bottom: 24px; }
.alerts-career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.alerts-career-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.alerts-career-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}
.alerts-career-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.4;
}
.alerts-watchlist-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.alerts-watchlist-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}
.alerts-watchlist-add {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.alerts-watchlist-add:hover {
  background: var(--accent);
  color: #fff;
}
.alerts-watchlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alerts-watchlist-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
}
.alerts-watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.alerts-watchlist-item:last-child { border-bottom: none; }
.alerts-watchlist-name { color: var(--text); }
.alerts-watchlist-remove {
  padding: 4px 10px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.alerts-watchlist-remove:hover {
  color: var(--accent);
  background: rgba(229, 72, 77, 0.1);
}
.alerts-career-cta { margin-top: 8px; }

.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-full {
  grid-column: 1 / -1;
}

.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;
}

/* India SVG Map — city layoff density */
.india-map-wrap {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.india-map-svg-wrap {
  flex: 1;
  min-width: 0;
  max-width: 500px;
  position: relative;
}

.india-map-svg-wrap svg {
  width: 100%;
  height: auto;
}

.india-map-legend {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.india-map-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}

.india-map-legend-item:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
}

.india-map-legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.india-map-legend-city { font-weight: 600; color: var(--text); flex: 1; }
.india-map-legend-count { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 0.8rem; }

.india-map-city-pulse {
  animation: cityPulse 2s ease-in-out infinite;
}

@keyframes cityPulse {
  0%, 100% { r: 6; opacity: 0.9; }
  50% { r: 10; opacity: 0.5; }
}

.india-map-tooltip {
  position: absolute;
  padding: 10px 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  white-space: nowrap;
}

.india-map-tooltip.visible { opacity: 1; }

.india-map-tooltip-city { font-weight: 700; color: #FFD700; }
.india-map-tooltip-count { color: var(--accent); font-family: var(--font-mono); }

@media (max-width: 768px) {
  .india-map-wrap { flex-direction: column; }
  .india-map-legend { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .india-map-legend-item { flex: 1; min-width: 140px; }
}

/* 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; }

.data-table tbody tr.expanded .td-expand-details {
  display: table-cell;
}

.td-expand-details {
  display: none;
  padding: 0 !important;
  vertical-align: top;
}

.table-expand-row td.td-expand-details {
  display: table-cell !important;
}

.table-data-row {
  cursor: pointer;
}

.td-expand-inner {
  padding: 12px 18px;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-elevated);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.table-pagination-info {
  font-family: var(--font-mono);
}

.table-pagination-btns {
  display: flex;
  gap: 8px;
}

.table-pagination-btn {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.table-pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.table-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

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

.td-name-link {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.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); }      /* >1000: red */
.td-layoffs.med { color: var(--accent2); }      /* 300–1000: orange */
.td-layoffs.low { color: #22c55e; }             /* <300: green */

.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 — glassmorphism podium 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: rgba(20, 20, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  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;
  position: relative;
  overflow: hidden;
}

.hero-three-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.hero-three-card.card-rank-1::before {
  background: linear-gradient(90deg, #FFD700, rgba(255, 215, 0, 0.5));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hero-three-card.card-rank-2::before {
  background: linear-gradient(90deg, #a8a8a8, rgba(168, 168, 168, 0.5));
  box-shadow: 0 0 16px rgba(168, 168, 168, 0.3);
}

.hero-three-card.card-rank-3::before {
  background: linear-gradient(90deg, #c47d3a, rgba(196, 125, 58, 0.5));
  box-shadow: 0 0 16px rgba(196, 125, 58, 0.3);
}

.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: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

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

.hero-three-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  flex-shrink: 0;
}

.hero-three-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
    margin-bottom: 4px;
}

.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-title-link {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.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-sparkline {
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 0 4px 0;
}

.hero-three-card-sparkline-bar {
  flex: 1;
  min-width: 4px;
  background: linear-gradient(to top, var(--accent), rgba(229, 72, 77, 0.4));
  border-radius: 2px 2px 0 0;
  animation: barGrow 0.8s ease-out forwards;
  transform-origin: bottom;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-three-card-since {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-three-card-since.up { color: var(--accent); }
.hero-three-card-since.down { color: #22c55e; }

.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-body {
  margin-top: 6px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.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 + animated arrow highlight */
.chat-fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 199;
  display: inline-flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.chat-fab-wrap .chat-fab {
  pointer-events: auto;
}

.chat-fab-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  font-size: 1.25rem;
  color: var(--accent);
  animation: fabArrowPulse 1.5s ease-in-out infinite;
}

@keyframes fabArrowPulse {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(-6px); }
}

.chat-fab {
  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;
  animation: fabGlow 2.5s ease-in-out infinite;
}

@keyframes fabGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(229, 72, 77, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(229, 72, 77, 0.5), 0 0 0 4px rgba(229, 72, 77, 0.15); }
}

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

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

/* Fire Agent: ChatGPT-style full-page popup (corners visible) */
.fire-agent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.fire-agent-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.fire-agent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100vw - 48px);
  max-width: 1200px;
  height: calc(100vh - 48px);
  max-height: 880px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.fire-agent-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.fire-agent-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.fire-agent-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.fire-agent-close {
  width: 40px;
  height: 40px;
  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.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.fire-agent-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.fire-agent-split {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.fire-agent-sidebar {
  flex: 0 0 240px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding: 12px;
  gap: 8px;
  background: var(--bg);
}
.fire-agent-new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.fire-agent-new-chat:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.fire-agent-plus {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}
.fire-agent-chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fire-agent-chat-card {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fire-agent-chat-card:hover {
  background: var(--surface-elevated);
  color: var(--text);
}
.fire-agent-chat-card.active {
  background: var(--accent-muted);
  color: var(--accent);
}
.fire-agent-chat-card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fire-agent-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px;
  gap: 12px;
}
.fire-agent-chips {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fire-agent-chips .engagement-chip {
  padding: 8px 14px;
  font-size: 0.85rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fire-agent-chips .engagement-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fire-agent-main .fire-agent-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 160px;
  padding: 8px 0;
}
.fire-agent-main .fire-agent-chips {
  flex-shrink: 0;
}
.fire-agent-input-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fire-agent-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;
  min-height: 64px;
  box-sizing: border-box;
}
.fire-agent-input:focus { border-color: var(--accent); }
.fire-agent-send {
  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;
}
.fire-agent-send:hover { background: var(--accent-hover); }
.fire-agent-login-cta {
  flex-shrink: 0;
  padding-top: 8px;
}
.fire-agent-login-btn {
  padding: 10px 16px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fire-agent-login-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fire-agent-modal .chat-msg { margin-bottom: 14px; }
.fire-agent-modal .news-panel-loading,
.fire-agent-modal .news-panel-error { padding: 8px 16px; font-size: 0.85rem; }
.fire-agent-modal .news-panel-error { color: var(--accent); }

.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);
  -webkit-overflow-scrolling: touch;
}

/* HIRE AGENT: full-height panel from right (top to bottom) */
.chat-panel.hire-agent-panel {
  top: 0;
  bottom: 0;
  right: 0;
  height: 100vh;
  max-width: 420px;
  border-radius: 0;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}

.chat-panel.hire-agent-panel .chat-messages {
  max-height: none;
  flex: 1;
  min-height: 200px;
}

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

.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); }

/* Auth panel */
.auth-panel {
  width: 100%;
  max-width: 400px;
  padding: 0 20px 24px;
}
.auth-panel-body { padding: 0; }
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-tab {
  padding: 8px 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-tab:hover { border-color: var(--accent); color: var(--accent); }
.auth-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-input {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.auth-input:focus { border-color: var(--accent); outline: none; }
.auth-select { cursor: pointer; }
.auth-submit {
  padding: 12px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-submit:hover { background: var(--accent-hover); }
.auth-error {
  margin-top: 12px;
  padding: 10px;
  background: rgba(229, 72, 77, 0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
}
.auth-logged-in { margin-top: 16px; }
.auth-welcome { margin-bottom: 8px; }
.auth-profile { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }
.auth-logout {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.auth-logout:hover { border-color: var(--accent); color: var(--accent); }

/* Topbar user button (logged in) */
.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.topbar-user-btn:hover { border-color: var(--accent); background: var(--accent-muted); }
.topbar-user-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

/* Your Company banner */
.your-company-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.your-company-banner.safe .your-company-icon { color: var(--success); }
.your-company-banner.alert .your-company-icon { color: var(--accent); }
.your-company-banner .your-company-icon { font-size: 1.2rem; }
.your-company-banner .your-company-text { color: var(--text-secondary); }
.your-company-banner .your-company-text strong { color: var(--text); }

/* Company Intelligence panel */
.company-intel-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  z-index: 190;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.company-intel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

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

.company-intel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.company-intel-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;
}

.company-intel-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.company-intel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.company-intel-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.company-intel-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.company-intel-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.company-intel-sector {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.company-intel-risk {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.company-intel-risk.risk-high { background: rgba(229,72,77,0.2); color: #ff6b6b; }
.company-intel-risk.risk-medium { background: rgba(245,158,11,0.2); color: #fbbf24; }
.company-intel-risk.risk-low { background: rgba(34,197,94,0.15); color: #4ade80; }

.company-intel-dl {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.company-intel-dl dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 2px;
}

.company-intel-dl dt:first-child { margin-top: 0; }

.company-intel-dl dd {
  margin: 0;
  color: var(--text);
}

.company-intel-dl dd a {
  color: var(--accent);
  text-decoration: none;
}

.company-intel-dl dd a:hover { text-decoration: underline; }

.company-intel-context {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.45;
}

.company-intel-actions .toolbar-btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .company-intel-panel { max-width: 100%; }
}

@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) {
  .hero-section-wrap { grid-template-columns: 1fr; padding: 0 12px; }
  .hero { order: 1; }
  .sidebars-section { padding: 24px 12px 48px; }
  .sidebars-wrap {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .sidebars-wrap .tech-news-sidebar,
  .sidebars-wrap .who-hiring-sidebar {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
  }
  .sidebars-wrap .tech-news-sidebar {
    padding: 16px 12px;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .sidebars-wrap .who-hiring-sidebar {
    padding: 16px 12px;
    border-top: none;
  }
  .tech-news-card { max-height: 380px; min-height: 240px; }
  .tech-news-card-title { font-size: 0.9rem; }
  .personal-risk-section { padding: 24px 16px 36px; }
  .personal-risk-title { font-size: 1.15rem; }
  .personal-risk-grid { grid-template-columns: 1fr; gap: 12px; }
  .who-is-hiring-banner { padding: 12px 14px; font-size: 0.85rem; }
  .insider-signals-card { padding: 12px; }
  .insider-signals-title { font-size: 0.82rem; }
  .insider-signals-list-wrap { max-height: 180px; }
  .who-is-hiring-section { padding: 28px 16px 40px; }
  .who-is-hiring-title { font-size: 1.15rem; }
  .who-is-hiring-grid { grid-template-columns: 1fr; }
  .venn-15-section { padding: 28px 16px 40px; }
  .venn-15-wrap { grid-template-columns: 1fr; }
  .venn-15-item { grid-template-columns: 24px 1fr auto; }
  .venn-15-sector { display: none; }
  .scroll-top-fab { bottom: max(64px, calc(44px + env(safe-area-inset-bottom))); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px; font-size: 1rem; }
  .chat-fab-wrap { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); z-index: 9999; }
  .chat-fab { padding: 12px 18px; font-size: 0.85rem; min-height: 44px; }
  .chat-fab-arrow { width: 28px; height: 28px; font-size: 1.1rem; }
  .chat-panel { max-width: 100%; z-index: 9998; }
  .chat-panel.hire-agent-panel { max-width: 100%; height: 100vh; height: 100dvh; }
  .fire-agent-modal {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: none;
  }
  .fire-agent-split { flex-direction: column; }
  .fire-agent-sidebar {
    flex: 0 0 auto;
    min-width: 0;
    max-height: 180px;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .fire-agent-new-chat { flex: 1; min-width: 120px; }
  .fire-agent-chat-list { flex-direction: row; flex-wrap: wrap; max-height: 80px; }
  .fire-agent-chat-card { flex: 0 0 auto; max-width: 140px; }
  /* Hero: less vertical, compact */
  .hero { padding: 56px 16px 32px; min-height: 0; }
  .hero:has(.hero-left) { min-height: 0; }
  .hero-inner.hero-grid { padding: 0 16px; }
  .hero-grid { gap: 20px; }
  .hero-left { padding: 0; min-height: 0; border-right: none; }
  .hero-left::before { display: none; }
  .hero-title-row { margin-bottom: 10px; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-tagline { margin: -4px 0 6px; font-size: 0.6rem; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-bottom: 0; gap: 10px; }
  .hero-prompt-input { min-width: 0; }
  .fetch-btn { min-height: 44px; padding: 12px 20px; }
  .link-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-counters { margin-top: 14px; gap: 16px; flex-wrap: wrap; }
  .hero-counter-val { font-size: 1rem; }
  .hero-counter-label { font-size: 0.6rem; }
  .hero-awards { margin-top: 16px; padding: 14px; }
  .hero-awards-label { margin-bottom: 8px; }
  .hero-awards-list { gap: 6px; }
  .hero-meta { margin-top: 10px; }
  .hero-ask-ai-box { margin-top: 16px; padding: 14px; }
  .hero-ask-ai-title { margin-bottom: 4px; }
  .hero-ask-ai-sub { margin-bottom: 10px; font-size: 0.8rem; }
  .hero-cta-secondary { margin-top: 14px; }
  .hero-right { min-width: 0; padding: 14px; }
  .hero-right-title { margin-bottom: 4px; }
  .hero-right-grid { gap: 10px; }
  .hero-right-cell { min-height: 80px; }
  .hero-right-chart-wrap.hero-right-cell { min-height: 140px; }
  /* Main / dashboard */
  .main-container { padding: 0 16px 24px; }
  .risk-banner { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .risk-banner-desc { font-size: 0.8rem; }
  .dashboard-toolbar { padding: 14px 0 16px; margin-bottom: 16px; }
  .toolbar-hint { margin-top: 8px; font-size: 0.75rem; }
  .section { padding: 24px 16px; }
  .main-container .section { padding: 24px 0; }
  .section-title { font-size: 1.2rem; margin-bottom: 8px; }
  .section-intro { margin: -4px 0 14px; font-size: 0.85rem; }
  .hero-three-cards-section { padding-top: 20px; }
  .hero-three-cards-intro { margin-bottom: 16px; }
  .hero-three-cards { gap: 14px; }
  .hero-three-card { padding: 16px; }
  .kpi-strip { margin: 0 -16px 16px; padding: 14px 16px; gap: 10px; }
  .kpi-card { padding: 4px 0; }
  .kpi-value { font-size: 1.25rem; }
  .feed-view { gap: 12px; margin-bottom: 20px; }
  .feed-card { padding: 12px; }
  .table-controls { margin-bottom: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .data-table { font-size: 0.8rem; }
  .coming-soon { padding: 16px; font-size: 0.85rem; }
  .section-placeholder .section-intro { margin-bottom: 12px; }
  .alerts-career-grid { grid-template-columns: 1fr; gap: 16px; }
  .alerts-career-card { padding: 16px; }
  .alerts-watchlist-input-wrap { flex-direction: column; }
  .alerts-career-cta { width: 100%; min-height: 44px; }
  .workflow-banner { flex-wrap: wrap; justify-content: flex-start; padding: 10px 40px 10px 12px; font-size: 0.75rem; }
  .engagement-strip { flex-direction: column; align-items: flex-start; }
  .engagement-strip .engagement-chip { width: 100%; min-height: 40px; }
  .hero-ask-ai-try { font-size: 0.75rem; }
  .engagement-cta { width: 100%; min-height: 44px; }
  .feed-card-ask-btn { min-height: 40px; }
  .blogs-wrap { padding: 32px 0 40px; }
  .blogs-grid { gap: 12px; margin-bottom: 24px; }
  .blog-card { padding: 16px; }
  .blogs-cta { margin-top: 20px; }
  .footer { padding: 16px; gap: 8px; font-size: 0.85rem; }
  .topbar-inner { padding: 0 16px; }
  .topbar-tag { display: none; }
  .topbar-right { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 12px 24px; }
  .hero-inner.hero-grid { padding: 0 12px; }
  .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-counters { gap: 12px; }
  .hero-counter-val { font-size: 0.95rem; }
  .hero-awards { padding: 12px; }
  .hero-ask-ai-box { padding: 12px; }
  .main-container { padding: 0 12px 20px; }
  .section { padding: 20px 12px; }
  .main-container .section { padding: 20px 0; }
  .risk-banner { padding: 8px 12px; }
  .dashboard-toolbar { padding: 12px 0 14px; }
  .toolbar-actions { gap: 8px; }
  .toolbar-btn { padding: 10px 12px; font-size: 0.8rem; }
  .hero-three-cards { gap: 10px; }
  .hero-three-card { padding: 12px; }
  .hero-three-card-title { font-size: 1rem; }
  .feed-view { gap: 10px; }
  .feed-card { padding: 10px; }
  .company-intel-panel .company-intel-body { padding: 16px; }
  .company-intel-header { padding: 16px; }
}

.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); }
}

/* Pulse/glow on data update */
@keyframes cardGlow {
  0% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); border-color: var(--border); }
  30% { box-shadow: 0 0 20px 4px rgba(240, 180, 41, 0.15); border-color: rgba(240, 180, 41, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); border-color: var(--border); }
}

.card-update-glow {
  animation: cardGlow 1.5s ease-out;
}

/* Fade-in for new data */
@keyframes dataFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.data-fade-in {
  animation: dataFadeIn 0.5s ease forwards;
}

/* Status indicator in topbar */
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #22c55e;
}

.topbar-status.loading {
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.2);
  color: #F0B429;
}

.topbar-countdown {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #FFD700;
  letter-spacing: 0.04em;
}

/* 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; }
}
