/* ============================================
   StockPulse — Stock Analysis Command Center
   Dark theme. Bloomberg meets modern SaaS.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #181825;
  --border: #1e1e2e;
  --border-hover: #2a2a3e;
  --green: #00d4aa;
  --green-dim: rgba(0, 212, 170, 0.1);
  --green-glow: rgba(0, 212, 170, 0.15);
  --red: #ff4757;
  --red-dim: rgba(255, 71, 87, 0.1);
  --yellow: #ffa502;
  --yellow-dim: rgba(255, 165, 2, 0.1);
  --text: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.4);
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: #33e0be; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  white-space: nowrap; text-decoration: none;
}
.navbar-brand .logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--green), #00a88a);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.nav-links a {
  color: var(--text-secondary); padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--green); }

.search-box {
  flex: 1; max-width: 420px; position: relative; margin-left: auto;
}
.search-box input {
  width: 100%; padding: 9px 16px 9px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px; color: var(--text);
  font-family: var(--font); font-size: 0.875rem;
  outline: none; transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--green);
  background: rgba(0,212,170,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}
.search-box .search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
  font-size: 14px; pointer-events: none;
}

/* ---- Layout ---- */
.container {
  max-width: 1400px; margin: 0 auto; padding: 24px;
}

.section-header {
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.section-title {
  font-size: 1rem; font-weight: 700; display: flex;
  align-items: center; gap: 8px;
}
.section-title .icon { font-size: 1.1rem; }
.section-subtitle {
  font-size: 0.8rem; color: var(--text-muted);
}

/* ---- Grid System ---- */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Index Cards ---- */
.index-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: var(--transition);
}
.index-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.index-card .index-name {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 8px; font-weight: 600;
}
.index-card .index-price { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.index-card .index-change { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ---- Color Utilities ---- */
.green { color: var(--green) !important; }
.red { color: var(--red) !important; }
.yellow { color: var(--yellow) !important; }

/* ---- Badges / Pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-green, .badge-bullish {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(0,212,170,0.2);
}
.badge-red, .badge-bearish {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(255,71,87,0.2);
}
.badge-yellow, .badge-warning {
  background: var(--yellow-dim); color: var(--yellow);
  border: 1px solid rgba(255,165,2,0.2);
}
.badge-neutral {
  background: rgba(136,136,170,0.1); color: var(--text-secondary);
  border: 1px solid rgba(136,136,170,0.2);
}

/* ---- Verdict Banner ---- */
.verdict-banner {
  text-align: center; padding: 18px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px;
}
.verdict-banner.green {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,212,170,0.05));
  color: var(--green); border: 1px solid rgba(0,212,170,0.3);
}
.verdict-banner.red {
  background: linear-gradient(135deg, rgba(255,71,87,0.15), rgba(255,71,87,0.05));
  color: var(--red); border: 1px solid rgba(255,71,87,0.3);
}
.verdict-banner.yellow {
  background: linear-gradient(135deg, rgba(255,165,2,0.15), rgba(255,165,2,0.05));
  color: var(--yellow); border: 1px solid rgba(255,165,2,0.3);
}
.verdict-banner.neutral {
  background: rgba(136,136,170,0.08);
  color: var(--text-secondary); border: 1px solid rgba(136,136,170,0.2);
}

/* ---- Signal / Alert Items ---- */
.signal-item, .alert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30,30,46,0.5);
  cursor: pointer; transition: var(--transition);
}
.signal-item:last-child, .alert-item:last-child { border-bottom: none; }
.signal-item:hover, .alert-item:hover { background: rgba(255,255,255,0.02); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-sm); }

.alert-icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-content { flex: 1; min-width: 0; }
.alert-message { font-size: 0.85rem; margin-bottom: 2px; }
.alert-time, .alert-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Watchlist ---- */
.watchlist-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.watchlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px; cursor: pointer;
  transition: var(--transition); position: relative;
}
.watchlist-card:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.watchlist-card .wl-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;
}
.watchlist-card .wl-ticker { font-weight: 700; font-size: 1rem; }
.watchlist-card .wl-name { color: var(--text-secondary); font-size: 0.75rem; }
.watchlist-card .wl-price { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.watchlist-card .wl-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.watchlist-card .wl-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; opacity: 0;
  transition: var(--transition); line-height: 1;
}
.watchlist-card:hover .wl-remove { opacity: 1; }
.watchlist-card .wl-remove:hover { color: var(--red); }

.add-stock-form {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.add-stock-form input {
  flex: 1; max-width: 300px;
  padding: 9px 16px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: 0.85rem;
  outline: none; transition: var(--transition);
}
.add-stock-form input:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.85rem;
  font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #0a0a0f;
}
.btn-primary:hover {
  background: #00e6b8; box-shadow: 0 0 20px rgba(0,212,170,0.3);
}
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline.active {
  border-color: var(--green); color: var(--green); background: var(--green-dim);
}
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }
.btn-danger:hover { background: rgba(255,71,87,0.2); }

/* ---- Stock Detail ---- */
.stock-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.stock-hero h1 {
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.stock-hero .company-name {
  color: var(--text-secondary); font-size: 0.9rem;
}
.stock-hero .price-big {
  font-size: 2.2rem; font-weight: 700; text-align: right;
}

/* ---- Tabs ---- */
.tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.tab {
  padding: 10px 16px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition); user-select: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ---- Chart Containers ---- */
.chart-container { width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; }
.chart-container.small { min-height: 150px; }

/* ---- Stats ---- */
.stat-item {
  padding: 12px;
  border-bottom: 1px solid rgba(30,30,46,0.5);
}
.stat-item:last-child { border-bottom: none; }
.stat-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.stat-value { font-size: 1rem; font-weight: 600; }

/* ---- RSI Gauge ---- */
.rsi-gauge {
  height: 6px; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  border-radius: 3px; position: relative; margin-top: 8px;
}
.rsi-marker {
  position: absolute; top: -3px; width: 12px; height: 12px;
  background: white; border-radius: 50%; border: 2px solid var(--bg);
  transform: translateX(-50%); box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 20px;
  font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  background: rgba(255,255,255,0.04); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--green); color: var(--text); }
.filter-btn.active {
  background: var(--green-dim); color: var(--green);
  border-color: rgba(0,212,170,0.3);
}

/* ---- Scanner Table ---- */
.scanner-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.scanner-table thead { background: rgba(255,255,255,0.03); }
.scanner-table th {
  padding: 12px 16px; text-align: left; font-weight: 600;
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.scanner-table th:hover { color: var(--text); }
.scanner-table th .sort-arrow { margin-left: 4px; opacity: 0.4; }
.scanner-table th.sorted .sort-arrow { opacity: 1; color: var(--green); }
.scanner-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(30,30,46,0.4);
  white-space: nowrap;
}
.scanner-table tbody tr {
  cursor: pointer; transition: var(--transition);
}
.scanner-table tbody tr:hover { background: rgba(0,212,170,0.03); }
.scanner-table tbody tr.top-pick {
  background: rgba(0,212,170,0.05);
  border-left: 3px solid var(--green);
}

/* ---- News Items ---- */
.news-item {
  padding: 12px 0; border-bottom: 1px solid rgba(30,30,46,0.5);
}
.news-item:last-child { border-bottom: none; }
.news-item a { font-size: 0.9rem; font-weight: 500; }
.news-item .news-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Loading States ---- */
.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px; gap: 12px;
  color: var(--text-muted); font-size: 0.9rem;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text-secondary); }
.empty-state p { font-size: 0.85rem; }

/* ---- Fade In ---- */
.fade-in {
  animation: fadeIn 0.4s ease forwards; opacity: 0;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }

/* ---- Pulse dot ---- */
.pulse-dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- Last Updated Indicator ---- */
.last-updated {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.last-updated .live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Price Flash Animation ---- */
@keyframes flashGreen {
  0% { background-color: transparent; }
  20% { background-color: rgba(0, 212, 170, 0.15); }
  100% { background-color: transparent; }
}
@keyframes flashRed {
  0% { background-color: transparent; }
  20% { background-color: rgba(255, 71, 87, 0.15); }
  100% { background-color: transparent; }
}
.price-flash-up {
  animation: flashGreen 1.2s ease-out;
}
.price-flash-down {
  animation: flashRed 1.2s ease-out;
}

/* ---- Source Badge ---- */
.source-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px; border-radius: 8px;
  font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.source-finnhub {
  background: rgba(0, 212, 170, 0.1); color: var(--green);
  border: 1px solid rgba(0, 212, 170, 0.15);
}
.source-yfinance {
  background: rgba(136, 136, 170, 0.1); color: var(--text-muted);
  border: 1px solid rgba(136, 136, 170, 0.15);
}

/* ---- Earnings Calendar ---- */
.earnings-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,30,46,0.5);
}
.earnings-item:last-child { border-bottom: none; }
.earnings-item .earnings-symbol {
  font-weight: 700; font-size: 0.9rem; min-width: 60px;
  cursor: pointer;
}
.earnings-item .earnings-symbol:hover { color: var(--green); }
.earnings-item .earnings-date {
  font-size: 0.78rem; color: var(--text-secondary); min-width: 90px;
}
.earnings-item .earnings-time {
  font-size: 0.72rem; color: var(--text-muted);
}
.earnings-item .earnings-est {
  font-size: 0.78rem; color: var(--text-secondary); margin-left: auto;
}
.earnings-item.watchlist-stock {
  background: rgba(0, 212, 170, 0.04);
  border-left: 3px solid var(--green);
  padding-left: 10px;
  margin-left: -10px;
}

/* ---- Watchlist Real-time ---- */
.wl-change {
  font-size: 0.85rem; font-weight: 600;
}
.wl-change.up { color: var(--green); }
.wl-change.down { color: var(--red); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar-inner { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .container { padding: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stock-hero { flex-direction: column; }
  .stock-hero .price-big { font-size: 1.8rem; text-align: left; }
  .watchlist-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .index-card .index-price { font-size: 1.3rem; }
  .scanner-table { font-size: 0.8rem; }
  .scanner-table th, .scanner-table td { padding: 8px 10px; }
}

/* ============================================
   Insider Trading Styles
   ============================================ */

/* Insider trades table */
.insider-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.insider-table thead { background: rgba(255,255,255,0.03); }
.insider-table th {
  padding: 10px 14px; text-align: left; font-weight: 600;
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.insider-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(30,30,46,0.4);
  white-space: nowrap;
}
.insider-table tbody tr { transition: var(--transition); }
.insider-table tbody tr:hover { background: rgba(0,212,170,0.03); }

/* Buy/Sell badges */
.trade-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.trade-badge-buy {
  background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(0,212,170,0.25);
}
.trade-badge-sell {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(255,71,87,0.25);
}

/* Cluster Buy Alert Banner */
.cluster-alert {
  background: linear-gradient(135deg, rgba(255,165,2,0.15), rgba(255,200,50,0.05));
  border: 1px solid rgba(255,165,2,0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cluster-alert .cluster-icon {
  font-size: 1.8rem; flex-shrink: 0;
}
.cluster-alert .cluster-text {
  flex: 1;
}
.cluster-alert .cluster-title {
  font-weight: 700; font-size: 0.95rem; color: var(--yellow);
  margin-bottom: 2px;
}
.cluster-alert .cluster-detail {
  font-size: 0.82rem; color: var(--text-secondary);
}

/* Sentiment indicator */
.sentiment-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0;
}
.sentiment-bar .bar-track {
  flex: 1; height: 8px;
  background: var(--border); border-radius: 4px;
  overflow: hidden; display: flex;
}
.sentiment-bar .bar-buy {
  background: var(--green); height: 100%;
  transition: width 0.4s ease;
}
.sentiment-bar .bar-sell {
  background: var(--red); height: 100%;
  transition: width 0.4s ease;
}
.sentiment-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.sentiment-label.bullish { color: var(--green); }
.sentiment-label.bearish { color: var(--red); }
.sentiment-label.neutral { color: var(--text-muted); }

/* Insider activity card on dashboard */
.insider-feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,30,46,0.5);
  cursor: pointer; transition: var(--transition);
}
.insider-feed-item:last-child { border-bottom: none; }
.insider-feed-item:hover {
  background: rgba(255,255,255,0.02);
  margin: 0 -8px; padding-left: 8px; padding-right: 8px;
  border-radius: var(--radius-sm);
}

/* Share button */
.btn-share {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 12px;
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  background: rgba(100,100,255,0.1); color: #7c7cff;
  border: 1px solid rgba(100,100,255,0.2);
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-share:hover {
  background: rgba(100,100,255,0.2);
  border-color: rgba(100,100,255,0.4);
  box-shadow: 0 0 12px rgba(100,100,255,0.15);
}
.btn-share.shared {
  background: rgba(0,212,170,0.1); color: var(--green);
  border-color: rgba(0,212,170,0.2);
  pointer-events: none;
}

/* Insider chart container */
.insider-chart-container {
  height: 200px; position: relative; margin-top: 12px;
}

/* Shared alerts feed */
.shared-alert-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,30,46,0.5);
}
.shared-alert-item:last-child { border-bottom: none; }
.shared-alert-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 10px;
  font-size: 0.65rem; font-weight: 600;
  background: rgba(100,100,255,0.1); color: #7c7cff;
  border: 1px solid rgba(100,100,255,0.15);
  white-space: nowrap;
}

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  z-index: 1000; opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success {
  background: rgba(0,212,170,0.9); color: #0a0a0f;
}
.toast-error {
  background: rgba(255,71,87,0.9); color: white;
}
