:root {
  --bg: #0b1020;
  --bg-elevated: rgba(18, 24, 48, 0.82);
  --border: rgba(148, 163, 255, 0.18);
  --text: #eef2ff;
  --muted: #9aa6c8;
  --blue: #4f7cff;
  --blue-2: #6ea8ff;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --shadow: 0 18px 50px rgba(8, 12, 30, 0.45);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 124, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(139, 92, 246, 0.25), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(79, 124, 255, 0.12), transparent 60%),
    var(--bg);
  line-height: 1.45;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.35;
}

.app {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.brand { display: flex; gap: 14px; align-items: center; flex: 1; }
.logo {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 10px 30px rgba(79, 124, 255, 0.35);
}
.logo svg { width: 26px; height: 26px; }
.subtitle-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand .market-badge { margin-top: 0; }
h1 { margin: 0; font-size: 1.45rem; font-weight: 700; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }

.header-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.header-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.filter-row { gap: 8px; align-items: center; }
.filter-label { color: var(--muted); font-size: 0.86rem; font-weight: 500; }

.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { min-width: 150px; text-align: left; }
.dropdown-toggle::after {
  content: "▾"; float: right; margin-left: 8px; color: var(--blue-2);
}
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
  min-width: 220px; max-height: 320px; overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 8px 0;
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer;
  font-size: 0.9rem; color: var(--text);
  transition: background 0.12s ease;
}
.dropdown-item:hover { background: rgba(79, 124, 255, 0.12); }
.dropdown-item input { accent-color: var(--blue); cursor: pointer; }
.dropdown-divider {
  height: 1px; background: var(--border); margin: 6px 12px;
}

.market-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(148, 163, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600;
}
.market-badge .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(154, 166, 200, 0.5);
}
.market-badge.open { color: #bbf7d0; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.market-badge.open .pulse { background: var(--green); animation: pulse 1.6s infinite; }
.market-badge.pre, .market-badge.after { color: #fde68a; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.market-badge.pre .pulse, .market-badge.after .pulse { background: var(--amber); }
.market-badge.closed { color: #fecaca; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.market-badge.closed .pulse { background: var(--red); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.btn {
  appearance: none; border: 1px solid rgba(110, 168, 255, 0.35);
  background: linear-gradient(135deg, rgba(79,124,255,0.25), rgba(139,92,246,0.25));
  color: var(--text); border-radius: 12px; padding: 10px 16px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(167, 139, 250, 0.7); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

select.btn {
  background: rgba(18, 24, 48, 0.7);
  padding-right: 32px;
}
select.btn option { background: var(--bg); color: var(--text); padding: 6px; }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.metric { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.metric::after {
  content: ""; position: absolute; inset: auto -20% -40% auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
}
.metric .label { display: block; color: var(--muted); font-size: 0.86rem; margin-bottom: 8px; }
.metric .value {
  display: block; font-family: var(--mono); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em;
}
.metric .hint { display: block; margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.metric-total-value {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px),
    linear-gradient(135deg, rgba(79, 124, 255, 0.22), rgba(79, 124, 255, 0.08));
  border-color: rgba(79, 124, 255, 0.4);
}
.metric-total-cost {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px),
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08));
  border-color: rgba(139, 92, 246, 0.4);
}
.metric-gain-loss {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px),
    linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.06));
  border-color: rgba(52, 211, 153, 0.35);
}
.metric-positions {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px),
    linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.06));
  border-color: rgba(251, 191, 36, 0.35);
}

.summary-grid .metric-total-value,
.summary-grid .metric-total-cost,
.summary-grid .metric-gain-loss,
.summary-grid .metric-positions {
  transform: scale(1.03);
  font-weight: 700;
}
.summary-grid .metric-total-value .label,
.summary-grid .metric-total-cost .label,
.summary-grid .metric-gain-loss .label,
.summary-grid .metric-positions .label {
  font-weight: 700;
  font-size: 0.92rem;
}
.summary-grid .metric-total-value .value,
.summary-grid .metric-total-cost .value,
.summary-grid .metric-gain-loss .value,
.summary-grid .metric-positions .value {
  font-size: 1.65rem;
  font-weight: 700;
}

.summary-grid, .charts-grid {
  display: grid; gap: 16px; margin-bottom: 16px;
}
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.charts-grid { grid-template-columns: 1.05fr 1.2fr; }

.notifications-card {
  margin-bottom: 16px; overflow: hidden;
  background: rgba(245, 243, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.25);
  color: #0f172a;
}
.notifications-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(192, 132, 252, 0.08));
}
.notifications-summary::-webkit-details-marker { display: none; }
.notifications-summary::before {
  content: "▸"; color: #7c3aed; margin-right: 10px;
  transition: transform 0.2s ease; display: inline-block;
}
.notifications-card[open] .notifications-summary::before { transform: rotate(90deg); }
.notifications-title { flex: 1; }
.notifications-summary .chip {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}
.notifications-card .section-icon {
  color: #7c3aed;
}
.notifications-card.has-notifications .notifications-summary {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.22), rgba(236, 72, 153, 0.14));
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.35);
}
.notifications-card.has-notifications .notifications-summary::before {
  color: #e879f9;
}
.notifications-card.has-notifications .chip {
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.35);
  color: #7c3aed;
}
.notifications-list {
  padding: 0 18px 18px;
  max-height: calc(6 * 66px);
  overflow-y: auto;
}
.notifications-empty {
  text-align: center;
  color: #64748b;
  padding: 24px 0;
  font-size: 0.92rem;
}
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.notification:last-child {
  border-bottom: none;
}
.notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.notification.positive .notification-icon {
  background: rgba(0, 100, 0, 0.12);
  color: #006400;
}
.notification.negative .notification-icon {
  background: rgba(128, 0, 0, 0.12);
  color: #800000;
}
.notification-body {
  flex: 1;
  min-width: 0;
}
.notification-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #0f172a;
}
.notification-title .symbol {
  margin-right: 6px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
  border-color: rgba(37,99,235,0.12);
}
.notification-meta {
  color: #64748b;
  font-size: 0.82rem;
}
.notification-delete {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.notification-delete:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.overview-card {
  margin-bottom: 16px; overflow: hidden;
  background: rgba(16, 24, 48, 0.86);
  border-color: rgba(79, 124, 255, 0.22);
}
.overview-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.14), rgba(139, 92, 246, 0.1));
}
.overview-summary::-webkit-details-marker { display: none; }
.overview-summary::before {
  content: "▸"; color: var(--blue-2); margin-right: 10px;
  transition: transform 0.2s ease; display: inline-block;
}
.overview-card[open] .overview-summary::before { transform: rotate(90deg); }
.overview-title { flex: 1; }
.overview-body { padding: 18px 18px 0; }

.movers-card {
  margin-bottom: 16px; overflow: hidden;
  background: rgba(14, 36, 40, 0.86);
  border-color: rgba(52, 211, 153, 0.2);
}
.movers-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(34, 211, 238, 0.08));
}
.movers-summary::-webkit-details-marker { display: none; }
.movers-summary::before {
  content: "▸"; color: #34d399; margin-right: 10px;
  transition: transform 0.2s ease; display: inline-block;
}
.movers-card[open] .movers-summary::before { transform: rotate(90deg); }
.movers-title { flex: 1; }
.movers-panel h3 { color: #a7f3d0; }

.movers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 0 18px 18px;
}
.movers-panel h3 {
  margin: 0 0 10px; font-size: 0.95rem; color: var(--text);
}
.movers-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.movers-list h4 {
  margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted);
}
.movers-list ul { list-style: none; margin: 0; padding: 0; }
.movers-list li {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(148,163,255,0.08);
  font-size: 0.88rem;
}
.movers-list li:last-child { border-bottom: none; }
.movers-list .sym { font-weight: 600; color: #dbe7ff; font-family: var(--mono); }
.movers-list .val { font-family: var(--mono); font-weight: 500; }
.movers-list .name {
  color: var(--muted); font-size: 0.76rem; max-width: 90px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.estimates-card {
  margin-bottom: 16px; overflow: hidden;
  background: rgba(35, 28, 14, 0.86);
  border-color: rgba(251, 191, 36, 0.22);
}
.estimates-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
}
.estimates-summary::-webkit-details-marker { display: none; }
.estimates-summary::before {
  content: "▸"; color: #fbbf24; margin-right: 10px;
  transition: transform 0.2s ease; display: inline-block;
}
.estimates-card[open] .estimates-summary::before { transform: rotate(90deg); }
.estimates-title { flex: 1; }
.estimates-body { padding: 0 18px 18px; }
.estimates-note {
  margin: 0 0 12px; color: #fde68a; font-size: 0.86rem;
}
.estimates-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.estimates-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}

.hidden { display: none !important; }

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  color: var(--blue);
  animation: hourglass-flip 2.4s ease-in-out infinite;
}
.loading-spinner svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loading-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
}

@keyframes hourglass-flip {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(180deg); }
  55% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.estimates-table { min-width: 860px; }
.estimates-table th {
  color: #fde68a;
}
.estimates-table .current-col {
  color: #9aa6c8;
}

.dividend-card {
  margin-bottom: 16px; overflow: hidden;
  background: rgba(38, 16, 48, 0.86);
  border-color: rgba(232, 121, 249, 0.22);
}
.dividend-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(236, 72, 153, 0.08));
}
.dividend-summary::-webkit-details-marker { display: none; }
.dividend-summary::before {
  content: "▸"; color: #e879f9; margin-right: 10px;
  transition: transform 0.2s ease; display: inline-block;
}
.dividend-card[open] .dividend-summary::before { transform: rotate(90deg); }
.dividend-title { flex: 1; }
.dividend-body { padding: 0 18px 18px; }
.dividend-note {
  margin: 0 0 12px; color: #f5d0fe; font-size: 0.86rem;
}
.dividend-table { min-width: 760px; }
.dividend-table th {
  color: #f5d0fe;
}

.volatile-asterisk {
  color: var(--amber);
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
}

tfoot.total-row,
.total-row {
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgba(148, 163, 255, 0.25);
}

.total-row td {
  color: var(--text);
  font-weight: 600;
}

.total-row .num {
  font-family: var(--mono);
  color: var(--green);
}

.card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 16px 18px 0;
}
.card-head h2 { margin: 0; font-size: 1.05rem; }
.chip {
  font-size: 0.78rem; color: var(--blue-2);
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.22);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.chart-card { min-height: 360px; }
.chart-wrap { padding: 12px 16px 18px; height: 300px; }

/* Today's Performance panel */
.today-card {
  margin-bottom: 22px;
  border-left: 6px solid rgba(148, 163, 255, 0.35);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.today-card.positive {
  border-left-color: var(--green);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.10), var(--bg-elevated));
}

.today-card.negative {
  border-left-color: var(--red);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.10), var(--bg-elevated));
}

.today-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.today-summary::-webkit-details-marker { display: none; }

.section-icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.5em;
  vertical-align: -0.18em;
  opacity: 0.9;
}

.today-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.today-change {
  margin-left: auto;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 255, 0.14);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.today-card.positive .today-change {
  background: rgba(52, 211, 153, 0.18);
  color: var(--green);
}

.today-card.negative .today-change {
  background: rgba(248, 113, 113, 0.18);
  color: var(--red);
}

.today-body {
  padding: 0 20px 20px;
}

.today-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.today-metric {
  margin: 0;
}

.today-metric .value {
  font-size: 1.35rem;
}

.today-movers {
  margin-top: 10px;
}

.today-movers h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.today-movers .movers-grid {
  padding: 0;
  gap: 32px;
}

.today-movers .movers-panel {
  padding: 16px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 14px;
}

/* Ticker bar */
.ticker-bar {
  width: 100%;
  overflow: hidden;
  background: rgba(11, 16, 32, 0.75);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding: 10px 0;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding-left: 100%;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.ticker-label {
  font-weight: 700;
  color: #c7d2fe;
}

.ticker-price {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}

.ticker-change {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; padding: 8px 8px 12px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(148, 163, 255, 0.1);
  font-size: 0.92rem;
}
th {
  color: var(--muted); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.symbol {
  font-weight: 700; color: #dbe7ff;
  background: linear-gradient(135deg, rgba(79,124,255,0.18), rgba(139,92,246,0.18));
  border: 1px solid rgba(148,163,255,0.18);
  padding: 4px 8px; border-radius: 8px; display: inline-block;
}
.name { color: var(--muted); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
tbody tr:hover { background: rgba(79, 124, 255, 0.06); }

.footer {
  margin-top: 18px; display: flex; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 0.84rem; flex-wrap: wrap;
}

.toast {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  background: linear-gradient(135deg, rgba(79,124,255,0.95), rgba(139,92,246,0.95));
  color: white; padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow); font-weight: 600;
}
.toast.hidden { display: none; }
.toast.error { background: linear-gradient(135deg, #ef4444, #b91c1c); }

@media (max-width: 980px) {
  .summary-grid, .charts-grid { grid-template-columns: 1fr 1fr; }
  .movers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .summary-grid, .charts-grid { grid-template-columns: 1fr; }
  .movers-columns { grid-template-columns: 1fr; }
  .metric .value { font-size: 1.25rem; }
  .app { padding: 18px 14px 36px; }
}
