:root {
  --bg: #07111d;
  --card: #0d1a2a;
  --card-2: #112236;
  --line: rgba(255,255,255,0.08);
  --text: #ecf3ff;
  --muted: #9eb0c7;
  --green: #20d27c;
  --red: #ff6579;
  --amber: #ffd166;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: linear-gradient(180deg, #07111d 0%, #0a1524 100%); color: var(--text); font-family: Inter, Arial, sans-serif; }
body { min-height: 100vh; }
.app-shell { width: min(1200px, calc(100% - 20px)); margin: 0 auto; padding: 14px 0 24px; }
.hero-card, .table-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,0.28); }
.hero-card { padding: 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: 0.4px; }
.tagline { color: var(--muted); font-size: 13px; margin-top: 3px; }
.pulse-wrap { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(32,210,124,0.12); color: #c9fbe0; font-size: 13px; white-space: nowrap; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(32,210,124,0.12); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.metric-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 110px; }
.metric-label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.metric-main { font-size: 30px; font-weight: 800; line-height: 1.1; }
.metric-sub { display: flex; gap: 10px; align-items: center; font-size: 24px; font-weight: 700; margin-top: 8px; flex-wrap: wrap; }
.metric-value { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; }
.metric-value.small { font-size: 18px; line-height: 1.35; }
.metric-small { color: var(--muted); font-size: 12px; margin-top: 8px; }
.search-bar-wrap { margin: 14px 0; }
.search-input { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 16px; padding: 14px 16px; font-size: 15px; outline: none; }
.search-input::placeholder { color: #7f93ae; }
.table-card { overflow: hidden; }
.table-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px 16px 0; }
.table-title-row h1 { margin: 0; font-size: 18px; }
.table-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; padding: 14px 0 8px; }
.market-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.market-table th, .market-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 14px; }
.market-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0; background: #0d1a2a; z-index: 1; }
.market-table tr:hover td { background: rgba(255,255,255,0.02); }
.symbol-cell { font-weight: 700; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--amber); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: auto; }
}
@media (max-width: 600px) {
  .app-shell { width: min(100% - 12px, 100%); padding-top: 8px; }
  .hero-card { padding: 14px; border-radius: 18px; }
  .table-card { border-radius: 18px; }
  .brand { font-size: 22px; }
  .metric-main { font-size: 26px; }
  .metric-sub { font-size: 21px; }
  .metric-value { font-size: 24px; }
  .market-table th, .market-table td { padding: 12px 14px; font-size: 13px; }
}
