/* ==============================
   FRAUDSCOPE — FORENSIC DARK THEME
   ============================== */

:root {
  --bg: #050a14;
  --surface: #0b1322;
  --surface2: #101c30;
  --surface3: #152034;
  --border: #1e2f4a;
  --border2: #243755;
  --accent: #4de8b4;
  --accent-dim: rgba(77, 232, 180, 0.12);
  --accent2: #f7b731;
  --accent2-dim: rgba(247, 183, 49, 0.12);
  --danger: #ff4757;
  --danger-dim: rgba(255, 71, 87, 0.12);
  --warn: #ffa502;
  --warn-dim: rgba(255, 165, 2, 0.12);
  --ok: #2ed573;
  --ok-dim: rgba(46, 213, 115, 0.12);
  --text: #c8d8f0;
  --text-bright: #e8f0ff;
  --text-muted: #5a7098;
  --text-faint: #3a4e6a;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Syne', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(77, 232, 180, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #060d1a 0%, #050a14 100%);
}

/* ======================== LOADING ======================== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 10, 20, 0.95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.loading-overlay.hidden { display: none; }

.scan-container {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
}
.scan-ring {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(77, 232, 180, 0.3);
  animation: spin 1.5s linear infinite;
}
.scan-ring.delay-1 {
  width: 180px; height: 180px;
  border-top-color: transparent;
  border-left-color: rgba(77, 232, 180, 0.5);
  animation-duration: 2.5s;
  animation-direction: reverse;
}
.scan-ring.delay-2 {
  width: 220px; height: 220px;
  border-bottom-color: rgba(77, 232, 180, 0.2);
  border-top-color: transparent;
  animation-duration: 3.5s;
}
.scan-icon {
  font-size: 2.5rem;
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
  position: relative; z-index: 2;
  margin-top: 8px;
}
.scan-text {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 130px;
  position: relative; z-index: 2;
}
.scan-steps {
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  position: relative; z-index: 2;
}
.scan-step {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.scan-step.done { color: var(--accent); }
.scan-step.active { color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ======================== MODAL ======================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8888;
  background: rgba(5, 10, 20, 0.88);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: min(520px, 90vw);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(77, 232, 180, 0.08);
}
.modal-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.modal-icon { font-size: 1.4rem; color: var(--accent); }
.modal-header h2 {
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--text-bright);
}
.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.field-group { margin-bottom: 20px; }
.field-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.required { color: var(--danger); }
.optional { color: var(--text-faint); }
.input-wrap { position: relative; display: flex; }
.input-wrap input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 48px 12px 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-bright);
  outline: none;
  transition: border-color 0.2s;
}
.input-wrap input:focus { border-color: var(--accent); }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--text-muted);
}
.field-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 6px;
}
.modal-note {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.note-icon { font-size: 1rem; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ======================== BUTTONS ======================== */
.btn-primary {
  background: var(--accent);
  color: #050a14;
  border: none;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.btn-primary:hover { background: #6effc7; box-shadow: 0 0 20px rgba(77,232,180,0.3); }
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--border2); color: var(--text); }
.icon-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 1rem;
  width: 36px; height: 36px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ======================== HEADER ======================== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(16px);
}
.header-left, .header-right { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  font-size: 1.6rem; color: var(--accent);
  animation: pulse 3s ease-in-out infinite;
}
.logo-text {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 2px;
}
.pill {
  background: var(--accent-dim);
  border: 1px solid rgba(77, 232, 180, 0.2);
  color: var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* ======================== SEARCH ======================== */
.search-section {
  max-width: 920px;
  margin: 64px auto 48px;
  padding: 0 24px;
  text-align: center;
}
.search-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.search-container { position: relative; margin-bottom: 20px; }
.search-box {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 6px 8px 6px 20px;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 232, 180, 0.1), 0 8px 32px rgba(0,0,0,0.3);
}
.search-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-bright);
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-faint); }
.search-btn {
  background: var(--accent);
  color: #050a14;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: #6effc7; box-shadow: 0 0 20px rgba(77,232,180,0.4); }
.btn-arrow { transition: transform 0.2s; }
.search-btn:hover .btn-arrow { transform: translateX(3px); }

/* Autocomplete */
.autocomplete-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  max-height: 280px;
  overflow-y: auto;
}
.autocomplete-dropdown:empty { display: none; }
.ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.selected { background: var(--surface2); }
.ac-symbol {
  font-weight: 600; color: var(--accent);
  font-size: 0.88rem; min-width: 110px;
}
.ac-name { font-size: 0.82rem; color: var(--text-muted); }
.ac-exchange {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-faint);
  background: var(--surface3);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Quick tickers */
.quick-tickers {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.quick-label { font-size: 0.75rem; color: var(--text-faint); }
.quick-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  text-align: left;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.info-icon { font-size: 1.5rem; margin-bottom: 10px; }
.info-title { font-size: 0.82rem; font-weight: 600; color: var(--text-bright); margin-bottom: 6px; }
.info-desc { font-size: 0.74rem; color: var(--text-muted); line-height: 1.6; }

/* ======================== RESULTS ======================== */
.results-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
  animation: slideUp 0.5s ease;
  overflow-x: clip;
}
.results-section.hidden { display: none; }

@keyframes slideUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* Company Banner */
.company-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.company-ticker {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.company-name { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.company-meta { font-size: 0.75rem; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }
.dot { color: var(--text-faint); }

.risk-badge-large {
  text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 14px 28px;
  min-width: 140px;
}
.risk-label { font-size: 0.65rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 6px; }
.risk-level { font-family: var(--sans); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.05em; }
.risk-HIGH .risk-level { color: var(--danger); }
.risk-MEDIUM .risk-level { color: var(--warn); }
.risk-LOW .risk-level { color: var(--ok); }
.risk-HIGH { border-color: rgba(255, 71, 87, 0.3); background: rgba(255, 71, 87, 0.06); }
.risk-MEDIUM { border-color: rgba(255, 165, 2, 0.3); background: rgba(255, 165, 2, 0.06); }
.risk-LOW { border-color: rgba(46, 213, 115, 0.3); background: rgba(46, 213, 115, 0.06); }

/* Score Grid */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.score-card:hover { border-color: var(--border2); }
.score-card-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.score-card-icon { font-size: 1rem; }
.score-card-title { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; flex: 1; }
.tooltip-btn {
  width: 16px; height: 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.6rem;
  color: var(--text-faint);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tooltip-btn:hover { border-color: var(--accent); color: var(--accent); }
.score-value {
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.score-threshold { font-size: 0.68rem; color: var(--text-faint); margin-bottom: 8px; }
.score-verdict {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.verdict-danger { color: var(--danger); }
.verdict-warn { color: var(--warn); }
.verdict-ok { color: var(--ok); }
.score-bar-wrap {
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1s ease;
}
.bar-danger { background: var(--danger); }
.bar-warn { background: var(--warn); }
.bar-ok { background: var(--ok); }

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chart-card.wide { grid-column: 1 / -1; }
.chart-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.chart-area {
  position: relative;
  width: 100%;
  height: 260px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
}
.chart-card.wide .chart-area {
  height: 300px;
}
.chart-area canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* AI Section */
.ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .ai-section { grid-template-columns: 1fr; } }

.ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.ai-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px;
}
.ai-title-block { display: flex; gap: 12px; align-items: flex-start; }
.ai-logo { font-size: 1.4rem; margin-top: 2px; }
.ai-title { font-size: 0.9rem; font-weight: 600; color: var(--text-bright); margin-bottom: 3px; }
.ai-subtitle { font-size: 0.7rem; color: var(--text-faint); }
.hf-badge {
  background: #ffd21e1a;
  border: 1px solid rgba(255, 210, 30, 0.3);
  color: #ffd21e;
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* FinBERT results */
.finbert-results { display: flex; flex-direction: column; gap: 10px; }
.finbert-loading { font-size: 0.8rem; color: var(--text-faint); font-style: italic; }
.finbert-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.finbert-text { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.finbert-bars { display: flex; gap: 8px; align-items: center; }
.finbert-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; min-width: 52px; }
.finbert-label.pos { color: var(--ok); }
.finbert-label.neg { color: var(--danger); }
.finbert-label.neu { color: var(--text-muted); }
.finbert-bar-bg { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.finbert-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.finbert-bar-fill.pos { background: var(--ok); }
.finbert-bar-fill.neg { background: var(--danger); }
.finbert-bar-fill.neu { background: var(--text-faint); }
.finbert-pct { font-size: 0.68rem; color: var(--text-muted); min-width: 36px; text-align: right; }
.finbert-sentiment {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 6px;
}
.finbert-sentiment.pos { color: var(--ok); }
.finbert-sentiment.neg { color: var(--danger); }
.finbert-sentiment.neu { color: var(--text-muted); }

.dataset-note {
  margin-top: 14px;
  font-size: 0.68rem;
  color: var(--text-faint);
}
.dataset-note a { color: var(--text-muted); text-decoration: underline; }
.dataset-note a:hover { color: var(--accent); }

/* Risk Summary */
.risk-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.risk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 8px;
  border-left: 3px solid transparent;
}
.risk-item.risk-high { border-left-color: var(--danger); }
.risk-item.risk-medium { border-left-color: var(--warn); }
.risk-item.risk-low { border-left-color: var(--ok); }
.ri-icon { font-size: 1rem; }
.ri-name { font-size: 0.78rem; color: var(--text-muted); flex: 1; }
.ri-status { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ri-status.high { color: var(--danger); }
.ri-status.medium { color: var(--warn); }
.ri-status.low { color: var(--ok); }

.final-verdict {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 16px;
}
.fv-title { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.fv-text { font-size: 0.82rem; color: var(--text); line-height: 1.7; }

/* Data Table */
.data-table-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.section-title { font-size: 0.8rem; color: var(--text-muted); }
.toggle-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; }
.table-wrap.hidden { display: none; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.data-table th {
  padding: 10px 14px;
  background: var(--surface3);
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th:first-child { text-align: left; }
.data-table td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table td:first-child { text-align: left; color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

/* Disclaimer */
.disclaimer {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

/* Tooltip */
.tooltip-popup {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--text);
  max-width: 240px;
  line-height: 1.6;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.tooltip-popup.visible { opacity: 1; }

/* ======================== APP LAYOUT ======================== */
.app { min-height: 100vh; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-card.wide { grid-column: 1 / -1; }
  .chart-card.wide .chart-area { height: 280px; }
}
@media (max-width: 768px) {
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: auto; }
  .chart-area, .chart-card.wide .chart-area { height: 240px; }
}
@media (max-width: 640px) {
  .header { padding: 14px 16px; }
  .search-section { margin: 36px auto 32px; padding: 0 16px; }
  .results-section { padding: 0 16px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .company-banner { flex-direction: column; }
  .chart-area, .chart-card.wide .chart-area { height: 220px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
