/* ========================================================
   ORB Pro Dashboard — Enhanced CSS
   ======================================================== */

:root {
  --bg-0: #06080f;
  --bg-1: #0c101a;
  --bg-2: #121826;
  --bg-3: #1a2235;
  --bg-4: #222c42;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8ecf4;
  --muted: #7a8499;
  --bull: #00c853;
  --bull-dim: rgba(0,200,83,0.12);
  --bull-glow: rgba(0,200,83,0.25);
  --bear: #ff5252;
  --bear-dim: rgba(255,82,82,0.12);
  --bear-glow: rgba(255,82,82,0.25);
  --accent: #00bcd4;
  --accent-dim: rgba(0,188,212,0.12);
  --sync: #e040fb;
  --sync-dim: rgba(224,64,251,0.15);
  --warn: #ffb300;
  --warn-dim: rgba(255,179,0,0.12);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  height: 100vh;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}

.brand { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #4dd0e1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub { font-size: 0.65rem; font-weight: 700; color: var(--muted); letter-spacing: 0.2em; }
.badge.ws {
  font-size: 0.6rem; padding: 2px 6px; border-radius: 4px;
  background: var(--bg-3); color: var(--muted); font-weight: 600;
  transition: all var(--transition);
}
.badge.ws.live {
  background: var(--bull-dim); color: var(--bull);
  box-shadow: 0 0 8px var(--bull-glow);
  animation: pulse-badge 2s ease-in-out infinite;
}

.page-nav {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.nav-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 4px var(--bull-glow); }
  50% { box-shadow: 0 0 12px var(--bull-glow); }
}

/* Ticker Strip */
.ticker-strip {
  flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-strip::-webkit-scrollbar { display: none; }

.tape-item {
  flex-shrink: 0; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 0.7rem; white-space: nowrap;
  transition: all var(--transition);
}
.tape-item:hover { border-color: var(--border-hover); background: var(--bg-4); }
.tape-item .name { color: var(--muted); margin-right: 6px; }
.tape-item .pct { font-family: var(--mono); font-weight: 600; }
.tape-item .pct.up { color: var(--bull); }
.tape-item .pct.down { color: var(--bear); }

.topbar-stats { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.stat .lbl { display: block; font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat .val { font-family: var(--mono); font-size: 1.1rem; font-weight: 600; }
.stat.sync .val { color: var(--sync); }
.mono { font-family: var(--mono); }

.conn {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bear); box-shadow: 0 0 8px var(--bear);
  transition: all 0.3s;
}
.conn.on {
  background: var(--bull); box-shadow: 0 0 8px var(--bull);
  animation: pulse-conn 2s ease-in-out infinite;
}
@keyframes pulse-conn {
  0%, 100% { box-shadow: 0 0 4px var(--bull-glow); }
  50% { box-shadow: 0 0 14px var(--bull-glow); }
}

/* ═══════════════════════════════════════
   SECTOR PANEL — COLLAPSIBLE + HEATMAP
   ═══════════════════════════════════════ */
.sector-panel {
  padding: 12px 20px 0;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sector-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.sector-panel-head:hover .collapse-btn { color: var(--text); }

.sector-panel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sector-panel-head h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.sector-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.sector-count.full { color: var(--bull); }

.collapse-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  border-radius: 4px;
}
.collapse-btn:hover { background: var(--bg-3); }
.chevron-icon {
  width: 18px; height: 18px;
  transition: transform 0.3s ease;
}

.sector-panel.collapsed .chevron-icon {
  transform: rotate(-90deg);
}
.sector-panel.collapsed .sector-panel-head {
  margin-bottom: 0;
}

.sector-grid-wrap {
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  opacity: 1;
}
.sector-panel.collapsed .sector-grid-wrap {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding-bottom: 12px;
}

/* Sector Card — Heatmap Colors */
.sector-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sector-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.sector-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sector-card.active-sector {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(0,188,212,0.15);
}
.sector-card.flash {
  animation: sector-flash 0.4s ease;
}
@keyframes sector-flash {
  0% { background: var(--bg-3); border-color: var(--accent); }
  100% { background: var(--bg-2); border-color: var(--border); }
}

/* Heatmap intensity levels */
.sector-card.heat-bull-1 { background: rgba(0,200,83,0.04); border-color: rgba(0,200,83,0.1); }
.sector-card.heat-bull-2 { background: rgba(0,200,83,0.08); border-color: rgba(0,200,83,0.15); }
.sector-card.heat-bull-3 { background: rgba(0,200,83,0.14); border-color: rgba(0,200,83,0.22); }
.sector-card.heat-bull-4 { background: rgba(0,200,83,0.20); border-color: rgba(0,200,83,0.30); }

.sector-card.heat-bear-1 { background: rgba(255,82,82,0.04); border-color: rgba(255,82,82,0.1); }
.sector-card.heat-bear-2 { background: rgba(255,82,82,0.08); border-color: rgba(255,82,82,0.15); }
.sector-card.heat-bear-3 { background: rgba(255,82,82,0.14); border-color: rgba(255,82,82,0.22); }
.sector-card.heat-bear-4 { background: rgba(255,82,82,0.20); border-color: rgba(255,82,82,0.30); }

.sector-card .s-name {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sector-card .s-ltp {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.sector-card .s-pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.sector-card .s-pct.up { color: var(--bull); }
.sector-card .s-pct.down { color: var(--bear); }
.sector-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════
   TOOLBAR — STICKY
   ═══════════════════════════════════════ */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; gap: 12px; flex-wrap: wrap;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 0.75rem;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 0 12px var(--accent-dim); }
.chip.bull.active { background: var(--bull); border-color: var(--bull); color: #000; box-shadow: 0 0 12px var(--bull-dim); }
.chip.bear.active { background: var(--bear); border-color: var(--bear); color: #fff; box-shadow: 0 0 12px var(--bear-dim); }
.chip.sync-only.active { background: var(--sync); border-color: var(--sync); color: #fff; box-shadow: 0 0 12px var(--sync-dim); }

.toolbar-right { display: flex; gap: 8px; align-items: center; }

.active-sector-filter {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 12px; border-radius: 20px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  animation: fadeIn 0.2s ease;
}
.clear-sector {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 0.8rem; padding: 0 2px; line-height: 1;
  opacity: 0.7; transition: opacity var(--transition);
}
.clear-sector:hover { opacity: 1; }

#search {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; color: var(--text); font-size: 0.8rem; width: 180px;
  outline: none; transition: all var(--transition);
}
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.btn {
  padding: 8px 16px; border-radius: 8px; border: none; font-weight: 600;
  cursor: pointer; font-size: 0.8rem; transition: all var(--transition);
}
.btn.ghost { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--bg-4); border-color: var(--border-hover); }

.shortcut-hint {
  font-size: 0.85rem; padding: 6px 10px; min-width: auto;
}

/* ═══════════════════════════════════════
   SUMMARY STATS CARDS
   ═══════════════════════════════════════ */
.summary-stats {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-0);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.summary-stats::-webkit-scrollbar { display: none; }

.stat-card {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-2);
}
.stat-card-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 18px; height: 18px; }
.bull-icon { background: var(--bull-dim); color: var(--bull); }
.sync-icon { background: var(--sync-dim); color: var(--sync); }
.rvol-icon { background: var(--accent-dim); color: var(--accent); }
.conv-icon { background: rgba(255, 215, 0, 0.12); color: #ffd700; }
.fail-icon { background: var(--warn-dim); color: var(--warn); }

.stat-card-body { display: flex; flex-direction: column; }
.stat-card-label {
  font-size: 0.62rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
}
.stat-card-value {
  font-family: var(--mono); font-size: 1.15rem; font-weight: 700;
}
.stat-card-sub {
  font-family: var(--mono); font-size: 0.65rem; color: var(--muted); font-weight: 500;
}

/* ═══════════════════════════════════════
   TABLE
   ═══════════════════════════════════════ */
.table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 12px 12px;
}

.orb-table {
  width: 100%; border-collapse: separate; border-spacing: 0 4px;
}
.orb-table thead th {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-0); padding: 10px 12px;
  text-align: left; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); font-weight: 600;
  cursor: pointer; user-select: none; border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  white-space: nowrap;
}
.orb-table thead th:hover { color: var(--text); }

/* Sort indicators */
.orb-table thead th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.55rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
  vertical-align: middle;
}
.orb-table thead th.sorted { color: var(--accent); }
.orb-table thead th.sorted .sort-arrow { opacity: 1; }

.orb-table tbody tr {
  background: var(--bg-1); transition: all 0.15s ease;
}
.orb-table tbody tr:hover {
  background: var(--bg-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.orb-table tbody tr.sync-row {
  box-shadow: inset 3px 0 0 var(--sync);
  background: linear-gradient(90deg, var(--sync-dim) 0%, var(--bg-1) 40%);
}
.orb-table tbody tr.sync-row:hover {
  background: linear-gradient(90deg, var(--sync-dim) 0%, var(--bg-2) 40%);
}
.orb-table td {
  padding: 10px 12px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); font-size: 0.82rem;
}
.orb-table td:first-child { border-left: 1px solid var(--border); border-radius: 8px 0 0 8px; }
.orb-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 8px 8px 0; }

/* Row animations */
@keyframes row-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.orb-table tbody tr {
  animation: row-enter 0.25s ease-out;
}

@keyframes price-tick-up {
  0% { background-color: var(--bull-dim); }
  100% { background-color: transparent; }
}
@keyframes price-tick-down {
  0% { background-color: var(--bear-dim); }
  100% { background-color: transparent; }
}
.orb-table tbody tr.tick-up { animation: price-tick-up 0.8s ease-out; }
.orb-table tbody tr.tick-down { animation: price-tick-down 0.8s ease-out; }

/* New row highlight */
@keyframes new-row-glow {
  0% { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-dim); }
  100% { box-shadow: none; background: var(--bg-1); }
}
.orb-table tbody tr.new-row {
  animation: new-row-glow 1.5s ease-out;
}

.sym { font-weight: 700; font-size: 0.9rem; }
.sym sub { font-size: 0.65rem; color: var(--muted); font-weight: 500; margin-left: 4px; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
}
.pill.bull { background: var(--bull-dim); color: var(--bull); }
.pill.bear { background: var(--bear-dim); color: var(--bear); }
.pill.fail { background: var(--warn-dim); color: var(--warn); }
.pill.none { background: var(--bg-3); color: var(--muted); }

.conv-HIGH { color: var(--bull); font-weight: 700; }
.conv-MEDIUM { color: var(--accent); font-weight: 600; }
.conv-LOW { color: var(--muted); }

.sync-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800;
  background: var(--sync-dim); color: var(--sync); border: 1px solid rgba(224,64,251,0.3);
}
.sync-badge.off { opacity: 0.25; background: transparent; border-color: var(--border); color: var(--muted); }

.num { font-family: var(--mono); }
.pct-up { color: var(--bull); }
.pct-down { color: var(--bear); }
.nifty-wt-active { color: var(--accent); font-weight: 600; }
.nifty-wt-none { color: var(--muted); opacity: 0.6; }

/* ═══════════════════════════════════════
   ENHANCED EMPTY STATE
   ═══════════════════════════════════════ */
.empty {
  text-align: center; padding: 60px 20px !important; color: var(--muted);
}
.empty-state-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-icon {
  width: 64px; height: 64px; color: var(--muted); opacity: 0.4;
  animation: empty-float 3s ease-in-out infinite;
}
@keyframes empty-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.empty-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.empty-sub {
  font-size: 0.75rem; color: var(--muted); max-width: 360px; line-height: 1.5;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  padding: 8px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.65rem; color: var(--muted);
  background: var(--bg-1); flex-shrink: 0;
}
.footer-shortcut {
  cursor: pointer; opacity: 0.5; transition: opacity var(--transition);
}
.footer-shortcut:hover { opacity: 1; color: var(--accent); }

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-width: 380px;
  cursor: pointer;
  transition: all var(--transition);
}
.toast:hover {
  border-color: var(--border-hover);
  transform: translateX(-4px);
}
.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(60px) scale(0.95); }
}

.toast-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem; font-weight: 800;
}
.toast.bull .toast-icon { background: var(--bull-dim); color: var(--bull); }
.toast.bear .toast-icon { background: var(--bear-dim); color: var(--bear); }
.toast.sync .toast-icon { background: var(--sync-dim); color: var(--sync); }

.toast-body { flex: 1; }
.toast-title {
  font-size: 0.78rem; font-weight: 700; margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.toast-detail {
  font-size: 0.68rem; color: var(--muted); font-family: var(--mono);
}
.toast-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.toast-progress-bar {
  height: 100%; width: 100%;
  background: var(--accent);
  animation: toast-progress 5s linear forwards;
}
@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ═══════════════════════════════════════
   KEYBOARD SHORTCUTS OVERLAY
   ═══════════════════════════════════════ */
.shortcut-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6,8,15,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.shortcut-overlay.visible { display: flex; }

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

.shortcut-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  max-width: 480px;
  width: 90%;
  animation: modal-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.shortcut-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.shortcut-header h3 { font-size: 1rem; font-weight: 700; }
.shortcut-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.2rem; padding: 4px 8px; border-radius: 4px;
  transition: all var(--transition);
}
.shortcut-close:hover { color: var(--text); background: var(--bg-3); }

.shortcut-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.shortcut-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.shortcut-item:hover { background: var(--bg-3); }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 26px; padding: 0 8px;
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--mono);
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  box-shadow: 0 2px 0 var(--bg-3);
}
.shortcut-item span {
  font-size: 0.78rem; color: var(--muted);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .summary-stats { gap: 6px; }
  .stat-card { min-width: 110px; padding: 8px 10px; }
}

@media (max-width: 900px) {
  .page-nav { display: none; }
  .ticker-strip { display: none; }
  .table-wrap { font-size: 0.75rem; }
  .summary-stats { padding: 8px 12px; }
  .stat-card-icon { display: none; }
  .shortcut-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 8px 12px; gap: 10px; }
  .toolbar { padding: 8px 12px; }
  .sector-panel { padding: 8px 12px 0; }
  .summary-stats { padding: 6px 12px; }
  .stat-card { min-width: 90px; padding: 6px 8px; }
  .stat-card-value { font-size: 0.95rem; }
}
