/* SharpLab HQ — Cards collection page.
   Builds on hqstyle.css (shared vars/header/nav). Only card-specific styling here. */

:root {
  --r-common:    #7884b0;  /* gray  */
  --r-uncommon:  #9ece6a;  /* green */
  --r-rare:      #7aa2f7;  /* blue  */
  --r-epic:      #bb9af7;  /* purple*/
  --r-legendary: #e0af68;  /* gold  */
}

/* ── Tab bar ── */
.tabbar { display: flex; gap: 6px; margin: 4px 0 20px; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--muted); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; transition: background .12s, color .12s, border-color .12s;
}
.tab:hover { color: var(--fg); border-color: var(--accent); }
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ── Collection value hero ── */
.collval {
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 0 0 20px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.collval .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.collval .bigval { font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.collval .sub { font-size: 13px; color: var(--muted); }

/* ── Card grid ── */
.cardgrid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

/* ── Card tile ── */
.ctile {
  --r: var(--muted);
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--r); border-radius: 14px;
  display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ctile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.ctile.rarity-common    { --r: var(--r-common); }
.ctile.rarity-uncommon  { --r: var(--r-uncommon); }
.ctile.rarity-rare      { --r: var(--r-rare); }
.ctile.rarity-epic      { --r: var(--r-epic); }
.ctile.rarity-legendary { --r: var(--r-legendary); box-shadow: 0 0 0 1px rgba(224,175,104,.25), 0 6px 20px rgba(224,175,104,.12); }
.ctile.rarity-legendary:hover { box-shadow: 0 0 0 1px rgba(224,175,104,.4), 0 12px 30px rgba(224,175,104,.22); }

.cimg {
  position: relative; aspect-ratio: 1 / 1; background: var(--panel2);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.cimg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cimg img.silh { object-fit: contain; padding: 14px; opacity: .5; }

.sport-badge {
  position: absolute; top: 6px; left: 6px; font-size: 15px; line-height: 1;
  background: rgba(0,0,0,.55); border-radius: 8px; padding: 3px 5px;
}
.gem-badge {
  position: absolute; top: 6px; right: 6px; font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6);
  display: inline-flex; align-items: center; gap: 3px; text-transform: capitalize;
}
.rookie-badge {
  position: absolute; bottom: 6px; left: 6px; font-size: 9px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; color: var(--bg);
  background: var(--gold); padding: 2px 6px; border-radius: 6px;
}

.cbody { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.cname { font-size: 14px; font-weight: 700; line-height: 1.2; }
.cteam { font-size: 12px; color: var(--muted); }
.cmeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.rarity-label {
  font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--r); border: 1px solid var(--r); border-radius: 6px; padding: 1px 6px;
}
.serial { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.serial.oneofone { color: var(--gold); font-weight: 800; }
.cvalue { font-size: 13px; font-weight: 700; color: var(--fg); margin-top: 5px; }

/* ── Holo: animated iridescent sheen over the whole tile ── */
.ctile.holo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 14px;
  background: linear-gradient(115deg,
    rgba(255,0,132,.28) 0%, rgba(0,212,255,.28) 20%, rgba(120,255,140,.28) 40%,
    rgba(255,240,120,.28) 60%, rgba(190,120,255,.28) 80%, rgba(255,0,132,.28) 100%);
  background-size: 260% 260%;
  mix-blend-mode: color-dodge; opacity: .55;
  animation: holoshift 5s linear infinite;
}
.ctile.holo::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 14px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
  background-size: 260% 260%; mix-blend-mode: soft-light; opacity: .6;
  animation: holoshift 5s linear infinite reverse;
}
@keyframes holoshift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ctile.holo::before, .ctile.holo::after { animation: none; }
}

/* ── Sets list ── */
.setlist { display: flex; flex-direction: column; gap: 12px; }
.setcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; cursor: pointer; transition: border-color .12s;
}
.setcard:hover { border-color: var(--accent); }
.setcard .setname { font-size: 17px; font-weight: 800; }
.setcard .setsub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.setcard .setright { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.setcard .price { font-size: 15px; font-weight: 700; color: var(--gold); }
.progwrap { width: 160px; max-width: 40vw; }
.progbar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.progbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.progtext { font-size: 11px; color: var(--muted); text-align: right; }
/* Per-user set-completion bar (distinct from the pack-sold progress above). */
.progbar.comp span { background: linear-gradient(90deg, var(--r-rare), var(--r-uncommon)); }
.progbar.comp.done span { background: var(--r-uncommon); }
.progbar.comp.done + .progtext { color: var(--r-uncommon); font-weight: 700; }
.soldout {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--red); border: 1px solid var(--red); border-radius: 6px; padding: 1px 6px;
}

/* ── Catalog ── */
.oddsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.oddscard { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.oddscard .k { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.oddscard .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.catrow-mint { font-variant-numeric: tabular-nums; }
.backbtn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--accent);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; margin-bottom: 14px;
}
.backbtn:hover { border-color: var(--accent); }

.emptybox { text-align: center; padding: 48px 20px; color: var(--muted); }
.emptybox .big { font-size: 40px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Pack-opening reveal — ported from nsba-markets (Cards.css / CardTile.css),
   adapted to SharpLab's .ctile markup + theme vars.
   ═══════════════════════════════════════════════════════════════════════════ */
.mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; }

/* Set-card open buttons */
.setactions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.setactions .btn { padding: 6px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 13px; }
.dailybar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.dailybar .btn { padding: 7px 16px; border-radius: 9px; font-weight: 700; cursor: pointer; }

.cd-reveal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 24px; padding: 40px 20px; overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 0%, #17233a, #05070b 70%);
  animation: cd-scrim-in 0.25s ease both;
}
@keyframes cd-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.cd-mute {
  position: absolute; top: 22px; right: 24px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #2a3346; background: rgba(18,22,31,0.55); backdrop-filter: blur(6px);
  color: #cfd6e6; font-size: 12px; letter-spacing: 0.03em; line-height: 1; cursor: pointer;
  opacity: 0.6; transition: opacity .15s, border-color .15s, transform .15s; z-index: 10;
}
.cd-mute:hover { opacity: 1; border-color: #34d399; transform: scale(1.06); }
.cd-close { position: absolute; top: 22px; left: 24px; }

/* pack burst */
.cd-pack-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cd-pack {
  position: relative; width: 190px; height: 262px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(150deg, #7aa2f7, #5865f2 30%, #bb6bff 62%, #22d3ee 100%);
  border: 1px solid #8fb0ff;
  box-shadow: 0 30px 60px -20px #000, 0 0 50px -10px rgba(122,162,247,0.7), inset 0 0 0 3px rgba(255,255,255,0.14);
  animation: cd-pack-shake 0.7s ease-in-out 2, cd-pack-burst 0.35s ease-in 1 0.9s forwards;
}
.cd-pack-foil {
  position: absolute; inset: 0; mix-blend-mode: overlay; opacity: 0.5;
  background:
    repeating-linear-gradient(115deg, #ffffff00 0 8%, #ffffff55 12%, #ffffff00 16%),
    conic-gradient(from 0deg, #ff5b7f55, #ffd76a55, #22d3ee55, #c07bff55, #ff5b7f55);
  animation: cd-pack-foil 3s linear infinite;
}
@keyframes cd-pack-foil { to { transform: translateX(12%) rotate(2deg); } }
.cd-pack-shine {
  position: absolute; top: 0; bottom: 0; width: 45%; filter: blur(2px);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: cd-pack-shine 2.2s ease-in-out infinite;
}
@keyframes cd-pack-shine { 0% { left: -50%; } 60%,100% { left: 120%; } }
.cd-pack-mark { position: relative; z-index: 2; font-size: 54px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)); }
.cd-pack-label { position: relative; z-index: 2; font-weight: 850; font-size: 17px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.55); }
.cd-pack-sub { position: relative; z-index: 2; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
@keyframes cd-pack-shake {
  0%,100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-4deg) scale(1.02); } 40% { transform: rotate(4deg) scale(1.02); }
  60% { transform: rotate(-3deg) scale(1.03); } 80% { transform: rotate(3deg) scale(1.03); }
}
@keyframes cd-pack-burst { to { transform: scale(1.6); opacity: 0; box-shadow: 0 0 120px 20px rgba(52,211,153,0.8); } }
.cd-pack-hint { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa3b8; margin: 0; }

.cd-reveal-hint { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa3b8; margin: 0; text-align: center; }
.cd-reveal-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1100px; }

/* Flip card: the front is the normal .ctile (defines size); a cover overlays it and
   swings away on reveal. Simpler + more robust than a dual-face 3D flip with variable content. */
.coinschip { font-weight: 700; color: var(--gold); background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; white-space: nowrap; cursor: pointer; transition: border-color .15s, transform .15s; }
.coinschip:hover { border-color: var(--gold); transform: translateY(-1px); }

/* Coins hub modal */
.hubov { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(5,7,11,.6); backdrop-filter: blur(3px); animation: cd-scrim-in .18s ease both; }
.hubcard { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 24px 60px -20px #000; }
.hubhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hubhead h3 { margin: 0; font-size: 17px; }
.hubx { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.hubx:hover { color: var(--fg); background: var(--panel2); }
.hubrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.hubrow:first-of-type { border-top: 0; }
.hubicon { font-size: 20px; width: 30px; text-align: center; flex: 0 0 auto; }
.hubt { font-weight: 700; font-size: 14px; }
.hubd { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.hubfoot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: right; }
.hubfoot b { color: var(--gold); }
.dailychip { color: var(--muted); font-size: 14px; }
.dailychip b { color: var(--fg); font-variant-numeric: tabular-nums; }
.cd-balance { font-size: 13px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.cardtoast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300;
  background: var(--panel2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.flipcard { position: relative; width: 178px; perspective: 1200px; cursor: pointer; }
.flipcard-face { position: relative; display: block; }
.flipcard .ctile { width: 100%; }
.flipcard-back {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden; z-index: 3;
  transform-origin: left center; backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.4,0.2,0.2,1), opacity 0.35s ease;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 42%, #24304e, transparent 70%), linear-gradient(160deg, #161d2e, #090c13 70%);
  border: 1px solid #2b3651;
  box-shadow: inset 0 0 0 4px #0c1018, inset 0 0 0 5px #223052, 0 14px 34px -18px #000;
}
.flipcard-back::before {
  content: ""; position: absolute; inset: 0; opacity: 0.7;
  background-image: repeating-linear-gradient(45deg, #7aa2f71a 0 1px, transparent 1px 9px), repeating-linear-gradient(-45deg, #bb9af714 0 1px, transparent 1px 9px);
  -webkit-mask: radial-gradient(70% 60% at 50% 45%, #000, transparent 75%);
  mask: radial-gradient(70% 60% at 50% 45%, #000, transparent 75%);
}
.flipcard-back-mark { font-size: 40px; filter: drop-shadow(0 0 18px rgba(122,162,247,0.55)); animation: cd-back-float 4.5s ease-in-out infinite; }
.flipcard-back-brand { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: #6b7ba6; }
@keyframes cd-back-float { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.flipcard.is-revealed .flipcard-back { transform: rotateY(-165deg); opacity: 0; pointer-events: none; }
.flipcard.is-revealed .ctile { animation: cd-pop 0.4s ease; }
@keyframes cd-pop { 0% { transform: scale(0.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* odds + EV caption shown once a card is flipped */
.flip-odds { margin-top: 6px; text-align: center; font-size: 11px; color: var(--muted); min-height: 15px; opacity: 0; transition: opacity .3s ease; }
.flipcard.is-revealed .flip-odds { opacity: 1; }
.flip-odds b { color: var(--fg); }

/* haul summary */
.cd-summary { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: cd-summary-in 0.4s ease both; }
@keyframes cd-summary-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cd-summary-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cd-summary-chip {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: capitalize;
  padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; color: var(--r-common);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.cd-summary-common { color: var(--r-common); }
.cd-summary-uncommon { color: var(--r-uncommon); }
.cd-summary-rare { color: var(--r-rare); }
.cd-summary-epic { color: var(--r-epic); }
.cd-summary-legendary { color: var(--r-legendary); }
.cd-summary-value { font-size: 16px; font-weight: 800; color: var(--green); }

.cd-reveal-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cd-reveal .btn { padding: 8px 20px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.cd-reveal .btn:not(.primary) { background: rgba(255,255,255,0.06); border: 1px solid #2a3346; color: #eaeef7; }
.cd-reveal .btn:not(.primary):hover { background: rgba(255,255,255,0.12); border-color: #46536e; }

@media (prefers-reduced-motion: reduce) {
  .cd-reveal, .cd-summary, .cd-pack, .cd-pack-foil, .cd-pack-shine, .flipcard-back, .flipcard.is-revealed .ctile { animation: none; }
  .flipcard-back { transition: opacity .2s ease; }
}

/* ── Sell button (own collection) ── */
.sellbtn {
  margin-top: 7px; width: 100%; font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; color: var(--fg); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px;
  transition: background .12s, border-color .12s, color .12s;
}
.sellbtn:hover { border-color: var(--red); color: var(--red); }
.sellbtn:disabled { opacity: .5; cursor: default; }

/* ── Collection filter/sort bar ── */
.collfilters {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px;
}
.collfilters input, .collfilters select {
  font-family: inherit; font-size: 13px; color: var(--fg);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; outline: none;
}
.collfilters input.collsearch { flex: 1 1 180px; min-width: 140px; }
.collfilters input:focus, .collfilters select:focus { border-color: var(--accent); }
.collfilters select { cursor: pointer; }

/* ── Collectors directory ── */
.collectorlist { display: flex; flex-direction: column; gap: 8px; }
.collectorrow {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; transition: border-color .12s, transform .12s;
}
.collectorrow:hover { border-color: var(--accent); transform: translateX(2px); }
.collectorrow .crank {
  font-size: 13px; font-weight: 800; color: var(--muted); width: 24px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.collectorrow .cavatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.collectorrow .cuser { font-weight: 700; flex: 1; }
.collectorrow .ccount { font-size: 12px; color: var(--muted); }
.collectorrow .cval { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ── Tile action buttons (list / offer) ── */
.tileactions { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.tileactions .sellbtn { margin-top: 0; }
.listbtn, .offerbtn {
  width: 100%; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  color: var(--fg); background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; transition: background .12s, border-color .12s, color .12s;
}
.listbtn:hover { border-color: var(--accent); color: var(--accent); }
.listbtn.on { border-color: var(--r-legendary); color: var(--r-legendary); }
.offerbtn { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.offerbtn:hover { filter: brightness(1.08); }
.listed-badge {
  position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800;
  color: var(--bg); background: var(--r-legendary); padding: 2px 6px; border-radius: 6px;
}
.cowner { font-size: 12px; color: var(--accent); font-weight: 600; }
.cnote { font-size: 11px; color: var(--muted); font-style: italic; margin: 2px 0; }

/* ── Market tab ── */
.markethdr { font-size: 15px; margin: 6px 0 12px; color: var(--muted); }
.tabbadge, .badge {
  display: inline-block; min-width: 16px; text-align: center; font-size: 11px; font-weight: 800;
  background: var(--red); color: #fff; border-radius: 999px; padding: 0 5px; margin-left: 4px;
}

/* ── Trade offers ── */
.offers { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.offergroup h3 { font-size: 14px; margin: 0 0 10px; }
.offerrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px;
}
.offerlegs { display: flex; align-items: center; gap: 14px; flex: 1; flex-wrap: wrap; }
.offerleg { display: flex; flex-direction: column; gap: 5px; }
.leglbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.legcards { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.offerarrow { font-size: 20px; color: var(--muted); }
.tchip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.tchip .tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--r, var(--muted)); }
.tchip.rarity-common { --r: var(--r-common); } .tchip.rarity-uncommon { --r: var(--r-uncommon); }
.tchip.rarity-rare { --r: var(--r-rare); } .tchip.rarity-epic { --r: var(--r-epic); }
.tchip.rarity-legendary { --r: var(--r-legendary); }
.tnone { color: var(--muted); }
.coindelta { font-weight: 800; font-variant-numeric: tabular-nums; }
.coindelta.plus { color: var(--r-uncommon); }
.coindelta.minus { color: var(--red); }
.offeractions { display: flex; gap: 6px; }
.offeractions .btn { font-size: 12px; padding: 6px 12px; }

/* ── Make-offer modal (extends .hubov/.hubcard) ── */
.offercard { max-width: 460px; }
.offerhint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pickgrid { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.pickcard {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px;
}
.pickcard.on { border-color: var(--accent); }
.pickcard .pickname { flex: 1; font-weight: 600; }
.coinrow { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.coinrow input {
  font-family: inherit; font-size: 14px; color: var(--fg); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px;
}
.offerfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offersummary { font-size: 13px; color: var(--muted); }
/* ── Coins hub: recent earnings ledger ── */
.hubsub {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  margin: 14px 4px 8px; font-weight: 700;
}
.hubsub:first-of-type { margin-top: 4px; }
.hubledger { display: flex; flex-direction: column; gap: 6px; }
.ledrow {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px;
}
.ledamt { font-weight: 800; color: var(--r-uncommon); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledreason { flex: 1; font-size: 13px; font-weight: 600; }
.ledtime { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hubempty { color: var(--muted); text-align: center; padding: 14px; font-size: 13px; }
