/* Shared page components — topbar, news, filters */
.arcana-topbar {
  background: var(--arc-panel, #0b0d18);
  border-bottom: 1px solid var(--arc-border, #131828);
  padding: 0 22px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.tb-greeting { font-size: 11px; color: #2a3860; letter-spacing: 0.06em; }
.tb-greeting span { color: #8090c0; }
.tb-date { color: #1e2a50 !important; }
.tb-right { display: flex; align-items: center; gap: 8px; }

.tb-search {
  position: relative;
  background: #0e1020;
  border: 1px solid #1a2040;
  border-radius: 7px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
}
.tb-search input {
  background: transparent;
  border: none;
  color: #c0cce0;
  font-size: 11px;
  width: 100%;
  outline: none;
}
.tb-search-icon { opacity: 0.35; font-size: 12px; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #0b0d18;
  border: 1px solid #1a2040;
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 60;
}
.search-results a {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  color: #8090b0;
  text-decoration: none;
  border-bottom: 1px solid #131828;
}
.search-results a:hover { background: #0f1120; color: #c0cce0; }
.search-results .hl { color: var(--arc-blue, #1a6fff); }

.tb-notify {
  position: relative;
  background: #0e1020;
  border: 1px solid #1a2040;
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}
.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e05060;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

.tb-live {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #091a10;
  border: 1px solid #1a4020;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  color: #2dd4a0;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2dd4a0;
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.notify-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #0b0d18;
  border-left: 1px solid #131828;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.notify-panel.open { transform: translateX(0); }
body.notify-open .arcana-main { margin-right: 0; }

.notify-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #131828;
}
.notify-panel-header h2 { font-size: 14px; color: #c0cce0; }
.btn-text { background: none; border: none; color: #4a80d0; font-size: 11px; cursor: pointer; }

.notify-tabs { display: flex; gap: 4px; padding: 10px 16px; border-bottom: 1px solid #131828; }
.notify-tab {
  flex: 1;
  padding: 6px;
  font-size: 11px;
  background: #0e1020;
  border: 1px solid #1a2040;
  border-radius: 6px;
  color: #6070a0;
  cursor: pointer;
}
.notify-tab.active { background: #0d1836; border-color: #1a6fff; color: #6aacff; }

.notify-list { flex: 1; overflow-y: auto; padding: 8px; }
.notify-item {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #0e1020;
  border-left: 3px solid #1a2040;
  font-size: 11px;
  color: #8090b0;
  cursor: pointer;
}
.notify-item time { display: block; font-size: 9px; color: #1e2848; margin-top: 4px; }
.notify-alert { border-left-color: #f59e0b; }
.notify-pos { border-left-color: #2dd4a0; }
.notify-neg { border-left-color: #e05060; }

.page-content { padding: 18px 22px 24px; }

.page-header { margin-bottom: 16px; }
.page-header h1 { font-size: 18px; font-weight: 600; color: #e0e4f0; }
.page-header p { font-size: 12px; color: #5555a0; margin-top: 4px; }
.page-header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card--section { margin-bottom: 16px; }
.card-header--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

a.company-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
a.company-card:hover {
  border-color: rgba(108, 92, 231, 0.35);
}

.companies-grid--directory {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a45 transparent;
}
.companies-grid--directory::-webkit-scrollbar { width: 6px; }
.companies-grid--directory::-webkit-scrollbar-thumb {
  background: #2a2a45;
  border-radius: 3px;
}

.impact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: #4a5580;
  margin-bottom: 12px;
}
.impact-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
.legend-high::before { background: #2dd4a0; }
.legend-mid::before { background: #f59e0b; }
.legend-low::before { background: #1a4080; }
.legend-neg::before { background: #e05060; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter-chip {
  background: #1a1a2e;
  border: 1px solid #2a2a45;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: #7070a0;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.active {
  background: #2a2060;
  border-color: #6c5ce7;
  color: #a090ff;
}

.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #1e1e35;
  border-radius: 10px;
  background: #13132a;
  cursor: pointer;
  transition: border-color 0.15s;
}
.news-item:hover { border-color: #2a2a50; }
.news-sentiment {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.news-sentiment.positive { background: #2dd4a0; }
.news-sentiment.negative { background: #e05060; }
.news-sentiment.neutral { background: #4a5580; }

.news-body { flex: 1; min-width: 0; }
.news-meta { font-size: 9px; color: #4a6090; margin-bottom: 4px; display: flex; gap: 6px; }
.news-title-text { font-size: 12px; font-weight: 500; color: #9090c0; line-height: 1.4; }

.news-score {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.sc-high { background: #0e2818; border: 1px solid #1a5030; color: #2dd4a0; }
.sc-mid { background: #1a1400; border: 1px solid #3a2800; color: #f59e0b; }
.sc-low { background: #0d1428; border: 1px solid #1a2a50; color: #4a80d0; }
.sc-neg { background: #1a0808; border: 1px solid #3a1010; color: #e05060; }

.btn-watchlist {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #2a2a45;
  background: #1a1a2e;
  color: #9090c0;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-watchlist.active { background: #091a10; border-color: #1a4020; color: #2dd4a0; }

.view-all-btn {
  font-size: 11px;
  color: #4a80d0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.coming-soon-banner {
  padding: 12px 16px;
  background: #180e00;
  border: 1px solid #3a2800;
  border-radius: 8px;
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 16px;
}
