:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #22263a;
  --border: #2d3148;
  --accent: #4f8ef7;
  --accent-dim: rgba(79,142,247,0.15);
  --text: #e8eaf6;
  --muted: #8892b0;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  padding: 20px 24px 0;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
header h1 span { color: var(--accent); }
header p { color: var(--muted); margin-top: 4px; font-size: 0.88rem; }
.counter-text { color: var(--accent); }

.header-auth { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.auth-link {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.auth-link:hover { border-color: var(--accent); color: var(--accent); }
.auth-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.auth-link.primary:hover { opacity: 0.85; }
.auth-name { font-size: 0.85rem; color: var(--text); }

/* ── Premium badge (header) ── */
.premium-header-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(236,72,153,0.15));
  color: #c084fc;
  border: 1px solid rgba(167,139,250,0.35);
  letter-spacing: 0.04em;
}

/* ── AI Analysis card ── */
.ai-analysis-card {
  background: linear-gradient(135deg, rgba(167,139,250,0.07), rgba(79,142,247,0.05));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}
.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ai-analysis-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.premium-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(236,72,153,0.15));
  color: #c084fc;
  border: 1px solid rgba(167,139,250,0.35);
  letter-spacing: 0.04em;
}
.ai-analyze-btn {
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(79,142,247,0.15));
  border: 1px solid rgba(167,139,250,0.4);
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.ai-analyze-btn:hover { opacity: 0.85; }
.ai-analyze-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-pdf-btn {
  background: transparent;
  border: 1px solid rgba(167,139,250,0.4);
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.ai-pdf-btn:hover { background: rgba(167,139,250,0.1); }
.ai-pdf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-analysis-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}
.ai-analysis-text h3 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c084fc;
  margin: 20px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(167,139,250,0.2);
}
.ai-analysis-text h3:first-child { margin-top: 0; }
.ai-analysis-text p {
  color: var(--muted);
  margin-bottom: 8px;
}
.ai-analysis-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-analysis-text ul li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.ai-analysis-text ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: #c084fc;
  font-weight: 700;
}
.ai-analysis-text strong { color: var(--text); }
.ai-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ai-cache-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.ai-cache-badge.fresh {
  background: rgba(74,222,128,0.08);
  color: var(--green);
  border-color: rgba(74,222,128,0.25);
}
.ai-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(192,132,252,0.3);
  border-top-color: #c084fc;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.admin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(251,191,36,0.15);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.3);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.admin-badge:hover { background: rgba(251,191,36,0.25); }

/* ── Admin modal stats ── */
.admin-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.admin-stat-row:last-child { border-bottom: none; }
.admin-stat-label { font-size: 0.9rem; color: var(--muted); }
.admin-stat-value { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.admin-user-row:last-child { border-bottom: none; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-email { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.admin-role-badge.is-admin {
  background: rgba(251,191,36,0.15);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.3);
}
.admin-role-badge.is-user {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.admin-role-badge.is-premium {
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(236,72,153,0.15));
  color: #c084fc;
  border: 1px solid rgba(167,139,250,0.35);
}
.admin-role-badge.is-refresh {
  background: rgba(79,142,247,0.12);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
}
.admin-toggle-btn {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.admin-toggle-btn.promote { color: var(--amber); border-color: rgba(251,191,36,0.4); }
.admin-toggle-btn.promote:hover { background: rgba(251,191,36,0.1); }
.admin-toggle-btn.demote  { color: var(--red);  border-color: rgba(248,113,113,0.4); }
.admin-toggle-btn.demote:hover  { background: rgba(248,113,113,0.08); }

/* ── Auth modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.modal-tab {
  flex: 1; padding: 10px 0;
  background: none; border: none;
  color: var(--muted); font-size: 0.95rem;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.15s;
}
.modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.auth-form input {
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text); font-size: 0.95rem; outline: none;
  transition: border-color 0.15s;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-submit {
  padding: 11px; background: var(--accent); color: #fff;
  border: none; border-radius: 6px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-error { font-size: 0.82rem; color: var(--red); min-height: 18px; }

/* ── Main ── */
main { flex: 1; max-width: 1160px; margin: 0 auto; width: 100%; padding: 32px 20px 48px; }

/* ── Two-column layout ── */
.layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.layout-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.layout-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 780px) {
  .layout { flex-direction: column-reverse; }
  .layout-sidebar { width: 100%; }
}

/* ── Search card ── */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}


.input-row {
  display: flex;
  gap: 10px;
}
#ticker-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
#ticker-input:focus { border-color: var(--accent); }
#ticker-input::placeholder { color: var(--muted); }

#analyze-btn {
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  position: relative;
}
#analyze-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#analyze-btn.loading::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ── Error ── */
#error-section {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--red);
  margin-bottom: 20px;
  display: none;
}

/* ── Results ── */
#results-section { display: none; }

.result-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.result-name { font-size: 1.2rem; font-weight: 700; }
.result-ticker {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.cached-badge {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.score-big {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.score-denom { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.stars { font-size: 1.4rem; letter-spacing: 2px; }
.rating-text { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

.total-bar-wrap { margin-top: 16px; }
.bar-track {
  height: 10px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.7s cubic-bezier(0.16,1,0.3,1);
}
.bar-fill.green { background: var(--green); }
.bar-fill.amber { background: var(--amber); }
.bar-fill.red   { background: var(--red); }

/* ── Categories ── */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 580px) { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
}
.category-label { font-weight: 600; font-size: 0.9rem; }
.category-score { font-size: 0.85rem; color: var(--muted); }

.cat-bar-wrap { padding: 0 16px 12px; }

details.metrics-detail summary {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  border-top: 1px solid var(--border);
  user-select: none;
}
details.metrics-detail summary::before {
  content: "▶  ";
  font-size: 0.65rem;
  transition: transform 0.15s;
  display: inline-block;
}
details.metrics-detail[open] summary::before { transform: rotate(90deg); }

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  padding: 0 16px 12px;
  display: table;
}
.metrics-table td { padding: 5px 16px; color: var(--muted); vertical-align: middle; }
.metrics-table td:first-child { color: var(--text); }
.metrics-table td:last-child { text-align: right; white-space: nowrap; }
.mini-score {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface2);
}

/* ── Most Searched ── */
#top-section { }

.top-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-col-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.top-item:last-child { border-bottom: none; }
.top-item:hover { background: var(--surface2); }

.top-rank {
  font-size: 0.7rem;
  color: var(--muted);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
}
.top-ticker {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 44px;
  flex-shrink: 0;
}
.top-name {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-score {
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.top-count {
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Watchlist ── */
#watchlist-section { }

.watchlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.watchlist-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wl-clear-btn {
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.wl-clear-btn:hover { color: var(--red); }

.watchlist-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}
.wl-card:hover { border-color: var(--accent); }

.wl-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.wl-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}
.wl-remove-btn:hover { color: var(--red); }

.wl-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.wl-ticker-badge {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 3px;
}
.wl-type-badge {
  font-size: 0.68rem;
  color: var(--muted);
}
.wl-score-text {
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: auto;
}

.wl-bar-track {
  height: 5px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.wl-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}
.wl-bar-fill.green { background: var(--green); }
.wl-bar-fill.amber { background: var(--amber); }
.wl-bar-fill.red   { background: var(--red); }

.wl-stars {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--amber);
  margin-top: 7px;
}

/* Add/remove watchlist toggle button */
.wl-toggle-btn {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.wl-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.wl-toggle-btn.in-list {
  border-color: var(--green);
  color: var(--green);
  background: rgba(74,222,128,0.08);
}

/* ── Portfolio ── */
.accent-btn { color: var(--accent) !important; }

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  cursor: pointer;
  transition: border-color 0.15s;
  margin-bottom: 8px;
}
.portfolio-card:hover { border-color: var(--accent); }
.portfolio-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.portfolio-card-name { font-size: 0.85rem; font-weight: 600; color: var(--text); flex: 1; }
.portfolio-card-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.portfolio-card-score { font-size: 0.78rem; font-weight: 600; }

.portfolio-score-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.portfolio-score-label { font-size: 0.78rem; color: var(--muted); }
.portfolio-score-value { font-size: 1rem; font-weight: 700; color: var(--accent); }

.portfolio-holding-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.portfolio-holding-row:last-child { border-bottom: none; }
.ph-ticker { font-weight: 700; color: var(--accent); width: 44px; flex-shrink: 0; }
.ph-name   { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-alloc  { width: 38px; text-align: right; flex-shrink: 0; color: var(--text); }
.ph-score  { width: 44px; text-align: right; flex-shrink: 0; font-weight: 600; }
.ph-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 0 2px; flex-shrink: 0; }
.ph-remove:hover { color: var(--red); }

.alloc-input {
  width: 46px; padding: 3px 5px; text-align: right;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-size: 0.8rem; outline: none;
}
.alloc-input:focus { border-color: var(--accent); }
.alloc-sum-hint { font-size: 0.75rem; margin: 6px 0 4px; text-align: right; }
.alloc-sum-ok  { color: var(--green); }
.alloc-sum-err { color: var(--red); }

.optimize-score-compare {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 10px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.opt-score-box  { text-align: center; }
.opt-score-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.opt-score-num  { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.opt-score-num.green { color: var(--green); }
.opt-arrow      { font-size: 1.2rem; color: var(--muted); }

.optimize-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 0.78rem;
}
.optimize-row:last-child { border-bottom: none; }
.opt-ticker  { font-weight: 700; color: var(--accent); width: 44px; flex-shrink: 0; }
.opt-current { width: 40px; text-align: right; color: var(--muted); flex-shrink: 0; }
.opt-arrow-sm { color: var(--muted); flex-shrink: 0; }
.opt-new     { width: 40px; text-align: right; font-weight: 600; color: var(--green); flex-shrink: 0; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
