:root {
  --bg: #04070c;
  --panel: #0a0f16;
  --card: #0d141d;
  --line: rgba(0, 229, 192, .14);
  --text: #e8f1f2;
  --muted: #7d8fa3;
  --accent: #e94560;
  --accent-2: #00e5c0;
  --deal-1: #ff7a1a;
  --deal-2: #ff3d00;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(900px 420px at 18% -4%, rgba(0, 229, 192, .06), transparent 60%),
    radial-gradient(760px 520px at 96% 108%, rgba(0, 110, 255, .05), transparent 60%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- header: slim bar + sticky stats strip (Blur-style) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand h1 { margin: 0; font-size: 1.25rem; letter-spacing: .5px; }
.brand .logo { height: 34px; width: 34px; border-radius: 8px; }
.live {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; color: var(--muted); white-space: nowrap;
}
.live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #555; display: inline-block;
}
.live.on { color: var(--accent-2); }
.live.on .dot { background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .35; }
}
.meta { display: flex; gap: .5rem; margin-left: auto; align-items: center; }
.pill {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .8rem; font-size: .8rem;
  white-space: nowrap;
}
.tabs { display: flex; gap: .4rem; }
.tab {
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem;
  cursor: pointer; font-weight: 600;
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.statstrip {
  display: flex; gap: 1.75rem; align-items: stretch;
  padding: .45rem 1.25rem; border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.statstrip::-webkit-scrollbar { display: none; }
.sstat { display: flex; flex-direction: column; gap: .1rem; flex-shrink: 0; }
.sstat .sl {
  font-size: .66rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .5px; white-space: nowrap;
}
.sstat .sv { font-size: .95rem; font-weight: 700; white-space: nowrap; }
.sstat .sv small { color: var(--muted); font-weight: 400; font-size: .75rem; }

/* ---------- listings layout ---------- */
.layout {
  display: flex; gap: 1.25rem; padding: 1.25rem 1.75rem;
  align-items: flex-start;
}
.filters {
  width: 250px; flex-shrink: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; position: sticky; top: 118px;
  max-height: calc(100vh - 140px); overflow-y: auto;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; }
.filter-head h2 { margin: 0; font-size: 1rem; }
.filter-head button {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: .85rem;
}
.field { display: block; margin: .8rem 0; }
.field span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.field input, .field select {
  width: 100%; padding: .5rem .6rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.field-row { display: flex; gap: .6rem; }
.field-row .field { flex: 1; }

/* trait groups: collapsible checkbox lists with counts (OpenSea-style) */
.tgroup { border-top: 1px solid var(--line); margin-top: .6rem; }
.tgroup summary {
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  padding: .6rem 0; font-size: .85rem; font-weight: 600;
}
.tgroup summary::-webkit-details-marker { display: none; }
.tgroup summary::after { content: "▾"; color: var(--muted); font-size: .75rem; }
.tgroup:not([open]) summary::after { content: "▸"; }
.tgroup summary .tcount {
  font-size: .72rem; color: var(--muted); font-weight: 400;
  background: var(--card); border-radius: 999px; padding: .1rem .5rem;
}
.topt {
  display: flex; align-items: center; gap: .5rem;
  padding: .32rem 0; font-size: .82rem; cursor: pointer; color: var(--text);
}
.topt:hover { color: var(--accent-2); }
.topt input { accent-color: var(--accent-2); margin: 0; }
.topt .cnt {
  margin-left: auto; font-size: .72rem; color: var(--muted);
  background: var(--card); border-radius: 999px; padding: .08rem .45rem;
}
.topt .fl { font-size: .7rem; color: var(--muted); }

.note { font-size: .75rem; color: var(--muted); line-height: 1.4; }

/* ---------- toolbar + grid ---------- */
.results { flex: 1; min-width: 0; }
.toolbar {
  display: flex; gap: .6rem; align-items: center;
  margin-bottom: .9rem; flex-wrap: wrap;
}
#filter-toggle { display: none; padding: .5rem 1rem;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer; }
.tsearch {
  flex: 1; min-width: 140px; padding: .55rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: .88rem;
}
#f-sort {
  padding: .55rem .6rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: .85rem;
}
.seg { display: flex; gap: .3rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.seg button {
  background: none; border: none; color: var(--muted); cursor: pointer;
  border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600;
  white-space: nowrap;
}
.seg button.active { background: var(--card); color: var(--text); }
.seg-sm button { padding: .3rem .65rem; font-size: .75rem; }

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #101018; }
.card-body { padding: .8rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-name { margin: 0; font-size: .95rem; }
.card-name a { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--accent-2); }
.card > a[data-item-link] { display: block; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.badge {
  font-size: .7rem; padding: .15rem .5rem; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.badge.rarity-Legendary { color: #ffb020; border-color: #6b4d10; }
.badge.rarity-Epic { color: #c77dff; border-color: #4a2a6b; }
.badge.rarity-Rare { color: #4da3ff; border-color: #1d3f6b; }
.price { font-size: 1.05rem; font-weight: 700; }
.price small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.buy {
  margin-top: auto; text-align: center; text-decoration: none;
  background: var(--accent-2); color: #06231c; font-weight: 700;
  padding: .55rem; border-radius: 8px; font-size: .9rem;
  display: inline-block;
}
.buy:hover { filter: brightness(1.1); }
.buy.sm { padding: .4rem .9rem; font-size: .8rem; margin-top: 0; }
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }

/* compact density: Magic Eden-style inventory cards */
body[data-density="compact"] .grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem;
}
body[data-density="compact"] .card-body { padding: .55rem; gap: .3rem; }
body[data-density="compact"] .card-name { font-size: .8rem; }
body[data-density="compact"] .badge { font-size: .62rem; padding: .08rem .4rem; }
body[data-density="compact"] .price { font-size: .9rem; }
body[data-density="compact"] .price small { font-size: .7rem; }
body[data-density="compact"] .card .ends { display: none; }
body[data-density="compact"] .buy { padding: .4rem; font-size: .78rem; }

footer {
  padding: 1.5rem; text-align: center; color: var(--muted);
  font-size: .78rem; border-top: 1px solid var(--line); margin-top: 1rem;
}
.layout[hidden] { display: none; }

/* ---------- market view ---------- */
.market {
  padding: 1.25rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.market[hidden], .itemview[hidden] { display: none; }
.trends-controls { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.trends-note { margin: 0; }
.chart-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem;
}
.chart-card h3 { margin: 0 0 .6rem; font-size: 1rem; }
.chart-card h3 select {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .25rem .5rem; font-size: .9rem;
}
.chart-wrap { position: relative; }
.chart-wrap canvas { width: 100%; height: 240px; display: block; touch-action: manipulation; }
.tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: #0a0a12; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .6rem; font-size: .75rem; line-height: 1.5;
  color: var(--text); white-space: nowrap; transform: translate(-50%, -110%);
}
.tip .t { color: var(--muted); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem;
  font-size: .78rem; color: var(--muted); }
.legend .sw { display: inline-block; width: .7rem; height: .7rem;
  border-radius: 3px; margin-right: .35rem; vertical-align: baseline; }

.market-cols { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.ig-leaders { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.ig-leaders h4 { margin: 0 0 .5rem; font-size: .85rem; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.leader-list { display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 900px) { .ig-leaders { grid-template-columns: 1fr; } }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem; min-width: 0;
}
.panel h3 { margin: 0 0 .7rem; font-size: 1rem; }
.mini-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.mini-row:first-of-type { border-top: none; }
.mini-row:hover .row-name { color: var(--accent-2); }
.row-thumb {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  background: #101018; flex-shrink: 0;
}
.row-thumb-empty { display: inline-block; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: .88rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: .75rem; color: var(--muted); }
.drop-badge {
  background: #3a1020; color: #ff7ab8; border: 1px solid #6b1d36;
  border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.new-grid {
  display: grid; gap: 0 1.5rem; grid-template-columns: 1fr 1fr;
}

/* activity feed rows */
.ev {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text); font-size: .85rem;
}
.ev:first-of-type { border-top: none; }
.ev:hover .row-name { color: var(--accent-2); }
.ev-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; background: var(--card);
  border: 1px solid var(--line);
}
.ev-listed .ev-ic { color: var(--accent-2); border-color: #0d4a3e; }
.ev-sold .ev-ic { color: #ffb020; border-color: #6b4d10; }
.ev-price_drop .ev-ic { color: #ff7ab8; border-color: #6b1d36; }
.ev-price_rise .ev-ic { color: #4da3ff; border-color: #1d3f6b; }
.ev-cancelled .ev-ic, .ev-delisted .ev-ic { color: var(--muted); }

/* ---------- item detail ---------- */
.itemview { padding: 1.25rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem; }
.back-link { color: var(--muted); text-decoration: none; font-size: .88rem;
  align-self: flex-start; }
.back-link:hover { color: var(--text); }
.item-hero { display: flex; gap: 1.2rem; align-items: flex-start; }
.item-img { width: 180px; height: 180px; border-radius: 14px; object-fit: cover;
  background: #101018; border: 1px solid var(--line); flex-shrink: 0; }
.item-head { flex: 1; min-width: 0; }
.item-head h2 { margin: 0 0 .7rem; font-size: 1.4rem; }
.item-head .note { display: inline-block; margin-top: .7rem; }

/* trait cards: value + rarity % + per-trait floor (OpenSea-style) */
.trait-cards {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.tcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .7rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.tcard .tc-label {
  font-size: .66rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .4px;
}
.tcard .tc-val { font-size: .92rem; font-weight: 700; }
.tcard .tc-val.rarity-Legendary { color: #ffb020; }
.tcard .tc-val.rarity-Epic { color: #c77dff; }
.tcard .tc-val.rarity-Rare { color: #4da3ff; }
.tcard .tc-meta { font-size: .72rem; color: var(--muted); }

.item-panels { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

/* order-book style listings table (Magic Eden-style) */
table.book { width: 100%; border-collapse: collapse; font-size: .88rem; }
.book th {
  text-align: left; font-size: .7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
  padding: .4rem .5rem; border-bottom: 1px solid var(--line);
}
.book td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.book tr:last-child td { border-bottom: none; }
.book .bprice { font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.book .busd { color: var(--muted); white-space: nowrap; }
.book .bends { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.book td.bact { text-align: right; }

.sale-list { list-style: none; margin: 0; padding: 0; }
.sale-list li { display: flex; justify-content: space-between; align-items: baseline;
  padding: .5rem 0; border-top: 1px solid var(--line); }
.sale-list li:first-child { border-top: none; }
.sale-price { font-weight: 700; }
.comp-grid { display: grid; gap: .7rem; grid-template-columns: repeat(5, 1fr); }
.comp-card { text-decoration: none; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.comp-card:hover { border-color: var(--accent-2); }
.comp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #101018; }
.comp-name { font-size: .75rem; font-weight: 600; padding: .4rem .5rem 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-price { font-size: .78rem; color: var(--accent-2); font-weight: 700;
  padding: .15rem .5rem .5rem; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .topbar-row { padding: .55rem .8rem; gap: .5rem .6rem;
    display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .brand { grid-column: 1; grid-row: 1; }
  .meta { grid-column: 2; grid-row: 1; margin-left: 0; align-items: center; }
  .tabs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto;
    scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: 0 0 auto; }
  .tab { padding: .45rem .8rem; font-size: .8rem; }
  .brand h1 { font-size: 1.1rem; }
  .statstrip { padding: .4rem .8rem; gap: 1.2rem; }
  .layout { flex-direction: column; padding: .8rem; }
  #filter-toggle { display: block; }
  .filters {
    display: none; width: 100%; position: static; max-height: none;
  }
  .filters.open { display: block; }
  .toolbar { gap: .5rem; }
  .tsearch { order: 3; flex-basis: 100%; }
  /* dense 2-col inventory grid on phones */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card-body { padding: .55rem; gap: .3rem; }
  .card-name { font-size: .82rem; }
  .badge { font-size: .64rem; padding: .1rem .4rem; }
  .price { font-size: .92rem; }
  .price small { font-size: .72rem; }
  .card .ends { font-size: .7rem; }
  .buy { padding: .45rem; font-size: .8rem; }
  body[data-density="compact"] .grid { gap: .45rem; }
  body[data-density="compact"] .card-body { padding: .4rem; }

  .market { padding: .8rem; }
  .chart-wrap canvas { height: 200px; }
  .market-cols, .item-panels { grid-template-columns: 1fr; }
  .new-grid { grid-template-columns: 1fr; }
  .item-hero { gap: .8rem; }
  .item-img { width: 110px; height: 110px; }
  .item-head h2 { font-size: 1.1rem; }
  .itemview { padding: .8rem; }
  .comp-grid { grid-template-columns: repeat(3, 1fr); }
  .trait-cards { grid-template-columns: repeat(2, 1fr); }
  /* mobile: hero repeats the topbar (logo, title, stats, nav) — keep only the tagline */
  .hero { padding: .9rem 1rem .4rem; }
  .hero-logo, .hero h2, .hero-stats, .hero-cta, .hero-premium { display: none; }
  .hero .tagline { font-size: .85rem; margin: 0; }
}

/* ---------- sets landing page ---------- */
.setsview { padding: 1rem 1.75rem 3rem; }
.hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.hero-logo { width: 110px; height: 110px; border-radius: 24px; }
.hero h2 { font-size: 2.1rem; margin: .9rem 0 .3rem; letter-spacing: .5px; }
.hero .tagline { color: var(--muted); margin: 0 0 .6rem; font-size: 1.02rem; }
.hero-stats { color: var(--muted); font-size: .92rem; margin: 0 0 1.3rem; }
.hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .7rem 1.4rem; border-radius: 10px; font-size: .95rem;
}
.btn-primary { background: var(--accent-2); color: #06231c; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent-2); }
.sets-heading { font-size: 1.2rem; margin: 2.2rem 0 1rem; }
.sets-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.set-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .12s ease, border-color .12s ease;
  display: flex; flex-direction: column;
}
.set-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.set-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #101018; }
.set-noimg { width: 100%; aspect-ratio: 1; background: #101018; }
.set-card-body { padding: .8rem .9rem; }
.set-card-body h4 { margin: 0 0 .25rem; font-size: 1rem; }
.set-card-body p { margin: 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) {
  .sets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hero { padding: 1.5rem .5rem 1rem; }
  .hero-logo { width: 84px; height: 84px; border-radius: 18px; }
  .hero h2 { font-size: 1.6rem; }
}

/* ---------- in-game sales ---------- */
.ig-summary { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: .4rem;
  font-size: .9rem; color: var(--muted); }
.ig-summary b { color: var(--text); }

/* ---------- accounts: sign-in, watchlist, digest ---------- */
#auth-link { margin-right: .5rem; }
.auth-signin, .auth-user {
  color: var(--accent-2); text-decoration: none; font-weight: 600;
  font-size: .9rem; white-space: nowrap;
}
.auth-signin:hover, .auth-user:hover { text-decoration: underline; }
.accountview { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem; max-width: 440px; margin: 0 auto;
}
.auth-card.wide { max-width: 680px; }
.auth-card h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.auth-card h3 { margin: 1.5rem 0 .75rem; font-size: 1.05rem; }
.auth-msg {
  background: #1d2b1f; border: 1px solid #2c4a30; border-radius: 10px;
  padding: .75rem 1rem; color: var(--text);
}
.auth-form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.auth-form input[type="email"] {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: .8rem 1rem; font-size: 1rem; width: 100%;
}
.auth-form input[type="email"]:focus { outline: none; border-color: var(--accent-2); }
.auth-form .btn-primary { border: none; cursor: pointer; font-size: 1rem; }
.acct-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
}
.acct-head .note { margin: .25rem 0 0; }
.btn-ghost.sm { padding: .45rem .9rem; font-size: .85rem; cursor: pointer; }
.digest-toggle {
  display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 0;
  cursor: pointer; font-weight: 600;
}
.digest-toggle small { font-weight: 400; color: var(--muted); }
.digest-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent-2); }
.watch-list { display: flex; flex-direction: column; gap: .5rem; }
.watch-row {
  display: flex; align-items: center; gap: .75rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .75rem;
}
.watch-item {
  display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0;
  color: var(--text); text-decoration: none;
}
.watch-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.watch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-price { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.watch-rm {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1rem; padding: .25rem .5rem;
}
.watch-rm:hover { color: var(--accent); }
.premium-teaser {
  margin-top: 1.75rem; background: #1d2b1f; border: 1px solid #2c4a30;
  border-radius: 12px; padding: 1rem 1.25rem;
}
.premium-teaser .note { margin: .5rem 0 0; }
.track-btn {
  margin: .5rem 0 0; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem;
  font-size: .9rem; font-weight: 600; cursor: pointer;
}
.track-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.track-btn.watching { border-color: var(--accent-2); color: var(--accent-2); }
.track-btn:disabled { opacity: .6; cursor: default; }

/* ---------- deal badges ---------- */
.deal-badge {
  background: linear-gradient(135deg, var(--deal-1), var(--deal-2));
  color: #fff; border: none;
  box-shadow: 0 0 12px rgba(255, 90, 0, .45);
  border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.deal-badge.sm { font-size: .72rem; padding: .12rem .45rem; }
.deal-line { margin: .3rem 0 0; display: flex; align-items: center; gap: .35rem; }

/* ---------- sets landing: ticker / deal radar / live terminal ---------- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.tdim { color: var(--muted); font-weight: 400; }

.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); padding: .45rem 0; margin: 0 -1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .8rem;
}
.ticker-track { display: inline-flex; gap: 2.2rem; padding-right: 2.2rem; animation: tick 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick b { font-weight: 700; }
.tick-hi { color: var(--accent-2); }

.sets-section { margin: 1.6rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem;
}
.section-head h3 { margin: 0; font-size: 1.1rem; }
.radar-controls { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.radar-matrix {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .9rem;
}
/* sci-fi deal card */
.radar-cell {
  position: relative;
  background: linear-gradient(165deg, #0c1116 0%, #090c10 100%);
  border: 1px solid #1e2a25;
  padding: 1rem .95rem 1.05rem;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .15s, filter .15s;
}
.radar-cell::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, #00e5a0, transparent);
  box-shadow: 0 0 10px rgba(0, 229, 160, .8);
}
.radar-cell:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(0, 229, 160, .18));
}
.radar-badge {
  position: absolute; top: .55rem; right: .8rem; z-index: 2;
  font-weight: 800; font-size: .95rem; color: #7dffc4; white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 229, 160, .6);
}
.radar-head { padding-right: 4.6rem; }
.radar-title {
  font-weight: 800; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase;
  color: #d9ffec; text-decoration: none; line-height: 1.2;
  text-shadow: 0 0 12px rgba(0, 229, 160, .35);
}
.radar-title:hover { color: #7dffc4; }
.radar-kicker {
  display: block; margin-top: .2rem; font-size: .6rem;
  letter-spacing: .28em; color: #7d918a;
}
.radar-artwrap {
  height: 225px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(0, 229, 160, .13), transparent 65%),
    repeating-linear-gradient(0deg, rgba(0, 229, 160, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(0, 229, 160, .05) 0 1px, transparent 1px 22px);
  border: 1px solid rgba(0, 229, 160, .16);
}
.radar-art {
  max-height: 195px; max-width: 88%; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .65));
}
.radar-art.noimg {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.radar-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.radar-tiles.t2 { grid-template-columns: repeat(2, 1fr); }
.rtile { background: #0e141a; border: 1px solid #202b26; text-align: center; padding: .5rem .25rem; }
.rtile span { display: block; font-size: .58rem; letter-spacing: .18em; color: #7d918a; margin-bottom: .2rem; }
.rtile b { font-size: .82rem; color: #fff; }
.rtile b.hot { color: #7dffc4; }
.radar-buy {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, #2bff9e, #00c878); color: #04120c;
  font-weight: 800; letter-spacing: .08em; font-size: .82rem; padding: .7rem .5rem;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(0 0 10px rgba(0, 229, 160, .45));
}
.radar-buy:hover { filter: drop-shadow(0 0 16px rgba(0, 229, 160, .8)) brightness(1.08); }
/* volume-play: crimson variant */
.radar-cell.volume-play { border-color: #3a2126; }
.radar-cell.volume-play::before {
  background: linear-gradient(90deg, transparent, #ff5d5d, transparent);
  box-shadow: 0 0 10px rgba(255, 93, 93, .8);
}
.radar-cell.volume-play:hover {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(255, 93, 93, .2));
}
.radar-cell.volume-play .radar-badge { color: #ff9d9d; text-shadow: 0 0 10px rgba(255, 93, 93, .6); }
.radar-cell.volume-play .radar-title { color: #ffe2e2; text-shadow: 0 0 12px rgba(255, 93, 93, .3); }
.radar-cell.volume-play .radar-artwrap {
  background:
    radial-gradient(ellipse at center, rgba(255, 93, 93, .12), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255, 93, 93, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 93, 93, .05) 0 1px, transparent 1px 22px);
  border-color: rgba(255, 93, 93, .16);
}
.radar-cell.volume-play .rtile b.hot { color: #ff9d9d; }

.terminal-grid { display: grid; grid-template-columns: 330px 1fr; gap: .9rem; align-items: start; }
.live-tape {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; max-height: 560px;
}
.tape-head {
  padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-weight: 700;
  font-size: .88rem; display: flex; align-items: center; gap: .5rem;
}
.tape-note { margin-left: auto; font-size: .7rem; color: var(--muted); font-weight: 400; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233,69,96,.6); }
  70% { box-shadow: 0 0 0 6px rgba(233,69,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,69,96,0); }
}
.tape-list { overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: .4rem; }
.tape-item {
  display: flex; gap: .6rem; background: var(--card); border-radius: 8px;
  padding: .55rem .6rem; font-size: .8rem; border-left: 3px solid transparent;
  animation: tapeIn .3s ease;
}
@keyframes tapeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; } }
.tape-item.listed { border-left-color: var(--accent-2); }
.tape-item.sold { border-left-color: var(--accent); }
.tape-img { width: 38px; height: 38px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.tape-img img { width: 100%; height: 100%; object-fit: cover; }
.tape-deal { color: var(--accent-2); font-size: .74rem; font-weight: 700; }
.tape-time { color: var(--muted); font-size: .7rem; margin-top: .1rem; }

.term-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.term-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem; text-decoration: none; color: var(--text); display: block;
}
.term-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.term-art { width: 100%; height: 84px; object-fit: contain; border-radius: 8px; background: var(--panel); }
.term-art.noimg { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.term-name { font-weight: 700; font-size: .88rem; margin: .5rem 0 .35rem; }
.term-row {
  display: flex; justify-content: space-between; font-size: .76rem;
  color: var(--muted); padding: .12rem 0;
}
.term-row b { color: var(--accent-2); }

@media (max-width: 900px) {
  .terminal-grid { grid-template-columns: 1fr; }
  .term-cards { grid-template-columns: repeat(2, 1fr); }
  .live-tape { max-height: 320px; }
}
@media (max-width: 640px) {
  .radar-matrix { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .radar-cell { padding: .8rem .65rem .9rem; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
  .radar-artwrap { height: 150px; }
  .radar-art { max-height: 128px; }
  .radar-title { font-size: .88rem; }
  .radar-badge { font-size: .82rem; }
  .rtile b { font-size: .74rem; }
  .term-cards { grid-template-columns: repeat(2, 1fr); }
}

/* very narrow phones: keep brand + sign-in/GUN on one row */
@media (max-width: 430px) {
  #live-text { display: none; }
  .brand h1 { font-size: 1rem; }
  .brand .logo { height: 30px; width: 30px; }
  .pill { padding: .3rem .55rem; font-size: .74rem; }
  .meta { gap: .4rem; }
}

/* ---------- premium ---------- */
.brand-link { text-decoration: none; color: inherit; }
.tab { text-decoration: none; display: inline-block; }
.tab-premium {
  background: linear-gradient(135deg, #f5c542, #e8a020);
  border-color: #f5c542; color: #231603; font-weight: 800;
}
.tab-premium:hover { filter: brightness(1.08); }
.btn-premium {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: .7rem 1.4rem; border-radius: 10px; font-size: .95rem; border: none;
  cursor: pointer; background: linear-gradient(135deg, #f5c542, #e8a020);
  color: #231603;
}
.btn-premium:hover { filter: brightness(1.08); }
.btn-premium.sm { padding: .5rem 1rem; font-size: .85rem; border-radius: 8px; }
.premium-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 1rem 0; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(245,197,66,.12), rgba(232,160,32,.05));
  border: 1px solid rgba(245,197,66,.45); border-radius: 12px;
}
.premium-banner b { display: block; margin-bottom: .2rem; }
.premium-banner span { color: var(--muted); font-size: .88rem; }
.hero-premium {
  display: inline-block; margin-top: 1rem; color: #f5c542;
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.hero-premium:hover { text-decoration: underline; }
.premium-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(245,197,66,.1), rgba(232,160,32,.04));
  border: 1px solid rgba(245,197,66,.4); border-radius: 12px;
}
.premium-card p { margin: .3rem 0 0; }
/* premium page */
.prem { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.prem-hero { text-align: center; margin-bottom: 2.5rem; }
.prem-kicker {
  color: #f5c542; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem;
}
.prem-hero h2 { font-size: 2.4rem; margin: 0 0 .8rem; }
.prem-sub { color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin: 0 auto; }
.prem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.prem-card-f {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.25rem;
}
.prem-grid .prem-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.25rem; margin: 0;
}
.prem-ico { font-size: 1.6rem; margin-bottom: .5rem; }
.prem-grid h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.prem-grid p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.5; }
.prem-grid p b { color: var(--text); }
.soon {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: .15rem .5rem; vertical-align: middle;
}
.prem-price {
  text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 2rem 1.5rem; margin-bottom: 2.5rem;
}
.prem-price h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.waitlist {
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.waitlist input {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: .7rem 1rem; font-size: .95rem; min-width: 16rem;
}
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin: 1.2rem 0; text-align: left;
}
.plan-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.4rem 1.25rem;
}
.plan-highlight { border-color: #f5c542; }
.plan-badge {
  position: absolute; top: -.7rem; left: 1rem; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; background: #f5c542;
  color: #231a02; border-radius: 999px; padding: .2rem .6rem;
}
.plan-name { color: var(--muted); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 2rem; font-weight: 800; margin: .3rem 0 .6rem; }
.plan-per { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-card .note { margin: 0 0 1rem; }
.plan-btn { width: 100%; }
.prem-active-badge {
  display: inline-block; font-weight: 800; color: #f5c542; font-size: 1.1rem;
  margin-bottom: .5rem;
}
.prem-active .btn-ghost { margin-top: 1rem; }
.crypto-pick { text-align: center; }
.pill-row { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  margin: 0 0 .8rem; }
.pill {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; cursor: pointer;
}
.pill.on { border-color: #f5c542; color: #f5c542; font-weight: 700; }
.crypto-pick .btn-premium { margin-top: .4rem; }
.invoice-card { text-align: left; max-width: 34rem; margin: 1rem auto 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.25rem; }
.inv-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-bottom: .7rem; }
.inv-amount { font-size: 1.5rem; font-weight: 800; }
.inv-addr-row { display: flex; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.inv-addr { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .82rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .7rem; }
.tx-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.tx-row input {
  flex: 1; min-width: 14rem; background: var(--panel);
  border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: .7rem 1rem; font-size: .9rem;
  font-family: ui-monospace, monospace;
}
.prem-faq { max-width: 36rem; margin: 0 auto; }
.prem-faq h3 { text-align: center; margin-bottom: 1rem; }
.prem-faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .6rem;
}
.prem-faq summary { cursor: pointer; font-weight: 700; }
.prem-faq p { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; line-height: 1.5; }
@media (max-width: 760px) {
  .prem-hero h2 { font-size: 1.8rem; }
  .premium-banner { padding: .9rem 1rem; }
}

/* ---------- sets landing: banner + card CTAs (2026-09-28) ---------- */
.sets-banner {
  display: flex; align-items: center; justify-content: center;
  margin: .4rem 0 1rem; padding: .9rem 1rem;
  background: linear-gradient(120deg, #191940 0%, #1d2a52 55%, #0e3a45 100%);
  background-image: url("/sets-banner-bg.jpg");
  background-size: cover; background-position: center;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.sets-banner-lockup { height: 168px; width: auto; }
.sets-heading { margin: 1.4rem 0 .9rem; }
.set-card-main { display: block; flex: 1; text-decoration: none; color: inherit; }
.set-card-buy {
  display: block; text-align: center; margin: .1rem .9rem .95rem;
  background: var(--accent-2); color: #06231c; font-weight: 800; font-size: .85rem;
  padding: .55rem; border-radius: 9px; text-decoration: none;
}
.set-card-buy:hover { filter: brightness(1.1); }
@media (max-width: 760px) {
  .sets-banner { padding: .7rem .8rem; border-radius: 14px; }
  .sets-banner-lockup { height: 104px; }
}

/* ---------- deals page (2026-09-28) ---------- */
.deals-banner {
  display: flex; align-items: center; justify-content: center;
  margin: .4rem 0 .6rem; padding: .8rem 1rem;
  background: linear-gradient(120deg, #2b1420 0%, #3d1e2c 55%, #4d2415 100%);
  background-image: url("/deals-banner-bg.jpg");
  background-size: cover; background-position: center;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.deals-banner-lockup { height: 150px; width: auto; }
.deals-note { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; }
.deals-teaser .btn-ghost.sm {
  display: inline-block; text-decoration: none; margin-top: .5rem;
}
@media (max-width: 760px) {
  .deals-banner { padding: .6rem .8rem; border-radius: 14px; }
  .deals-banner-lockup { height: 96px; }
  /* five tabs now: let the row scroll instead of squeezing */
  .tabs { overflow-x: auto; scrollbar-width: none; }
}

/* ---- market intelligence ---- */
.h-sub { font-size: .75rem; font-weight: 400; color: var(--muted); }
.showdown-list { display: flex; flex-direction: column; }
.showdown-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.showdown-row:first-of-type { border-top: none; }
.showdown-row:hover .row-name { color: var(--accent-2); }
.showdown-rank {
  width: 1.6rem; height: 1.6rem; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--muted);
  background: #101018; border: 1px solid var(--line);
}
.showdown-row:first-of-type .showdown-rank {
  color: #ffd76a; border-color: #6b5416; background: #221a08;
}
.showdown-cost { text-align: right; white-space: nowrap; font-size: .85rem; }
.showdown-cost b { color: var(--accent); font-size: 1rem; }
.showdown-cost .row-sub { display: block; }
.pct-badge {
  border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700;
  white-space: nowrap; border: 1px solid;
}
.pct-up { background: #0a2b1e; color: #4ade80; border-color: #14532d; }
.pct-down { background: #3a1020; color: #ff7ab8; border-color: #6b1d36; }
.pct-up-txt { color: #4ade80; font-weight: 600; }
.pct-down-txt { color: #ff7ab8; font-weight: 600; }
.ratio-badge {
  background: #2a1503; color: #f5a623; border: 1px solid #6b3d10;
  border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.tier-strip { display: flex; flex-wrap: wrap; gap: .6rem; }
.tier-chip {
  background: #101018; border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .8rem; display: flex; flex-direction: column; gap: .15rem;
}
.tier-name { font-weight: 700; font-size: .85rem; }
.tier-nums { font-size: .75rem; color: var(--muted); }
.tier-nums b { color: var(--text); }

/* ---------------- meta page ---------------- */
.patch-card {
  border: 1px solid rgba(0,210,168,.35);
  border-radius: 10px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(0,210,168,.08), rgba(0,210,168,.02));
}
.patch-kicker {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.patch-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.patch-summary { margin: 0 0 12px; color: var(--text-dim); line-height: 1.5; }
.patch-highlights { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.patch-highlights li { margin-bottom: 4px; }
.patch-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.patch-foot a { color: var(--accent-2); text-decoration: none; }
.patch-curate { color: var(--text-faint); font-style: italic; }
.rank-num {
  font-weight: 700;
  color: var(--text-faint);
  min-width: 26px;
  text-align: right;
}
.whale-row { cursor: default; }
.whale-row:hover .row-name { color: inherit; }

/* ================= Firefly theme (2026-09-28) ================= */
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  letter-spacing: .045em;
}
.brand h1 { letter-spacing: 2.5px; font-weight: 700; }
.panel h3, .chart-card h3 { font-size: 1.2rem; }

/* tabs: teal active state everywhere */
.tab.active {
  background: rgba(0, 229, 192, .12);
  border-color: var(--accent-2); color: var(--accent-2);
  box-shadow: 0 0 14px rgba(0, 229, 192, .3);
}
.tab:hover { border-color: var(--accent-2); color: var(--text); }
.tic { display: none; }
.tic svg { width: 20px; height: 20px; display: block; }

/* desktop: left icon rail nav */
@media (min-width: 1024px) {
  body { padding-left: 78px; }
  .tabs {
    position: fixed; left: 0; top: 0; bottom: 0; width: 78px; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #060b11; border-right: 1px solid rgba(0, 229, 192, .14);
    padding: 16px 9px; margin: 0;
  }
  .tab {
    border-radius: 11px; padding: .65rem .2rem; font-size: .66rem;
    letter-spacing: .06em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
  }
  .tab .tic { display: block; }
}

/* stat strip values glow teal */
.sstat .sv {
  color: var(--accent-2); font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem; letter-spacing: .03em;
  text-shadow: 0 0 18px rgba(0, 229, 192, .35);
}

/* cards + panels: teal-tinted borders, hover glow */
.card { border: 1px solid var(--line); background: var(--card); }
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 6px 24px rgba(0, 229, 192, .14);
}
.panel, .chart-card {
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 8px 28px rgba(0, 0, 0, .35);
}

/* sparklines (deal rows) */
.sparkcell {
  display: flex; align-items: center; gap: .55rem;
  margin-left: auto; flex-shrink: 0;
}
.spark { filter: drop-shadow(0 0 4px rgba(0, 229, 192, .55)); display: block; }
.trend { font-size: .74rem; font-weight: 700; min-width: 3.2em; text-align: right; }
.trend.up { color: #00e5a0; }
.trend.dn { color: #ff5d5d; }
@media (max-width: 700px) { .sparkcell { display: none; } }

/* clickable brand (logo -> home) */
.brand-link {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit;
}
.brand-link .logo { height: 34px; width: 34px; border-radius: 8px; }
.brand-link h1 { margin: 0; font-size: 1.25rem; }
.brand-link:hover { filter: brightness(1.12); }
.radar-artwrap a, .tape-img a { display: block; height: 100%; }

/* whole deal card clickable (except the Buy button) */
.radar-cell.has-link .radar-title::after {
  content: ""; position: absolute; inset: 0;
}
.radar-cell .radar-buy { position: relative; z-index: 2; }

/* ---------- past deals: grayed-out cards ---------- */
.past-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.radar-cell.past {
  filter: grayscale(1);
  opacity: .62;
}
.radar-cell.past:hover { opacity: .85; }
.past-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: .15rem .5rem;
  text-transform: uppercase;
}
.radar-cell.past.placeholder {
  border-style: dashed; opacity: .5; filter: none;
}
.radar-cell.past.placeholder .radar-artwrap {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; min-height: 120px;
}

/* ---------- hover spice (Firefly) ---------- */
.card, .set-card { position: relative; }
.card, .set-card, .comp-card, .term-card {
  transition: transform .22s cubic-bezier(.2,.7,.3,1.25),
    border-color .22s ease, box-shadow .22s ease;
}
.card:hover, .set-card:hover, .comp-card:hover, .term-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: 0 14px 28px rgba(0,0,0,.5), 0 0 24px rgba(0,229,192,.22);
}
/* image zoom inside cards */
.card img, .set-card img { transition: transform .3s ease; }
.card:hover img, .set-card:hover img { transform: scale(1.07); }
/* sheen sweep across listing/set cards */
.card::after, .set-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%,
    rgba(0,229,192,.13) 50%, transparent 60%);
  transform: translateX(-130%); transition: transform .55s ease;
}
.card:hover::after, .set-card:hover::after { transform: translateX(130%); }

/* deal radar cells: bigger lift + stronger aura + art zoom */
.radar-cell {
  transition: transform .22s cubic-bezier(.2,.7,.3,1.25), filter .22s ease;
}
.radar-cell:hover {
  transform: translateY(-5px) scale(1.015);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.6))
    drop-shadow(0 0 24px rgba(0,229,160,.35));
}
.radar-art { transition: transform .3s ease; }
.radar-cell:hover .radar-art { transform: scale(1.07); }

/* buttons: pop + glow */
.buy, .btn-primary, .radar-buy, .set-card-buy, .track-btn, .btn-ghost {
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease,
    border-color .15s ease, color .15s ease;
}
.buy:hover, .btn-primary:hover, .radar-buy:hover, .set-card-buy:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(0,229,192,.35);
}
.track-btn:hover, .btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,229,192,.25);
}

/* nav tabs (mobile bar + desktop rail): lift + glow */
.tab {
  transition: transform .15s ease, border-color .15s ease, color .15s ease,
    box-shadow .15s ease, background .15s ease;
}
.tab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2); color: var(--accent-2);
  box-shadow: 0 0 14px rgba(0,229,192,.3);
  background: rgba(0,229,192,.07);
}

/* list rows: teal wash + nudge */
.mini-row, .ev, .showdown-row, .whale-row {
  transition: background .15s ease, transform .15s ease;
  border-radius: 8px;
}
.mini-row:hover, .ev:hover, .showdown-row:hover, .whale-row:hover {
  background: rgba(0,229,192,.07);
  transform: translateX(4px);
}
.mini-row:hover .row-thumb, .ev:hover .ev-ic {
  transform: scale(1.1); border-color: var(--accent-2);
}
.row-thumb, .ev-ic { transition: transform .15s ease, border-color .15s ease; }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .set-card:hover, .comp-card:hover, .term-card:hover,
  .radar-cell:hover, .buy:hover, .btn-primary:hover, .tab:hover,
  .mini-row:hover, .ev:hover {
    transform: none;
  }
  .card::after, .set-card::after { display: none; }
}

/* segmented pills (deals sort + min discount): hover lift + glow */
.seg button {
  transition: transform .15s ease, color .15s ease, background .15s ease,
    box-shadow .15s ease;
}
.seg button:hover:not(.active) {
  transform: translateY(-1px) scale(1.05);
  color: var(--accent-2);
  background: rgba(0,229,192,.1);
  box-shadow: 0 0 12px rgba(0,229,192,.25);
}
.seg button:active { transform: scale(.96); }

/* GUN price pill: logo instead of text */
#gun-price { display: inline-flex; align-items: center; gap: .35rem; }
.gun-logo { width: 1.6em; height: 1.6em; border-radius: 50%; display: block; }

/* ---------- loadout builder ---------- */
.loadoutview { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.lo-head h2 { margin: 0 0 .25rem; font-size: 1.6rem; }
.lo-head .muted { color: var(--muted); margin: 0; font-size: .9rem; }
.lo-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; align-items: center; }
.lo-controls select, .lo-controls input[type="search"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: .55rem .8rem; font-size: .88rem;
}
.lo-controls input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.lo-controls button {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: .55rem 1rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lo-controls button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(0,229,192,.25); }
.lo-controls button:disabled { opacity: .55; cursor: wait; }
.lo-controls #lo-clear { color: var(--muted); }
.lo-search-results { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.lo-sr { display: flex; align-items: center; gap: .7rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem; }
.lo-sr img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.lo-sr-name { flex: 1; font-size: .88rem; }
.lo-sr-price { color: var(--accent-2); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.lo-sr button { background: var(--accent-2); border: none; color: #06231c; font-weight: 700;
  border-radius: 8px; padding: .4rem .8rem; cursor: pointer; }
.lo-summary { display: flex; align-items: center; gap: 1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.1rem;
  box-shadow: 0 0 24px rgba(0,229,192,.08); }
.lo-stat { display: flex; flex-direction: column; }
.lo-num { font-size: 1.25rem; font-weight: 800; }
.lo-lbl { font-size: .75rem; color: var(--muted); }
.lo-gun { font-size: .7em; color: var(--muted); font-weight: 600; }
.lo-bar { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.lo-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px; transition: width .4s ease; }
.lo-grid { margin-bottom: 1.5rem; }
.lo-card { position: relative; }
.lo-card.owned { opacity: .62; }
.lo-card.owned img { filter: grayscale(.55); }
.lo-price { color: var(--accent-2); font-weight: 700; font-size: .92rem; }
.lo-count { font-size: .75rem; color: var(--muted); }
.lo-actions { display: flex; gap: .4rem; margin-top: .5rem; }
.lo-own { flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: .45rem; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.lo-own:hover { transform: translateY(-1px); border-color: var(--accent-2); }
.lo-own.on { background: var(--accent-2); border-color: var(--accent-2); color: #06231c; }
.lo-rm { background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; width: 2rem; cursor: pointer; font-size: 1rem; line-height: 1; }
.lo-rm:hover { color: #ff6b6b; border-color: #ff6b6b; }
.lo-path h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.lo-path-rows { display: flex; flex-direction: column; gap: .4rem; }
.lo-path-row { display: flex; align-items: center; gap: .7rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: .45rem .8rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.lo-path-row:hover { transform: translateX(3px); border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(0,229,192,.18); }
.lo-path-row img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.lo-path-name { flex: 1; font-size: .88rem; }
.lo-path-price { color: var(--accent-2); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.lo-buy { background: var(--accent-2); color: #06231c; font-weight: 700; font-size: .82rem;
  border-radius: 8px; padding: .4rem .8rem; text-decoration: none; white-space: nowrap; }
.live-dot {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(0,229,192,.12); border: 1px solid var(--accent-2); color: var(--accent-2);
  border-radius: 999px; padding: .15rem .5rem; vertical-align: middle;
}

/* loadout teaser (signed-out): visibly disabled */
.lo-teaser { position: relative; opacity: .55; filter: grayscale(.4);
  user-select: none; margin-top: 1rem; }
.lo-teaser h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.lo-teaser-lock { margin-top: .8rem; padding: .7rem; text-align: center;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 10px;
  color: var(--accent-2); font-weight: 700; font-size: .9rem; }
.lo-mount { margin-top: .4rem; }
.lo-mount .lo-head { display: none; }
