/* ═══════════════════════════════════════════════
   Stocks — Beautiful Frontend  •  stocks.css
   Theme: violet primary #7c3aed  •  oat + site vars
   ═══════════════════════════════════════════════ */

/* ── Page / layout ── */
.stocks-main { max-width: 1200px; min-width: 0; }
.layout-container { align-items: flex-start; }

/* ── Hero ── */
.stocks-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(124,58,237,0.12);
  background: #fff;
}
.stocks-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(124,58,237,0.14), transparent 60%),
    radial-gradient(500px 250px at -10% 120%, rgba(124,58,237,0.08), transparent 60%),
    linear-gradient(135deg, #faf5ff 0%, #ffffff 55%);
  pointer-events: none;
}
.stocks-hero-inner {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  flex-wrap: wrap;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,58,237,0.10);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
}
.hero-eyebrow svg { width: 0.875rem; height: 0.875rem; }
.stocks-hero-copy h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.375rem;
  line-height: 1.1;
}
.stocks-hero-copy p {
  margin: 0;
  color: var(--foreground-light);
  font-size: 0.875rem;
  max-width: 520px;
  line-height: 1.5;
}
.stocks-hero-stats {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.h-stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  min-width: 92px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.h-stat-accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.h-stat-accent .h-stat-label { color: rgba(255,255,255,0.85); }
.h-stat-val { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.h-stat-label { display: block; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--foreground-light); margin-top: 0.25rem; }

/* ── Search ── */
.stocks-search-wrap { position: relative; margin-bottom: 1rem; }
.stocks-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  max-width: 640px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stocks-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.stocks-search-icon {
  width: 1rem; height: 1rem;
  color: var(--foreground-light);
  margin-left: 0.875rem;
  flex-shrink: 0;
}
.stocks-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  background: transparent;
  min-width: 0;
}
.stocks-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.stocks-search-btn:hover { background: #6d28d9; }
.stocks-search-btn svg { width: 0.9375rem; height: 0.9375rem; }

/* search results dropdown — reuse base but widen */
.search-results {
  position: absolute;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  width: 640px;
  max-width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
.search-results.open { display: block; }
.search-result-item {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(124,58,237,0.06); text-decoration: none; }

/* ── Toolbar / chips ── */
.stocks-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.stocks-filter-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-label svg { width: 0.875rem; height: 0.875rem; }
.stocks-filter-left .ts-wrapper { min-width: 240px; max-width: 340px; }
.stocks-filter-chips { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(124,58,237,0.10);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.chip button {
  background: rgba(124,58,237,0.16);
  border: none;
  border-radius: 50%;
  width: 1.125rem; height: 1.125rem;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.875rem;
  line-height: 1;
}
.stocks-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--foreground-light);
  font-weight: 500;
}

/* ── Stock grid & cards ── */
.stocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .stocks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stocks-grid { grid-template-columns: 1fr; } }

.stock-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.stock-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  opacity: 0;
  transition: opacity 0.15s;
}
.stock-card:hover {
  border-color: rgba(124,58,237,0.30);
  box-shadow: 0 8px 24px rgba(124,58,237,0.10);
  transform: translateY(-2px);
}
.stock-card:hover::before { opacity: 1; }
.stock-card.has-data { border-color: rgba(124,58,237,0.18); }

.stock-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stock-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.stock-symbol {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,58,237,0.10);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
}
.stock-symbol svg { width: 0.75rem; height: 0.75rem; }
.stock-exch {
  font-size: 0.6875rem;
  color: var(--foreground-light);
  font-weight: 500;
}
.stock-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #f5f3ff;
  color: var(--primary);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
}
.stock-badge svg { width: 0.75rem; height: 0.75rem; }

.stock-name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stock-industry {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.75rem;
  color: var(--foreground-light);
}
.stock-industry svg { width: 0.8125rem; height: 0.8125rem; color: var(--primary); opacity: 0.9; }
.stock-industry .muted { color: var(--foreground-light); }

.stock-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}
.stock-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--foreground-light);
  font-weight: 500;
}
.stock-foot-left svg { width: 0.8125rem; height: 0.8125rem; }
.stock-foot-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--background-alt);
  color: var(--foreground-light);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
}
.stock-foot-tag.accent { background: var(--primary); color: #fff; }

/* ── Skeleton & empty ── */
.stocks-skeleton { display: contents; }
.sk-card {
  height: 132px;
  border-radius: 0.875rem;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.stocks-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--foreground-light);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 0.875rem;
}
.stocks-empty svg { width: 2rem; height: 2rem; margin-bottom: 0.75rem; color: var(--foreground-light); }
.stocks-empty p { margin: 0 0 0.75rem; font-size: 0.875rem; }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Tom Select themed ── */
.filter-bar .ts-wrapper { max-width: 340px; }
.ts-control {
  border-radius: 0.625rem !important;
  border-color: var(--border) !important;
  font-size: 0.875rem !important;
  min-height: 2.375rem !important;
}
.ts-wrapper.focus .ts-control {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12) !important;
}
.ts-dropdown {
  border-radius: 0.625rem !important;
  border-color: var(--border) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
}
.ts-dropdown .active { background: rgba(124,58,237,0.08) !important; color: var(--foreground) !important; }

/* ── Sidebar polish (stocks-sidebar) ── */
.stocks-sidebar header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.stocks-sidebar header svg { width: 0.875rem; height: 0.875rem; color: var(--primary); }
.side-nav li { margin: 0.1875rem 0; }
.side-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.625rem !important;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.side-link svg { width: 0.9375rem; height: 0.9375rem; flex-shrink: 0; color: var(--foreground-light); }
.side-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link .side-badge {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(124,58,237,0.10);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.0625rem 0.5rem;
}
.side-link:hover { background: rgba(124,58,237,0.08) !important; }
.side-link:hover svg { color: var(--primary); }
.side-link.active,
.side-link.active:hover {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(124,58,237,0.30);
}
.side-link.active svg { color: #fff; }
.side-link.active .side-badge { background: rgba(255,255,255,0.22); color: #fff; }
.side-more { margin: -0.5rem 0 1.25rem; padding: 0 0.75rem; }
.side-more a { font-size: 0.75rem; color: var(--primary); text-decoration: none; }
.side-more a:hover { text-decoration: underline; }

/* ── Pagination (keep base, just soften) ── */
.pagination { margin-top: 1.75rem; }
.pagination-inner { gap: 0.375rem; }
.page-btn { border-radius: 0.5rem; }

/* ── Page header — matches cards/brokers/mf ── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.375rem;
  line-height: 1.15;
}
.page-header p {
  margin: 0;
  color: var(--foreground-light);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 640px;
}
.page-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.page-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}
.page-stat svg { width: 0.8125rem; height: 0.8125rem; color: var(--primary); }
.page-stat-accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-stat-accent svg { color: #fff; }

/* ── Search / filter — use same classes as cards ── */
.search-section { position: relative; margin-bottom: 1rem; }
.search-section .search-box {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
}
.search-section .search-box input { flex: 1; }
.search-section .search-results { width: 640px; max-width: 100%; }
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}
.filter-bar .ts-wrapper { min-width: 240px; max-width: 340px; }
.filter-count {
  font-size: 0.75rem;
  color: var(--foreground-light);
  font-weight: 500;
}
.filter-chips { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.filter-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(124,58,237,0.10);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-chips .chip button {
  background: rgba(124,58,237,0.16);
  border: none;
  border-radius: 50%;
  width: 1.125rem; height: 1.125rem;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.875rem;
  line-height: 1;
}

/* ── Card grid — ensure stocks cards fill like other listings ── */
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid.cols-3 { grid-template-columns: 1fr; } }

/* ── Sidebar count badge — matches other sidebars subtly ── */
.sidebar-count {
  float: right;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(124,58,237,0.10);
  color: var(--primary);
  border-radius: 999px;
  padding: 0 0.375rem;
  margin-left: 0.5rem;
  line-height: 1.5;
}
[data-sidebar] a[aria-current="page"] .sidebar-count {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ── Responsive hero ── */
@media (max-width: 768px) {
  .stocks-hero-inner { flex-direction: column; align-items: stretch; }
  .stocks-hero-stats { justify-content: stretch; }
  .h-stat { flex: 1; }
  .stocks-search-box { max-width: 100%; }
  .search-results { width: 100%; }
}

/* ── NEW DISTINCT LAYOUT — Stocks only ── */
.stocks-hero-new { position: relative; overflow: visible; background: #ffffff; color: #111827; padding: 1.75rem 1.5rem 1.5rem; margin: 0; border-bottom: 1px solid #e5e7eb; z-index: 10; }
.stocks-hero-new-bg { position: absolute; inset: 0; background: radial-gradient(600px 280px at 85% 0%, rgba(124,58,237,0.06), transparent 60%), linear-gradient(180deg, #faf5ff 0%, #ffffff 55%); pointer-events: none; border-radius: 0; }
.stocks-hero-new-inner { position: relative; max-width: 1280px; margin: 0 auto; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; border-radius: 999px; padding: 0.25rem 0.625rem; }
.hero-kicker svg { width: 0.875rem; height: 0.875rem; color: #7c3aed; }
.stocks-hero-copy h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.5rem 0 0.375rem; line-height: 1.1; color: #111827; }
.stocks-hero-copy p { margin: 0; color: #6b7280; font-size: 0.9375rem; max-width: 520px; }
.stocks-hero-search { flex-shrink: 0; width: 420px; max-width: 100%; position: relative; }
.hero-search-box { display: flex; align-items: center; gap: 0.5rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.375rem; }
.hero-search-box svg { width: 1rem; height: 1rem; color: #6b7280; margin-left: 0.5rem; }
.hero-search-box input { flex: 1; border: none; outline: none; font-size: 0.9375rem; background: transparent; min-width: 0; }
.hero-search-box button { background: #111827; color: #fff; border: none; border-radius: 0.5rem; padding: 0.5rem 0.875rem; font-weight: 600; cursor: pointer; }
.hero-search-box button:hover { background: #1f2937; }
.hero-quick-stats { display: flex; gap: 0.75rem; margin-top: 0.625rem; font-size: 0.75rem; color: #6b7280; flex-wrap: wrap; }
.hero-quick-stats strong { color: #111827; }
.hero-quick-stats .dot { opacity: 0.5; }
.hero-search-results { position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; width: 100%; max-width: 420px; z-index: 60; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; box-shadow: 0 12px 32px rgba(0,0,0,0.12); max-height: 360px; overflow-y: auto; }
.stocks-page { flex: 1; min-width: 0; padding: 1.25rem 1.5rem 2rem; }
.stocks-filters-new { display: flex; gap: 0.5rem 0.375rem; row-gap: 0.5rem; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.625rem 0.75rem; margin-bottom: 0.75rem; }
.filter-pills { display: flex; gap: 0.375rem; row-gap: 0.5rem; flex-wrap: wrap; }
.pill-btn { display: inline-flex; align-items: center; gap: 0.375rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 999px; padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; color: #111827; }
.pill-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.industry-chips { display: flex; gap: 0.375rem; row-gap: 0.625rem; flex-wrap: wrap; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; gap: 0.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 500; cursor: pointer; color: #374151; }
.chip-btn em { color: #6b7280; }
.chip-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.chip-btn.active em { color: #fff; background: rgba(255,255,255,0.22); }
.stocks-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1200px) { .stocks-grid-new { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stocks-grid-new { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stocks-grid-new { grid-template-columns: 1fr; } }
.stock-card-new { display: flex; flex-direction: column; gap: 0.625rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 1rem 1.125rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.stock-card-new:hover { border-color: rgba(124,58,237,0.30); box-shadow: 0 8px 24px rgba(124,58,237,0.10); transform: translateY(-2px); }
@media (min-width: 769px) {
  .stocks-sidebar-new { width: 280px; flex-shrink: 0; background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); border-right: 1px solid #ede9fe; padding: 1.25rem 1rem; }
}
@media (max-width: 768px) {
  .stocks-sidebar-new { background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); }
}
.sidebar-brand { display: flex; gap: 0.75rem; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.875rem; margin-bottom: 1.25rem; color: #111827; }
.brand-icon { width: 2.5rem; height: 2.5rem; min-width: 2.5rem; border-radius: 0.625rem; display: grid; place-items: center; background: #f3f4f6; border: 1px solid #e5e7eb; color: #374151; }
.brand-icon svg { width: 16px !important; height: 16px !important; color: #374151 !important; stroke-width: 1.75; }
.sidebar-brand strong { display: block; font-size: 0.9375rem; line-height: 1; color: #111827; }
.sidebar-brand small { font-size: 0.6875rem; color: #6b7280; }
.sidebar-nav { margin-bottom: 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.875rem 0.625rem; }
.nav-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; margin: 0 0 0.625rem; padding: 0 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.nav-label::before { content: ""; width: 0.75rem; height: 2px; background: #d1d5db; border-radius: 999px; }
.nav-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #374151; text-decoration: none; position: relative; transition: background 0.15s, color 0.15s; }
.nav-item:hover { background: #f3f4f6; color: #111827; text-decoration: none; }
.nav-item.active { background: #111827; color: #fff; }
.nav-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 0.5rem; display: grid; place-items: center; background: #f3f4f6; border: 1px solid #e5e7eb; flex-shrink: 0; }
.nav-icon svg { width: 16px !important; height: 16px !important; color: #6b7280 !important; stroke-width: 1.75 !important; }
.nav-item:hover .nav-icon { background: #e5e7eb; border-color: #d1d5db; }
.nav-item.active .nav-icon { background: #374151; border-color: #374151; }
.nav-item.active .nav-icon svg { color: #fff !important; }
.nav-count { margin-left: auto; font-size: 0.6875rem; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; border-radius: 999px; padding: 0 0.375rem; }
.nav-item.active .nav-count { background: #374151; color: #fff; border-color: #4b5563; }
/* pagination — prevent buttons sticking together */
.pagination { margin-top: 1.75rem; }
.pagination-inner { display: flex; gap: 0.5rem; row-gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.page-btn { border-radius: 0.5rem; margin: 0; }
/* ── Sidebar glowup overrides ── */
.industry-list { gap: 0.25rem; }
.nav-more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; margin-left: 0.25rem; font-size: 0.75rem; font-weight: 600; color: #7c3aed; text-decoration: none; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 999px; padding: 0.25rem 0.625rem; }
.nav-more:hover { background: #ede9fe; color: #6d28d9; text-decoration: none; }
.sidebar-card { background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%); border: 1px solid #ede9fe; border-radius: 1rem; padding: 0.875rem; margin-top: 1rem; box-shadow: 0 2px 8px rgba(124,58,237,0.06); }
.sidebar-card-title { color: #4c1d95; font-weight: 700; }
.sidebar-card-title svg { width: 16px !important; height: 16px !important; color: #7c3aed !important; }
/* ── Table view — professional alternative to cards ── */
.stocks-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; overflow: hidden; overflow-x: auto; }
.stocks-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 720px; }
.stocks-table th { background: #f9fafb; color: #6b7280; font-weight: 600; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.stocks-table td { padding: 0.875rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.stocks-table tbody tr { transition: background 0.12s; }
.stocks-table tbody tr:hover { background: #f9fafb; }
.stocks-table tbody tr:last-child td { border-bottom: none; }
.view-toggle { border: 1px solid #e5e7eb; }