/* ── Reset & tokens ──────────────────────────────────────────────────── */
:root {
  --bg:      #0f172a;
  --panel:   #1e293b;
  --panel2:  #263248;
  --line:    #334155;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --accent:  #f59e0b;
  --up:      #22c55e;
  --dn:      #ef4444;
  --blue:    #3b82f6;
  --radius:  8px;
  --shadow:  0 2px 8px rgba(0,0,0,.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column;
  outline: none;
}
/* Slightly larger on desktop — equivalent to ~110% browser zoom so the
   dashboard is comfortable to read at 100%. Mobile keeps its own scale. */
@media (min-width: 769px) {
  body { zoom: 1.1; }
}

/* ── Header / nav ─────────────────────────────────────────────────────── */
:root { --header-h: 53px; }
header {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
}
.brand { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 17px; white-space: nowrap; }
nav { display: flex; gap: 6px; margin-left: auto; }
nav a {
  color: var(--muted); text-decoration: none; padding: 6px 12px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--panel2); color: var(--text); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); padding: 6px 10px; border-radius: var(--radius);
  cursor: pointer; font-size: 16px; margin-left: auto;
}

/* ── Nav "Más" dropdown ───────────────────────────────────────────── */
.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; color: var(--muted);
  padding: 6px 12px; border-radius: var(--radius); font-size: 13px;
  font-weight: 500; user-select: none; white-space: nowrap;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { background: var(--panel2); color: var(--text); }
.nav-more.more-active summary { color: var(--accent); }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 200;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 170px; padding: 6px;
}
.nav-more-menu a { padding: 8px 12px !important; }

/* ── Layout ───────────────────────────────────────────────────────────── */
main { flex: 1; padding: 20px; max-width: 1400px; width: 100%; margin: 0 auto; }
footer { text-align: center; color: var(--muted); padding: 16px; font-size: 12px; border-top: 1px solid var(--line); }

/* ── Typography helpers ───────────────────────────────────────────────── */
h1 { font-size: 20px; font-weight: 700; }
h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 20px 0 10px; }
.muted  { color: var(--muted); }
.mono   { font-family: ui-monospace, "Cascadia Code", monospace; }
.up     { color: var(--up); }
.dn     { color: var(--dn); }
a       { color: var(--accent); }
code    { background: var(--panel2); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.empty  { color: var(--muted); padding: 40px 0; text-align: center; }
.back   { color: var(--muted); text-decoration: none; font-size: 13px; }

/* ── Score badges ─────────────────────────────────────────────────────── */
.score {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-weight: 700; font-size: 12px; white-space: nowrap;
}
.score-BUYNOW       { background: #14532d; color: #86efac; border: 1px solid #16a34a; }
.score-WATCHCLOSELY { background: #78350f; color: #fde68a; border: 1px solid #d97706; }
.score-MODERATE     { background: #0c4a6e; color: #7dd3fc; border: 1px solid #0284c7; }
.score-IGNORE       { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }

.signal-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.signal-BUYNOW       { background: #14532d; color: #86efac; }
.signal-WATCHCLOSELY { background: #78350f; color: #fde68a; }
.signal-MODERATE     { background: #0c4a6e; color: #7dd3fc; }
.signal-IGNORE       { background: var(--panel2); color: var(--muted); }

/* ── Releases panel (collapsible on index) ────────────────────────────── */
.releases-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 20px;
}
.releases-panel summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  cursor: pointer; list-style: none; user-select: none;
}
.releases-panel summary::-webkit-details-marker { display: none; }
.releases-title { font-weight: 700; font-size: 14px; }
.releases-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.releases-count a { color: var(--accent); text-decoration: none; }

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.release-card {
  background: var(--panel2); border-radius: var(--radius); padding: 10px 12px;
  border-left: 3px solid var(--line);
}
.release-card.future { border-left-color: var(--accent); }
.release-date { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.release-date.upcoming { color: var(--accent); }
.release-date.released { color: var(--muted); }
.release-name { font-size: 13px; font-weight: 600; }
.release-series { font-size: 11px; margin-top: 3px; }

/* ── Filters bar ──────────────────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px;
}
.filter-search {
  flex: 1; min-width: 160px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); padding: 6px 10px; border-radius: var(--radius); font-size: 13px;
}
.filter-search:focus { outline: none; border-color: var(--accent); }
.filters select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 6px 8px; border-radius: var(--radius); font-size: 13px; cursor: pointer;
}
.price-range {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 8px;
}
.price-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.price-sep   { color: var(--muted); font-size: 12px; }
.price-input {
  width: 72px; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; padding: 2px 4px;
}
.price-input::placeholder { color: var(--muted); }
/* hide browser number spinners */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-input[type=number] { -moz-appearance: textfield; }

.btn-filter, .btn-reset {
  padding: 6px 14px; border-radius: var(--radius); font-size: 13px;
  font-weight: 600; cursor: pointer; text-decoration: none; border: none;
}
.btn-filter { background: var(--accent); color: #000; }
.btn-reset  { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }

/* ── Budget presets ───────────────────────────────────────────────────── */
.budget-presets {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.btn-budget {
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line);
  background: var(--panel2); color: var(--muted);
  transition: background .15s, color .15s;
}
.btn-budget:hover, .btn-budget.active {
  background: var(--accent); color: #000; border-color: var(--accent);
}

/* ── Sort tabs ────────────────────────────────────────────────────────── */
.sort-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.sort-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line);
  background: var(--panel2); color: var(--muted);
  transition: background .15s, color .15s;
}
.sort-tab:hover { background: var(--panel); color: var(--text); }
.sort-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* Sortable column headers */
th.sortable:hover { color: var(--accent); }
th.sort-active    { color: var(--accent) !important; }

/* ── Results header ───────────────────────────────────────────────────── */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.score-legend { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Main table ───────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
table.ranking { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ranking th {
  background: var(--panel); color: var(--muted); font-weight: 600; font-size: 12px;
  padding: 9px 10px; text-align: left; white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
table.ranking th.num { text-align: right; }
table.ranking td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.ranking td.num { text-align: right; }
table.ranking tr:last-child td { border-bottom: none; }
table.ranking tr:hover { background: var(--panel2); }
table.ranking a { color: var(--text); text-decoration: none; font-weight: 500; }
table.ranking a:hover { color: var(--accent); }

.card-name { max-width: 180px; }
.set-name  { display: block; font-size: 12px; }
.series-tag { display: block; font-size: 11px; color: var(--muted); }
.rarity-tag { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lang-tag   { font-size: 11px; font-weight: 700; color: var(--muted); }
.reasons    { font-size: 11px; color: var(--accent); max-width: 220px; }

/* signal row highlight */
.row-BUYNOW td:first-child { border-left: 3px solid var(--up); }
.row-WATCHCLOSELY td:first-child { border-left: 3px solid var(--accent); }

/* ── Pagination ───────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.page-btn {
  padding: 6px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.page-btn:hover { background: var(--panel2); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.page-info { margin-left: auto; font-size: 12px; }

/* ── Card detail ──────────────────────────────────────────────────────── */
.card-detail { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.card-image img { width: 240px; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.card-image .no-image {
  width: 240px; height: 336px; background: var(--panel); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 40px;
}
.card-info { flex: 1; min-width: 260px; }
.card-info h1 { font-size: 22px; margin-bottom: 4px; }
.card-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.score-line { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 16px; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.stat-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px;
}
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 18px; font-weight: 700; margin-top: 2px; font-family: ui-monospace, monospace; }
.stat-value.up { color: var(--up); }
.stat-value.dn { color: var(--dn); }

.reasons-box { background: var(--panel2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-size: 13px; color: var(--accent); }
/* ── Alerts widget (home) — visual card grid ──────────────────────── */
.alerts-widget {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px;
  /* overflow visible so the legend popover isn't clipped by this container */
}
.alerts-widget summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer; list-style: none;
}
.alerts-widget summary::-webkit-details-marker { display: none; }
.aw-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.aw-badge { background: var(--accent); color: #000; font-size: 11px; font-weight: 800;
  padding: 1px 6px; border-radius: 10px; }
.aw-link { color: var(--accent); font-size: 12px; text-decoration: none; }

/* Card grid */
.aw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line);
}
.aw-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .12s, box-shadow .12s;
}
.aw-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }

/* Levels — background tint + border */
.aw-buy  { background: #0d2010; border-color: #22c55e; }
.aw-watch{ background: #1f1800; border-color: #d97706; }
.aw-arb  { background: #0a1628; border-color: #3b82f6; }
.aw-info { background: var(--panel2); border-color: var(--line); }

.aw-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.aw-action-badge {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px;
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.aw-badge-buy   { background: #14532d; color: #86efac; border: 1px solid #22c55e; }
.aw-badge-watch { background: #451a03; color: #fde68a; border: 1px solid #d97706; }
.aw-badge-arb   { background: #0c1e3f; color: #93c5fd; border: 1px solid #3b82f6; }
.aw-badge-info  { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }

.aw-score {
  font-size: 14px; font-weight: 900; font-family: ui-monospace, monospace;
  padding: 0 5px; border-radius: 4px; flex-shrink: 0;
}
.aw-score-buy   { color: #4ade80; }
.aw-score-watch { color: #fbbf24; }
.aw-score-mod   { color: #60a5fa; }

.aw-card-name {
  font-weight: 700; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.aw-buy  .aw-card-name { color: #bbf7d0; }
.aw-watch .aw-card-name { color: #fef3c7; }
.aw-arb  .aw-card-name { color: #bfdbfe; }

.aw-metric { font-size: 11px; color: var(--muted); line-height: 1.3; }
.aw-buy  .aw-metric { color: #86efac; }
.aw-watch .aw-metric { color: #fde68a; }
.aw-arb  .aw-metric { color: #93c5fd; }

@media (max-width: 768px) {
  .aw-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .aw-action-badge { font-size: 9px; }
}
@media (max-width: 400px) {
  .aw-grid { grid-template-columns: 1fr; }
}

/* ── Alerts legend popover (home widget + /alerts) ─────────────────── */
.aw-summary-actions { display: flex; align-items: center; gap: 12px; }
.legend-wrap { position: relative; display: inline-flex; }
.legend-btn {
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  cursor: pointer; white-space: nowrap; transition: color .12s, border-color .12s;
}
.legend-btn:hover { color: var(--text); border-color: var(--accent); }

.legend-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: 290px; max-width: 86vw;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  padding: 12px 14px; display: none; flex-direction: column; gap: 10px;
  text-align: left; cursor: default;
}
/* Invisible bridge over the 8px gap so moving the mouse from the button
   onto the popover keeps :hover active (popover doesn't vanish). */
.legend-pop::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.legend-wrap:hover .legend-pop,
.legend-wrap:focus-within .legend-pop,
.legend-wrap.open .legend-pop { display: flex; }

.legend-head { font-size: 12px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.legend-key { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legend-key-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 1px solid; }
.lk-buy   { background: #14532d; border-color: #22c55e; }
.lk-watch { background: #451a03; border-color: #d97706; }
.lk-arb   { background: #0c1e3f; border-color: #3b82f6; }
.lk-info  { background: var(--panel2); border-color: var(--line); }

.legend-rows { display: flex; flex-direction: column; gap: 6px; }
.legend-row { display: flex; align-items: flex-start; gap: 8px; padding: 4px 8px; border-radius: 6px; border-left: 3px solid; }
.legend-row.lr-buy   { background: #0d2010; border-color: #22c55e; }
.legend-row.lr-watch { background: #1f1800; border-color: #d97706; }
.legend-row.lr-arb   { background: #0a1628; border-color: #3b82f6; }
.legend-row.lr-info  { background: var(--panel2); border-color: var(--line); }
.legend-icon { font-size: 14px; flex-shrink: 0; line-height: 1.4; }
.legend-text { font-size: 11px; color: var(--muted); line-height: 1.35; }
.legend-text strong { display: block; color: var(--text); font-size: 12px; font-weight: 700; }

.alerts-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 768px) {
  .legend-pop { width: 260px; }
}

/* ── Alerts full page ─────────────────────────────────────────────── */
.alerts-header { margin-bottom: 16px; }
.alerts-filter {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 16px;
}
.alerts-filter select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 6px 8px; border-radius: var(--radius); font-size: 13px;
}

.alert-summary {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.alert-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.alert-chip strong { color: var(--accent); }

.alerts-date-header {
  font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; padding: 12px 0 6px; border-top: 1px solid var(--line);
  margin-top: 4px;
}
.alerts-date-header:first-child { border-top: none; margin-top: 0; }

.alert-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 6px;
}
.alert-card-icon { font-size: 18px; flex-shrink: 0; }
.alert-card-body { flex: 1; }
.alert-card-msg { font-size: 14px; margin-bottom: 3px; }
.alert-card-msg a { color: var(--text); text-decoration: none; font-weight: 600; }
.alert-card-msg a:hover { color: var(--accent); }
.alert-card-meta { font-size: 11px; }
.alert-type-tag { color: var(--muted); }

/* ── Toast / flash message ─────────────────────────────────────────── */
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: 14px; font-weight: 600; animation: fadeInDown .3s ease;
}
.toast a { color: inherit; opacity: .85; }
.toast-ok   { background: #14532d; border: 1px solid #22c55e; color: #86efac; }
.toast-info { background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-watch {
  padding: 7px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: all .15s; margin-bottom: 10px;
}
.btn-watch:hover { border-color: var(--accent); color: var(--accent); }
.btn-watch.active {
  background: #1a2f1a; border-color: var(--up); color: var(--up);
}
.btn-watch.active:hover { background: #2d1a1a; border-color: var(--dn); color: var(--dn); }

/* star badge on highlights cards */
.watch-dot {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #000;
  font-size: 12px; font-weight: 900; width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.card-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-links a {
  padding: 7px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; transition: background .15s;
}
.card-links a:hover { background: var(--panel2); color: var(--accent); }

.chart-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 20px; overflow: hidden; }
.chart-wrap canvas { display: block; width: 100% !important; }
.chart-wrap h2 { margin-top: 0; margin-bottom: 12px; }

.alert-list { list-style: none; }
.alert-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

.related-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.related-chip {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 5px 10px; font-size: 12px; text-decoration: none; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.related-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── Releases full page ───────────────────────────────────────────────── */
.releases-header { margin-bottom: 16px; }
.rel-section { margin-bottom: 28px; }
.rel-section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.upcoming-label { color: var(--accent); }
.releases-full-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.rel-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; border-left: 3px solid var(--line);
}
.rel-card.future { border-left-color: var(--accent); }
.rel-date { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.rel-date.upcoming { color: var(--accent); }
.rel-date.released { color: var(--muted); }
.rel-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rel-meta { font-size: 12px; }

/* ── Watchlist ────────────────────────────────────────────────────────── */
.watchlist-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.watchlist-empty code { font-size: 13px; }

/* ── Mobile responsive ────────────────────────────────────────────────── */
/* ── Mobile filters toggle ─────────────────────────────────────────── */
.filters-toggle { display: none; }
.filter-active-dot { color: var(--accent); font-size: 10px; }
.filters-toggle-count { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; }

@media (max-width: 768px) {
  header { padding: 10px 14px; gap: 10px; }
  .menu-toggle { display: block; }
  header nav {
    display: none; flex-direction: column; position: absolute;
    top: 53px; left: 0; right: 0; background: var(--panel);
    border-bottom: 1px solid var(--line); padding: 8px 14px; gap: 4px; z-index: 99;
  }
  header nav.open { display: flex; }
  header nav a { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }

  /* "Más" inline en el menú móvil (sin dropdown flotante) */
  .nav-more-menu {
    position: static; border: none; box-shadow: none; background: none;
    padding: 0 0 0 12px; min-width: 0;
  }
  .nav-more summary { padding: 10px 14px; font-size: 14px; }

  /* Pagination nav must stay horizontal on mobile */
  nav.pagination {
    display: flex; flex-direction: row; flex-wrap: wrap;
    justify-content: center; gap: 6px;
    position: static; background: none; border: none; padding: 0;
  }

  main { padding: 10px; }

  /* ── Collapsible filters ── */
  .filters-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text); padding: 10px 14px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 8px;
  }
  .filters { display: none; flex-direction: column; gap: 8px; padding: 12px; }
  .filters.open { display: flex; }
  .filter-search { min-width: 100%; }
  .filters select, .filters .price-range { width: 100%; }
  .price-range { width: 100%; }
  .price-input { flex: 1; }
  .btn-filter, .btn-reset {
    flex: 1; text-align: center; padding: 10px; font-size: 14px;
  }

  .results-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .score-legend { display: none; }

  /* ── Mobile ranking: stacked card rows instead of wide table ── */
  .table-wrap { border: none; border-radius: 0; overflow-x: visible; }

  /* Hide the regular table on mobile */
  table.ranking { display: none; }

  /* Show mobile card list (injected below) */
  .mobile-list { display: flex; flex-direction: column; gap: 8px; }

  /* Card detail stack */
  .card-detail { flex-direction: column; align-items: center; }
  .card-image { width: 100%; display: flex; justify-content: center; }
  .card-image img { max-width: 280px; width: 100%; height: auto; margin: 0 auto; display: block; }
  .card-image .no-image { width: 280px; height: 390px; }
  .card-info { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .releases-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .releases-full-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .pagination { gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
  .page-btn { padding: 8px 12px; font-size: 14px; }
  .page-info { width: 100%; text-align: center; margin-top: 4px; }
}

/* ── Mobile stacked row card ───────────────────────────────────────── */
.m-row {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: none; /* hidden on desktop */
  text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.m-row:hover { border-color: var(--accent); }
.m-row.BUYNOW     { border-left: 4px solid var(--up); }
.m-row.WATCHCLOSELY { border-left: 4px solid var(--accent); }
.m-row.MODERATE   { border-left: 4px solid var(--blue); }

.m-row-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.m-row-thumb {
  width: 42px; height: 58px; object-fit: cover; border-radius: 4px;
  flex-shrink: 0; background: #0a1628;
}
.m-row-name  { font-weight: 700; font-size: 15px; }
.m-row-set   { font-size: 11px; color: var(--muted); margin-top: 2px; }
.m-row-right { text-align: right; flex-shrink: 0; }
.m-row-price { font-size: 16px; font-weight: 800; font-family: ui-monospace, monospace; }
.m-row-score { display: inline-block; margin-top: 4px; }

.m-row-stats {
  display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line);
  padding-top: 8px; margin-top: 2px;
}
.m-stat {
  background: var(--panel2); border-radius: 4px; padding: 3px 8px;
  font-size: 12px; font-weight: 600; font-family: ui-monospace, monospace;
}
.m-stat-label { font-weight: 400; color: var(--muted); margin-right: 3px; font-family: system-ui; }

@media (max-width: 768px) {
  .m-row { display: block; }
}

/* ── Static site additions (Plan 2) ───────────────────────────────────── */

/* Inline watch button in table */
.watch-inline {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; padding: 0 2px;
  vertical-align: middle; transition: color .15s;
}
.watch-inline:hover, .watch-inline.active { color: var(--accent); }

/* Alerts filter bar */
.alerts-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.alerts-filter-bar select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 10px; font-size: 13px;
}

/* Alert row cards */
.alert-row {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center;
}
.alert-row.alert-level-buy   { border-left: 3px solid var(--up); }
.alert-row.alert-level-watch { border-left: 3px solid var(--accent); }
.alert-row.alert-level-arb   { border-left: 3px solid var(--blue); }
.alert-row.alert-level-info  { border-left: 3px solid var(--muted); }

.alert-row-left  { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.alert-row-body  { display: flex; flex-direction: column; gap: 2px; }
.alert-row-right { text-align: right; }

.alert-type-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px; width: fit-content;
}
.badge-buy   { background: rgba(34,197,94,.15); color: var(--up); }
.badge-watch { background: rgba(245,158,11,.15); color: var(--accent); }
.badge-arb   { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-info  { background: rgba(148,163,184,.10); color: var(--muted); }

.alert-card-name { font-weight: 700; color: var(--text); text-decoration: none; }
.alert-card-name:hover { color: var(--accent); }
.alert-msg { font-size: 12px; color: var(--muted); }
.alert-date { font-size: 11px; color: var(--muted); }

@media (max-width: 600px) {
  .alert-row { grid-template-columns: 1fr; }
  .alert-row-left { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Highlights & Reprint Radar sections ──────────────────────────────── */
.hl-section { margin-bottom: 2rem; }
.hl-section h2 { margin-bottom: .75rem; }
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.hl-grid .m-row { display: block !important; }

/* Full releases calendar grid */
.releases-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: .5rem;
}

/* ── Highlights / Reprint Radar card grid (v11) ───────────────────────── */
.hl-hero { text-align:center; padding:24px 0 8px; }
.hl-hero h1 { font-size:26px; margin-bottom:4px; }
.hl-hero p  { color:var(--muted); font-size:13px; }

.hl-tabs { display:flex; gap:8px; justify-content:center; margin:20px 0 8px; flex-wrap:wrap; }
.hl-tab  {
  padding:8px 22px; border-radius:20px; font-size:13px; font-weight:600;
  background:var(--panel); border:1px solid var(--line); color:var(--muted);
  text-decoration:none; cursor:pointer; transition:all .15s;
}
.hl-tab.active { background:var(--accent); border-color:var(--accent); color:#000; }

.hl-section { margin-bottom:40px; }
.hl-section-title {
  display:flex; align-items:center; gap:10px;
  font-size:18px; font-weight:700; margin-bottom:16px;
  border-left:4px solid var(--accent); padding-left:12px;
}
.hl-section-sub { color:var(--muted); font-size:13px; font-weight:400; }

.cards-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:16px;
}

.opp-card {
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; text-decoration:none; color:var(--text);
  transition:transform .15s, border-color .15s, box-shadow .15s;
  display:flex; flex-direction:column;
}
.opp-card:hover {
  transform:translateY(-3px);
  border-color:var(--accent);
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.opp-card.BUYNOW      { border-top:3px solid #22c55e; }
.opp-card.WATCHCLOSELY{ border-top:3px solid var(--accent); }
.opp-card.MODERATE    { border-top:3px solid var(--blue); }

.opp-img-wrap {
  position:relative; background:#0a1628;
  aspect-ratio:3/4.2; overflow:hidden;
}
.opp-img-wrap img {
  width:100%; height:100%; object-fit:cover;
  display:block; transition:transform .3s;
}
.opp-card:hover .opp-img-wrap img { transform:scale(1.04); }
.no-img-placeholder {
  width:100%; height:100%; display:flex; align-items:center;
  justify-content:center; font-size:48px; color:var(--line);
}
.opp-badge {
  position:absolute; top:8px; right:8px;
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px;
}
.badge-BUYNOW        { background:#14532d; color:#86efac; }
.badge-WATCHCLOSELY  { background:#78350f; color:#fde68a; }
.badge-MODERATE      { background:#0c4a6e; color:#7dd3fc; }
.badge-IGNORE        { background:#1e293b; color:#64748b; }

.watch-dot {
  position:absolute; top:8px; left:8px;
  color:var(--accent); font-size:16px;
}

.opp-body { padding:12px; flex:1; display:flex; flex-direction:column; gap:4px; }
.opp-name   { font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.opp-set    { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.opp-rarity { font-size:11px; color:var(--muted); }

.opp-stats { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.opp-stat  {
  background:var(--panel2); border-radius:4px; padding:3px 7px;
  font-size:11px; font-weight:600; font-family:ui-monospace,monospace;
}
.opp-stat.up  { color:var(--up); }
.opp-stat.dn  { color:var(--dn); }
.opp-stat.neu { color:var(--muted); }

.opp-price {
  margin-top:auto; padding-top:8px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center;
}
.opp-price-val  { font-size:16px; font-weight:700; font-family:ui-monospace,monospace; }
.opp-score-mini { font-size:11px; padding:2px 6px; border-radius:4px; font-weight:700; }

@media (max-width:600px) {
  .cards-grid { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
  .opp-price-val { font-size:14px; }
}

/* ── Informes (reports) ───────────────────────────────────────────────── */
.rep-list { display: flex; flex-direction: column; gap: 10px; }
.rep-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.rep-item:hover { border-color: var(--accent); }
.rep-item-title { font-weight: 700; font-size: 16px; }
.rep-item-date  { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.rep-item-summary { font-size: 13px; color: var(--muted); }

.rep-intro {
  background: var(--panel); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px;
  color: var(--text); margin-bottom: 20px;
}
.rep-section { margin-bottom: 26px; }
.rep-section-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rep-section-note  { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.rep-card {
  display: flex; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.rep-card:hover { border-color: var(--accent); }
.rep-card-img { flex-shrink: 0; width: 72px; }
.rep-card-img img { width: 72px; height: 100px; object-fit: cover; border-radius: 6px; background: #0a1628; }
.rep-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rep-card-name  { font-weight: 700; font-size: 14px; }
.rep-card-set   { font-size: 11px; color: var(--muted); }
.rep-card-price { font-size: 15px; font-weight: 700; font-family: ui-monospace, monospace; }
.rep-card-why   { font-size: 12px; color: var(--muted); margin-top: auto; }
.rep-max-buy {
  font-size: 12px; color: var(--up); background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.35); border-radius: 5px;
  padding: 3px 8px; width: fit-content;
}
.rep-max-buy strong { font-family: ui-monospace, monospace; }

/* Veredicto de compra por idioma (ES/EN/JP) */
.rep-langs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.rep-lang-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.rep-lang-name { min-width: 78px; }
.rep-lang-why { color: #64748b; }
.rep-lang-row.lv-yes   .rep-lang-name { color: #6ee7b7; }
.rep-lang-row.lv-no    .rep-lang-name { color: #fca5a5; }
.rep-lang-row.lv-maybe .rep-lang-name { color: #fde68a; }
/* Galería: chips compactos bandera+símbolo */
.rep-gcard-langs { display: flex; gap: 6px; font-size: 12px; margin-top: 2px; }

/* Links de CardMarket por idioma — en reportCard, galleryCard y feria */
.rep-cm-links { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.rep-cm-links a {
  font-size: 11px; padding: 3px 8px; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.rep-cm-links a:hover { border-color: var(--accent); color: var(--accent); }

.rep-tips { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Galería: fotos grandes, 2 columnas en móvil, 4 en escritorio */
.rep-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rep-gcard {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px;
  text-decoration: none; color: var(--text); transition: border-color .15s;
}
.rep-gcard:hover { border-color: var(--accent); }
.rep-gcard-img img {
  width: 100%; aspect-ratio: 63 / 88; object-fit: cover;
  border-radius: 8px; background: #0a1628; display: block;
}
.rep-gcard-img .no-img-placeholder {
  width: 100%; aspect-ratio: 63 / 88; display: flex; align-items: center;
  justify-content: center; font-size: 32px; background: #0a1628; border-radius: 8px;
}
.rep-gcard-name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.rep-gcard-set  { font-size: 11px; color: var(--muted); }
.rep-gcard-buy  {
  font-size: 13px; font-weight: 700; color: var(--up);
  font-family: ui-monospace, monospace; margin-top: auto;
}

@media (max-width: 600px) {
  .rep-grid { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
  .rep-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ── Bulk evaluator (v12) ──────────────────────────────────────────────── */
.bulk-textarea {
  width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; font: 13px/1.5 ui-monospace, monospace; resize: vertical;
}
.bulk-actions { display: flex; gap: 8px; margin: 10px 0 18px; }
.bulk-summary {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 12px; font-size: 14px;
}
.bulk-summary .v-buy { color: var(--up); font-weight: 700; }
.bulk-input-cell { color: var(--muted); font-size: 12px; max-width: 240px; word-break: break-all; }
.bulk-verdict { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.v-buy   { background: rgba(34,197,94,.15);  color: var(--up); }
.v-watch { background: rgba(245,158,11,.15); color: var(--accent); }
.v-mod   { background: rgba(59,130,246,.15); color: var(--blue); }
.v-skip  { background: rgba(148,163,184,.10); color: var(--muted); }

/* ── Sets / collections catalog (v12) ──────────────────────────────────── */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.set-card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s;
}
.set-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.set-thumb {
  height: 110px; background: #0a1628; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.set-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.set-card-body { padding: 8px 10px; }
.set-card-name { font-weight: 700; font-size: 13px; line-height: 1.25; }

/* ── Set opportunity badges ───────────────────────────────────────────── */
.set-opp-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.opp-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.opp-buy   { background: rgba(34,197,94,.2);  color: #22c55e; }
.opp-watch { background: rgba(59,130,246,.2); color: #60a5fa; }

/* ── Sparkline column ─────────────────────────────────────────────────── */
.sparkline-cell { padding: 0 4px; }

/* ── Portfolio button in table ────────────────────────────────────────── */
.btn-port {
  background: none; border: none; cursor: pointer; font-size: 14px;
  opacity: .5; transition: opacity .15s;
  padding: 2px 4px;
}
.btn-port:hover { opacity: 1; }

/* ── Watchlist target price ───────────────────────────────────────────── */
.target-cell { min-width: 90px; }
.target-input {
  width: 80px; background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); border-radius: 4px; padding: 3px 6px; font-size: 12px;
}
.target-input:focus { outline: none; border-color: var(--accent); }
.target-hit-badge { margin-left: 4px; }
.target-hit-banner {
  background: rgba(34,197,94,.15); color: #22c55e;
  padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 13px;
}
tr.target-reached { outline: 1px solid #22c55e; background: rgba(34,197,94,.05); }

/* ── Portfolio page ───────────────────────────────────────────────────── */
.port-summary {
  display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 16px;
}
.port-stat { display: flex; flex-direction: column; gap: 2px; }
.port-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.port-stat-val { font-size: 18px; font-weight: 700; }

.port-form-wrap {
  background: var(--panel); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px;
}
.port-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative;
}
.port-form .filter-search { flex: 1; min-width: 180px; }
.port-form .price-input   { width: 90px; }
.port-selected-name { font-size: 12px; }

.port-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--radius); max-height: 240px; overflow-y: auto;
  box-shadow: var(--shadow);
}
.port-sug-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; cursor: pointer; gap: 8px;
}
.port-sug-item:hover { background: var(--panel); }

.port-totals-row td { background: var(--panel); border-top: 2px solid var(--line); }
tr.port-totals-row { font-weight: 700; }

/* ── PSA links / chips ────────────────────────────────────────────────── */
.psa-link {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: opacity .15s;
}
.psa-link:hover { opacity: .8; }
.psa-10 { background: rgba(245,158,11,.15); color: #f59e0b; border-color: #f59e0b; }
.psa-9  { background: rgba(59,130,246,.15); color: #60a5fa; border-color: #3b82f6; }
.psa-8  { background: rgba(148,163,184,.15); color: #94a3b8; border-color: #64748b; }

.psa-prices { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.psa-label  { font-size: 12px; color: var(--muted); }
.psa-chip   { padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }

.bulk-cm-link { font-size: 14px; text-decoration: none; }

/* ── Arbitrage page ───────────────────────────────────────────────────── */
.arb-controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 14px; padding: 12px 14px;
  background: var(--panel); border-radius: var(--radius);
}
.arb-controls label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.arb-controls input[type=number] {
  width: 70px; background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); border-radius: 4px; padding: 4px 6px;
}
.arb-controls select {
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); border-radius: 4px; padding: 4px 8px;
}
.arb-buy { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.arb-eu  { background: rgba(34,197,94,.18);  color: #22c55e; }
.arb-us  { background: rgba(59,130,246,.18); color: #60a5fa; }

/* ── Today page ───────────────────────────────────────────────────────── */
.today-section { margin-bottom: 22px; }
.today-section h2 { margin-bottom: 8px; }
.today-list { display: flex; flex-direction: column; gap: 4px; }
.today-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--panel); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  border-left: 3px solid transparent; transition: background .15s;
}
.today-row:hover { background: var(--panel2); }
.today-row.row-BUYNOW       { border-left-color: #22c55e; }
.today-row.row-WATCHCLOSELY { border-left-color: #3b82f6; }
.today-row-name { font-weight: 600; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.today-row-set  { font-size: 11px; color: var(--muted); font-weight: 400; }
.today-thumb {
  width: 34px; height: 47px; object-fit: cover; border-radius: 4px;
  flex-shrink: 0; background: #0a1628;
}
.today-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.today-row-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.today-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.today-row-meta a { text-decoration: none; }

/* undervalued badge */
.under-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; vertical-align: middle;
  background: rgba(168,85,247,.18); color: #c084fc; border: 1px solid #a855f7;
  cursor: help;
}

/* row quick links (main table) */
.row-actions { text-align: center; }
.row-cm-link { font-size: 15px; text-decoration: none; margin-right: 4px; }
.row-cm-link:hover { opacity: .7; }
.m-stat-spark { display: inline-flex; align-items: center; margin-left: 2px; }

/* card-links row */
.card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card-links a {
  padding: 4px 10px; border-radius: var(--radius); font-size: 12px;
  background: var(--panel2); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: border-color .15s;
}
.card-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hot sets widget ──────────────────────────────────────────────────── */
.hot-sets-wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px; padding: 10px 14px;
  background: var(--panel); border-radius: var(--radius);
}
.hot-sets-label { font-weight: 700; font-size: 13px; color: var(--accent); margin-right: 4px; }
.hot-sets-list  { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-set-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 10px; font-size: 12px; text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.hot-set-item:hover { border-color: var(--accent); }
.hot-set-name { font-weight: 600; }
.hot-set-badges { display: flex; gap: 3px; }
