/* Card Vault — dark "vault" theme */
:root {
  --glow: 53,182,255; --bg-hi: #15224a;
  --bg: #070b16; --bg2: #0b1020; --panel: #0f1629; --panel2: #121b33; --line: #1f2a48; --line2: #2c3a63;
  --ink: #eef2ff; --ink-soft: #8d9ac4; --cream: #121b33;
  --yellow: #ffd23f; --blue: #35b6ff; --green: #2ee87a; --red: #ff3d5a; --red-dark: #d92645; --red-soft: rgba(255,61,90,.12); --orange: #ff9f3f; --purple: #b366ff; --teal: #35e2d0;
  --font: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1400px 800px at 12% -8%, var(--bg-hi, #15224a) 0%, transparent 60%) fixed, radial-gradient(900px 700px at 100% 100%, rgba(var(--glow), .14) 0%, transparent 60%) fixed, var(--bg); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
body { padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--blue); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(7,11,22,.88); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line2); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 1px; font-size: 17px; white-space: nowrap; }
.logo b { color: #fff; } .logo b::after { content: ''; }
.lens { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--yellow), #ff9f3f); position: relative; display: inline-block; box-shadow: 0 0 14px rgba(255,210,63,.45); }
.lens i { position: absolute; inset: 8px; border-radius: 4px; background: var(--bg); }
nav { display: flex; gap: 6px; }
.tab { background: transparent; color: var(--ink); border: 1.5px solid var(--line2); border-radius: 999px; padding: 6px 13px; font-weight: 800; font-family: var(--font); cursor: pointer; transition: background .12s, border-color .12s; }
.tab:hover { border-color: var(--yellow); }
.tab.on { background: rgba(255,210,63,.12); border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 12px rgba(255,210,63,.25); }
nav .tab[data-view=add] { border-color: var(--blue); } nav .tab[data-view=add].on { background: rgba(53,182,255,.14); color: var(--blue); box-shadow: 0 0 12px rgba(53,182,255,.3); }
nav .tab[data-view=quick] { border-color: var(--green); } nav .tab[data-view=quick].on { background: rgba(46,232,122,.12); color: var(--green); box-shadow: 0 0 12px rgba(46,232,122,.3); }

main { max-width: 1100px; margin: 0 auto; padding: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.panel.narrow { max-width: 480px; margin: 24px auto; }
h1 { margin: 0 0 6px; font-size: 26px; } h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: .3px; }
.muted { color: var(--ink-soft); } .center { text-align: center; } .ok { color: var(--green); font-weight: 800; } .err { color: var(--red); font-weight: 800; min-height: 1.2em; margin: 8px 0 0; }
label { display: block; font-weight: 800; font-size: 12px; margin: 10px 0 4px; color: var(--ink-soft); letter-spacing: .3px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel2); color: var(--ink); margin-top: 4px; }
select option { background: var(--panel2); color: var(--ink); }
input::placeholder { color: #5f6c98; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,182,255,.18); }
input[readonly] { color: var(--ink-soft); }
.row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* buttons: outlined neon pills */
.btn { background: rgba(255,255,255,.03); border: 1.5px solid var(--line2); border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer; transition: transform .08s, background .12s, border-color .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { border-color: var(--blue); background: rgba(53,182,255,.1); box-shadow: 0 0 12px rgba(53,182,255,.25); }
.btn:active { transform: translateY(2px) scale(.98); }
.btn.primary { background: linear-gradient(135deg, #ff9a2e, #ff5a1f); border-color: transparent; color: #1a0b00; box-shadow: 0 0 16px rgba(255,122,40,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 14px 18px; font-size: 16px; flex: 1; }
.btn.busy { background: rgba(255,210,63,.18); border-color: var(--yellow); color: var(--yellow); pointer-events: none; animation: pulse .6s infinite; }
.btn.done { background: rgba(46,232,122,.18); border-color: var(--green); color: var(--green); } .btn.fail { background: rgba(255,61,90,.18); border-color: var(--red); color: var(--red); }
.btn.ghost { background: rgba(7,11,22,.6); }
.btn.c-yellow { border-color: var(--yellow); color: var(--yellow); } .btn.c-yellow:hover { background: rgba(255,210,63,.12); box-shadow: 0 0 12px rgba(255,210,63,.3); }
.btn.c-blue { border-color: var(--blue); color: var(--blue); }
.btn.c-green { border-color: var(--green); color: var(--green); } .btn.c-green:hover { background: rgba(46,232,122,.12); box-shadow: 0 0 12px rgba(46,232,122,.3); }
.btn.c-purple { border-color: var(--purple); color: var(--purple); } .btn.c-purple:hover { background: rgba(179,102,255,.12); box-shadow: 0 0 12px rgba(179,102,255,.3); }
.btn.c-red { border-color: var(--red); color: var(--red); } .btn.c-red:hover { background: rgba(255,61,90,.12); box-shadow: 0 0 12px rgba(255,61,90,.3); }
.btn.c-teal { border-color: var(--teal); color: var(--teal); }
.btn.key { position: relative; } .btn.key::after { content: 'your key'; font-size: 9px; font-weight: 900; letter-spacing: .5px; background: var(--yellow); color: #1a1400; border-radius: 999px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
a.btn { text-decoration: none; display: inline-block; }
@keyframes pulse { 50% { opacity: .5; } }

/* camera */
.cam-wrap { position: relative; background: #000; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 72vh; margin: 0 auto 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#video { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72%; aspect-ratio: 63 / 88; border: 2px dashed rgba(255,255,255,.75); border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 2000px rgba(0,0,0,.35); }
.guide.good { border-color: var(--green); border-style: solid; }
.guide.bad { border-color: var(--orange); }
.guide .c { position: absolute; width: 22px; height: 22px; border: 4px solid #fff; }
.guide .tl { left: -4px; top: -4px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; } .guide .tr { right: -4px; top: -4px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.guide .bl { left: -4px; bottom: -4px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; } .guide .br { right: -4px; bottom: -4px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.guide.good .c { border-color: var(--green); } .guide.bad .c { border-color: var(--orange); }
.guide.slab { width: 62%; aspect-ratio: 33 / 54; border-radius: 6px; }
.cam-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; }
.step { background: var(--yellow); color: #1a1400; border-radius: 999px; padding: 4px 10px; font-weight: 900; font-size: 12px; }
.qbadge { flex: 1; background: rgba(7,11,22,.8); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 12px; color: var(--ink); }
.qbadge.good { background: rgba(46,232,122,.85); color: #03200e; } .qbadge.bad { background: rgba(255,159,63,.9); color: #2a1400; }
.cam-bottom { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 26px; }
.shutter { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 5px solid #000; box-shadow: 0 0 0 4px #fff, 0 0 20px rgba(255,255,255,.5); cursor: pointer; transition: transform .08s, background .15s; }
.shutter:active { transform: scale(.92); } .shutter.good { background: var(--green); } .shutter.bad { background: var(--orange); }
.shots { display: flex; gap: 10px; margin: 0 auto 10px; max-width: 420px; }
.shot { flex: 1; aspect-ratio: 63 / 88; background: var(--panel); border: 1.5px dashed var(--line2); border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: var(--ink-soft); font-size: 12px; overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; } .shot.done { border-style: solid; border-color: var(--green); }
.shot button { position: absolute; bottom: 6px; right: 6px; font-size: 11px; padding: 4px 8px; }
.progress { margin-top: 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; height: 26px; position: relative; overflow: hidden; }
.progress div { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: slide 1.1s infinite; } .progress span { position: relative; display: block; text-align: center; font-weight: 800; font-size: 12px; line-height: 24px; }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }

/* gallery: stat tiles */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tot { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; position: relative; overflow: hidden; }
.tot::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--c, var(--blue)); box-shadow: 0 0 12px var(--c, var(--blue)); }
.tot label { margin: 0; font-size: 10px; color: var(--ink-soft); letter-spacing: 1px; } .tot b { font-size: 21px; color: var(--c, #fff); display: block; margin-top: 2px; } .tot b.g { color: var(--green); }
.tot small { font-size: 10px; color: var(--ink-soft); display: block; }
.tot .ic { position: absolute; right: 10px; top: 9px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--c, var(--blue)) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--blue)) 50%, transparent); }
.tot.c1 { --c: var(--blue); } .tot.c2 { --c: var(--yellow); } .tot.c3 { --c: var(--green); } .tot.c4 { --c: var(--red); } .tot.c5 { --c: var(--teal); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .toolbar input { flex: 1; min-width: 180px; margin: 0; } .toolbar select { width: auto; margin: 0; }
.toolbar select { padding: 9px 10px; font-size: 14px; border-radius: 999px; }
.toolbar.actions { gap: 6px; } .toolbar.actions .btn { padding: 8px 12px; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 0 0 1px rgba(53,182,255,.3), 0 12px 30px rgba(0,0,0,.45); }
.tile img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; display: block; background: var(--panel2); }
.tile .t { padding: 8px 10px 10px; font-size: 12px; } .tile .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; } .tile .t small { color: var(--ink-soft); }
.tile .price { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-weight: 900; } .tile .price .m { color: var(--red); font-size: 15px; }
.tile .price .m.est { color: var(--orange); } .tile .price .m.est::before { content: '~'; }
.chip { position: absolute; top: 7px; left: 7px; background: var(--yellow); color: #1a1400; border-radius: 999px; font-size: 10px; font-weight: 900; padding: 2px 8px; letter-spacing: .3px; }
.chip.listed { background: var(--blue); color: #021322; } .chip.sold { background: var(--green); color: #03200e; } .chip.lot { background: var(--purple); color: #fff; }
.tile.listed-ebay .chip { background: var(--blue); color: #021322; }
.tile .cond { font-size: 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 1px 7px; color: var(--ink-soft); }
.tile .cond.ai { border-color: var(--yellow); color: var(--yellow); }
.slabtag { display: inline-block; background: rgba(53,182,255,.14); border: 1px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 1px 8px; font-weight: 900; font-size: 11px; }
.tile .q { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; margin-left: 4px; vertical-align: middle; }
.vchip { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #03200e; }
.vchip.ok { background: var(--green); } .vchip.none { background: #4a5680; color: #fff; } .vchip.partial, .vchip.estimate { background: var(--yellow); color: #1a1400; } .vchip.unverified { background: #4a5680; color: #fff; } .vchip.nophoto, .vchip.mismatch { background: var(--red); color: #fff; }
.qty { position: absolute; bottom: 60px; right: 7px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 12px; font-weight: 900; padding: 3px 8px; }
.tile .sel { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--blue); background: rgba(7,11,22,.7); display: grid; place-items: center; font-weight: 900; color: var(--green); }
.tile.selected { outline: 2px solid var(--yellow); outline-offset: -2px; } .tile.selected .sel { background: var(--yellow); color: #1a1400; border-color: var(--yellow); }
.nophoto { aspect-ratio: 63 / 88; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #1a1030 0 10px, var(--panel2) 10px 20px); font-weight: 900; color: var(--red); font-size: 12px; }
.nophoto small { font-weight: 700; color: var(--ink-soft); }
.whyline { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 6px; line-height: 1.2; }
.section { margin: 14px 0 6px; }
.section h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 15px; background: var(--panel); border: 1px solid var(--line2); border-left: 3px solid var(--yellow); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.section h3 small { color: var(--ink-soft); font-weight: 800; font-size: 12px; white-space: nowrap; }

/* detail */
.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-head img { width: 150px; border: 1px solid var(--line2); border-radius: 12px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos figure { margin: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--panel2); }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .photos figcaption { font-size: 10px; font-weight: 800; padding: 4px 6px; text-align: center; color: var(--ink-soft); }
.sales { font-size: 13px; } .sales div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dotted var(--line2); }
.vline { margin-top: 6px; font-size: 12px; font-weight: 800; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,159,63,.1); color: var(--orange); }
.vline.ok { background: rgba(46,232,122,.1); color: var(--green); border-color: rgba(46,232,122,.35); } .vline.mismatch { background: rgba(255,61,90,.12); color: var(--red); border-color: rgba(255,61,90,.4); }
.vline.estimate { background: rgba(255,210,63,.1); color: var(--yellow); }
.ebay-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: rgba(53,182,255,.08); border: 1px solid rgba(53,182,255,.35); border-radius: 12px; padding: 8px 10px; margin-top: 10px; }
.ebay-row .err { margin: 0; font-size: 12px; }
.est-panel { margin-top: 10px; border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; background: var(--panel2); font-size: 13px; }
.est-panel .src { font-size: 12px; margin-top: 4px; } .est-panel .src a { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickrow { margin-top: 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.pickrow .cand { display: block; width: 100%; text-align: left; margin-top: 6px; font-size: 13px; padding: 6px 10px; white-space: normal; } .pickrow .cand small { color: var(--ink-soft); font-weight: 700; }
.copy { font-size: 12px; padding: 4px 8px; }
.sp3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.sp3 div { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 6px; text-align: center; }
.sp3 label { display: block; font-size: 10px; font-weight: 800; color: var(--ink-soft); margin: 0; letter-spacing: 1px; }
.sp3 b { font-size: 15px; color: #fff; }
.sp3 input { width: 100%; text-align: center; font-weight: 900; margin-top: 2px; padding: 6px; }
.slab-panel { margin-top: 10px; background: linear-gradient(180deg, rgba(53,182,255,.1), transparent); border: 1px solid rgba(53,182,255,.35); }

/* misc */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--yellow); color: #1a1400; border-radius: 12px; padding: 10px 14px; font-weight: 800; z-index: 9; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 92vw; }
.toast.good { background: var(--green); color: #03200e; } .toast.bad { background: var(--red); color: #fff; }
.sticky-row { background: rgba(255,210,63,.06); border: 1px dashed rgba(255,210,63,.5); border-radius: 12px; padding: 6px 12px 10px; margin-bottom: 6px; }
.sticky-row label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; margin-top: 10px; color: var(--ink); }
.sticky-row label.check input { width: 20px; height: 20px; margin: 0; }
.retake-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,210,63,.12); border: 1px solid var(--yellow); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-weight: 800; }
.btn.toggle { display: inline-flex; align-items: center; gap: 6px; width: auto; flex: none; } .btn.toggle input { width: 18px !important; height: 18px; min-width: 0; flex: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; appearance: auto; accent-color: var(--yellow); }
.btn.toggle:has(input:checked) { background: rgba(255,210,63,.14); border-color: var(--yellow); color: var(--yellow); }
.modal { position: fixed; inset: 0; background: rgba(3,6,14,.75); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 20; padding: 14px; }
.modal-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); padding: 16px; width: min(480px, 100%); max-height: 90vh; overflow: auto; }
.modal[hidden], [hidden] { display: none !important; }
.sharerow { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px dotted var(--line2); padding: 8px 0; font-size: 13px; }
.sharerow .btn { padding: 4px 10px; font-size: 12px; }
#selBar select { width: auto; margin: 0; padding: 7px 10px; font-size: 13px; }
.rapidbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.qstat { font-weight: 900; font-size: 13px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 10px; }
.qstat.busy { border-color: var(--yellow); color: var(--yellow); } .qstat.ok { border-color: var(--green); color: var(--green); } .qstat.bad { border-color: var(--red); color: var(--red); }
.rapid-done { position: absolute; inset: 0; background: rgba(3,6,14,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 3; padding: 14px; }
.rd-shots { display: flex; gap: 10px; } .rd-shots img { width: 34vw; max-width: 170px; aspect-ratio: 63/88; object-fit: cover; border-radius: 10px; border: 2px solid #fff; }
.rd-next { font-size: 26px; padding: 18px 46px; border-radius: 18px; }
.rd-small { display: flex; gap: 8px; } .rd-small .btn { font-size: 12px; padding: 6px 10px; }
#detailsForm.rapid .percard, #detailsForm.rapid .percard-row { display: none; }
#detailsForm:not(.rapid) .rapid-only { display: none; }
.rd-count { width: 180px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.rd-count div { height: 100%; width: 0; background: var(--yellow); } .rd-count.go div { width: 100%; transition: width 1.6s linear; }
.pcrow { display: grid; grid-template-columns: 54px 1fr 92px; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 8px; margin-bottom: 6px; }
.pcrow img { width: 54px; aspect-ratio: 63/88; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); }
.pcrow b { display: block; font-size: 14px; } .pcrow small { color: var(--ink-soft); font-size: 12px; display: block; }
.pcrow input { margin: 0; padding: 8px; font-size: 16px; text-align: right; }
.pcrow input.saved { border-color: var(--green); } .pcrow input.err { border-color: var(--red); }
.otable { width: 100%; border-collapse: collapse; font-size: 12px; } .otable th, .otable td { padding: 6px; border-bottom: 1px solid var(--line2); text-align: left; white-space: nowrap; } .otable th { font-size: 10px; letter-spacing: 1px; color: var(--ink-soft); }
.perk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dotted var(--line2); font-size: 13px; }
.perk .tag { flex: none; font-size: 10px; font-weight: 900; letter-spacing: .5px; border-radius: 999px; padding: 2px 8px; margin-top: 2px; }
.perk .tag.free { background: rgba(46,232,122,.15); color: var(--green); border: 1px solid rgba(46,232,122,.4); }
.perk .tag.key { background: rgba(255,210,63,.15); color: var(--yellow); border: 1px solid rgba(255,210,63,.4); }
.perk .tag.owner { background: rgba(179,102,255,.15); color: var(--purple); border: 1px solid rgba(179,102,255,.4); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .detail-head { flex-direction: column; } nav { gap: 4px; } nav .tab { padding: 5px 8px; font-size: 11px; } .logo { font-size: 14px; } .lens { width: 24px; height: 24px; } .lens i { inset: 6px; } .tot b { font-size: 18px; } .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .totals { grid-template-columns: repeat(2, 1fr); } }

/* ---- themes: wallpaper + effects layers ---- */
#wall { position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; pointer-events: none; }
body.has-wall #wall { opacity: 1; }
body.has-wall { background: transparent; }
body.has-wall::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,16,.55), rgba(5,8,16,.78)); pointer-events: none; }
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.top, main, .toast, .modal { position: relative; z-index: 1; } .top { position: sticky; z-index: 5; } .toast, .modal { position: fixed; }
body.has-wall .panel, body.has-wall .tile, body.has-wall .tot, body.has-wall .toolbar select, body.has-wall .toolbar input { background-color: rgba(10,15,30,.82); backdrop-filter: blur(8px); }
.tot::before { animation: glowline 3.2s ease-in-out infinite; }
@keyframes glowline { 50% { box-shadow: 0 0 22px var(--c, var(--blue)), 0 0 4px var(--c, var(--blue)); } }
.tab.on, .btn.primary, .lens { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(1.12) saturate(1.1); } }
.tile:hover { box-shadow: 0 0 0 1px rgba(var(--glow),.45), 0 0 26px rgba(var(--glow),.35), 0 14px 34px rgba(0,0,0,.5); }
.tile:hover img { filter: saturate(1.1) brightness(1.05); }
.slabtag, .gradechip { box-shadow: 0 0 10px rgba(var(--glow),.35); }
@media (prefers-reduced-motion: reduce) { .tot::before, .tab.on, .btn.primary, .lens { animation: none; } }
/* picker strip */
.themes { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.th { flex: none; width: 112px; background: var(--panel); border: 1.5px solid var(--line2); border-radius: 14px; padding: 8px; color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s, box-shadow .12s; }
.th .sw { display: block; height: 54px; border-radius: 9px; background: radial-gradient(120% 90% at 20% 0%, var(--b1), var(--b0)); position: relative; overflow: hidden; }
.th .sw::before { content: ''; position: absolute; left: 16%; top: 22%; width: 44%; height: 44%; border-radius: 50%; background: radial-gradient(circle, var(--c1), transparent 70%); filter: blur(4px); }
.th .sw::after { content: ''; position: absolute; right: 12%; bottom: 10%; width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle, var(--c2), transparent 70%); filter: blur(3px); }
.th b { display: block; font-size: 12px; margin-top: 6px; } .th small { display: block; font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th:hover { transform: translateY(-2px); border-color: var(--c1, var(--blue)); }
.th.on { border-color: var(--c2, var(--yellow)); box-shadow: 0 0 16px rgba(var(--glow),.45); }
.th.up .sw { display: grid; place-items: center; font-size: 26px; background: repeating-linear-gradient(45deg, var(--panel2) 0 8px, var(--panel) 8px 16px); color: var(--ink-soft); }
.themebar-unused { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.themebar .btn { padding: 5px 10px; font-size: 12px; }

/* ---- sidebar (desktop) / drawer (phone) ---- */
.menu-btn { font-size: 18px; padding: 4px 12px; line-height: 1; }
.side { position: fixed; top: 0; left: 0; bottom: 0; width: 230px; padding: 14px 12px; background: rgba(8,12,24,.92); border-right: 1px solid var(--line2); backdrop-filter: blur(12px); z-index: 30; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; transform: translateX(-100%); transition: transform .22s ease; }
.side.open { transform: none; }
.side-back { position: fixed; inset: 0; background: rgba(3,6,14,.6); z-index: 29; }
.si { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px; color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.si .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line2); font-size: 15px; flex: none; }
.si small { display: block; font-size: 10px; color: var(--ink-soft); font-weight: 700; margin-top: 1px; }
.si:hover { background: rgba(var(--glow),.08); border-color: rgba(var(--glow),.35); }
.si.on { background: rgba(var(--glow),.12); border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 14px rgba(var(--glow),.3); }
.si.on .ico { border-color: var(--yellow); background: rgba(255,210,63,.12); }
.side-logo { padding: 2px 6px 10px; } .side .lens { animation: breathe 3.6s ease-in-out infinite; }
.si .lbl { white-space: nowrap; }
.side-user { padding: 6px 8px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; font-weight: 900; }
.side-user small { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.side-info { margin-top: auto; padding: 10px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.side-info b { color: var(--ink); }
@media (min-width: 960px) {
  .side { transform: none; z-index: 4; }
  .side-back { display: none !important; }
  .menu-btn { display: none; }
  main, .top { padding-left: 244px; }
  .top { padding-left: 258px; }
  .top { display: none; }
  main { padding-top: 18px; }
}

/* ---- bar / chips / tiles / modals (v1.20) ---- */
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bar input { flex: 1 1 220px; margin: 0; } .bar select { width: auto; margin: 0; padding: 9px 10px; border-radius: 999px; font-size: 14px; }
.bar .bar-gap { flex: 1 0 0; } .bar .btn.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,63,.1); }
.toolbar.filters { padding: 10px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(255,255,255,.02); }
.toolbar.actions { padding: 10px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(255,255,255,.02); }
.chip { top: 8px; left: 8px; font-size: 11px; padding: 4px 11px; border-radius: 999px; letter-spacing: .6px; font-weight: 900; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.vchip { top: 8px; right: 8px; width: 24px; height: 24px; }
.tot b { white-space: nowrap; } .tot b.n2 { font-size: 18px; } .tot b.n3 { font-size: 15px; } .tot b.n4 { font-size: 13px; }
.tot { padding-right: 46px; }
body[data-tiles=compact] .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } body[data-tiles=compact] .tile .t { padding: 6px 8px 8px; font-size: 11px; } body[data-tiles=compact] .chip { font-size: 9px; padding: 2px 8px; }
body[data-tiles=large] .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.nophoto.art { position: relative; background: var(--panel2); } .nophoto.art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.nophoto.art span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(7,11,22,.8); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; font-size: 10px; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.modal-box.wide { width: min(720px, 100%); }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; } .mhead h2 { margin: 0; }
.cz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 640px) { .cz { grid-template-columns: 1fr; } }
.cz-item { border: 1px solid var(--line2); border-radius: 14px; padding: 12px; background: var(--panel2); } .cz-item b { display: block; margin-bottom: 2px; } .cz-item small { display: block; color: var(--ink-soft); font-size: 12px; }
.cz-item img { margin-top: 8px; border-radius: 10px; border: 1px solid var(--line2); max-width: 100%; max-height: 120px; }
.seg .btn.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,63,.1); }
.themes { flex-wrap: wrap; overflow: visible; } .modal .themes .th { width: calc(25% - 8px); } @media (max-width: 640px) { .modal .themes .th { width: calc(50% - 5px); } }
.chip, .vchip, .tile .sel, .qty, .tile .slabtag { z-index: 2; }
.bar input { flex: 1 1 160px; } .bar .look { display: flex; gap: 8px; flex: none; }
@media (max-width: 700px) { .bar .look .btn { padding: 8px 10px; font-size: 12px; } }

/* tile text: uniform height, nothing wraps */
.tile .t { height: 86px; display: flex; flex-direction: column; }
.tile .t b, .tile .t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile .t small { font-size: 11px; line-height: 1.3; }
.tile .price { margin-top: auto; gap: 6px; }
.tile .price .m { font-size: 15px; line-height: 1; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile .price .m.p2 { font-size: 13px; } .tile .price .m.p3 { font-size: 11.5px; }
.tile .price .slabtag, .tile .price .cond { white-space: nowrap; flex: none; font-size: 10px; padding: 2px 7px; line-height: 1.3; }
.tile .t .ask { color: var(--ink-soft); font-size: 10px; margin-top: 2px; }
body[data-tiles=compact] .tile .t { height: 76px; } body[data-tiles=compact] .tile .price .m { font-size: 13px; }
body[data-tiles=large] .tile .t { height: 92px; } body[data-tiles=large] .tile .price .m { font-size: 17px; }

/* clean theme swatches */
.th .sw { height: 46px; border-radius: 10px; background: linear-gradient(135deg, var(--b1), var(--b0)); display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); }
.th .sw::before, .th .sw::after { display: none; }
.th .sw i { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: 0 0 10px currentColor; }
.th .sw i:first-child { background: var(--c1); color: var(--c1); } .th .sw i:last-child { background: var(--c2); color: var(--c2); width: 12px; height: 12px; }
.th b { font-size: 12px; } .th small { text-transform: capitalize; }
.ownerbox { margin-top: 10px; padding: 10px; border: 1px dashed rgba(179,102,255,.5); border-radius: 12px; background: rgba(179,102,255,.06); } .ownerbox b { font-size: 13px; }
.cz-item > small#wallNote, .cz-item > small#nophotoNote { margin-top: 6px; color: var(--yellow); }
.tot.click { cursor: pointer; } .tot.click:hover { border-color: var(--yellow); } .tot b.r { color: var(--red); }
.tot label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* theme tiles: the word is the swatch */
.th { padding: 0; overflow: hidden; background: linear-gradient(145deg, var(--b1), var(--b0)); border-color: rgba(var(--g), .25); min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.th .sw, .th .sw i, .th b { display: none; }
.th .word { font-family: Impact, "Arial Black", "Trebuchet MS", sans-serif; font-weight: 900; font-size: 21px; white-space: nowrap; letter-spacing: 1px; text-transform: uppercase; line-height: 1; padding: 0 8px; text-align: center;
  background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(var(--g), .55)); }
.th small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.th:hover { border-color: rgba(var(--g), .7); box-shadow: 0 0 18px rgba(var(--g), .35); }
.th.on { border-color: var(--c2); box-shadow: 0 0 22px rgba(var(--g), .55), inset 0 0 0 1px rgba(var(--g), .5); }
.modal .themes .th { width: calc(25% - 8px); } @media (max-width: 640px) { .modal .themes .th { width: calc(50% - 5px); } .th .word { font-size: 19px; } }

.chip.inline { position: static; display: inline-block; font-size: 11px; padding: 4px 12px; }
.chip.unlisted { background: var(--yellow); color: #1a1400; }
.statusrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.soldbox { border: 1px solid rgba(46,232,122,.4); background: rgba(46,232,122,.06); border-radius: 14px; padding: 4px 12px 12px; margin-bottom: 10px; }

/* card page: nothing escapes the panel */
.detail-head > div { flex: 1 1 0; min-width: 0; }
.detail-head .vline, .detail-head .est-panel, .detail-head .ebay-row, .detail-head .pickrow, .detail-head .slab-panel, .detail-head .totals { max-width: 100%; box-sizing: border-box; }
.vline { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vline.open { display: block; -webkit-line-clamp: unset; }
.est-panel, .pickrow { overflow-wrap: anywhere; }
.panel { overflow: hidden; }
main { overflow-x: hidden; }

.dh-nophoto { width: 150px; flex: none; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dh-nophoto img { width: 150px; aspect-ratio: 63/88; object-fit: cover; border-radius: 12px; border: 1px solid var(--line2); opacity: .85; }
.dh-nophoto .btn { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
.detail-head > img { width: 150px; flex: none; aspect-ratio: 63/88; object-fit: cover; }
@media (max-width: 560px) { .dh-nophoto, .detail-head > img { width: 120px; } .dh-nophoto img { width: 120px; } }

/* status chip: small, clickable */
.vchip { width: 18px; height: 18px; top: 9px; right: 9px; font-size: 11px; line-height: 1; border: 0; padding: 0; cursor: pointer; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .1s; }
.vchip:hover { transform: scale(1.25); }
.vchip.ok { background: var(--green); color: #03200e; } .vchip.estimate { background: var(--yellow); color: #1a1400; }
.vchip.unverified, .vchip.none, .vchip.partial { background: var(--orange); color: #2a1400; }
.vchip.mismatch, .vchip.nophoto { background: var(--red); color: #fff; }
.fixhead { display: flex; gap: 10px; align-items: center; } .fixhead img { width: 44px; aspect-ratio: 63/88; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); } .fixhead small { display: block; }
.tile.justback { outline: 2px solid var(--yellow); outline-offset: -2px; box-shadow: 0 0 22px rgba(var(--glow),.5); }

/* checklists */
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lcard { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 14px; cursor: pointer; transition: transform .12s, border-color .12s; } .lcard:hover { transform: translateY(-2px); border-color: var(--blue); }
.lcard b { font-size: 16px; display: block; } .lcard small { color: var(--ink-soft); display: block; margin-top: 2px; }
.pbar { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: 10px 0 6px; border: 1px solid var(--line2); } .pbar div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); box-shadow: 0 0 10px rgba(var(--glow),.6); }
.lstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; } .lstats div { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; } .lstats label { margin: 0; font-size: 10px; } .lstats b { font-size: 18px; }
.lgroup { margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; } .lgroup small { color: var(--ink-soft); }
.lrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.lrow.owned { border-color: rgba(46,232,122,.45); background: rgba(46,232,122,.05); }
.lrow .own { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); background: transparent; color: #03200e; font-weight: 900; cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.lrow.owned .own { background: var(--green); border-color: var(--green); }
.lrow .what b { display: block; font-size: 13px; } .lrow .what small { color: var(--ink-soft); display: block; font-size: 11px; }
.lrow .pr { text-align: right; font-size: 12px; white-space: nowrap; } .lrow .pr b { display: block; font-size: 14px; } .lrow .pr small { color: var(--ink-soft); }
.lrow .tag { display: inline-block; font-size: 9px; font-weight: 900; letter-spacing: .5px; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.lrow .tag.deal { background: rgba(46,232,122,.18); color: var(--green); border: 1px solid rgba(46,232,122,.4); } .lrow .tag.grade { background: rgba(53,182,255,.14); color: var(--blue); border: 1px solid var(--blue); } .lrow .tag.vault { background: rgba(255,210,63,.14); color: var(--yellow); border: 1px solid var(--yellow); }
.lrow .what { cursor: pointer; min-width: 0; } .lrow .what b, .lrow .what small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* favourites */
.tile .fav { position: absolute; top: 34px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(7,11,22,.7); color: #fff; font-size: 13px; cursor: pointer; display: grid; place-items: center; z-index: 2; opacity: .55; }
.tile .fav.on { opacity: 1; color: var(--red); } .tile .fav:hover { opacity: 1; transform: scale(1.15); }
.roi { margin-top: 10px; border: 1px solid rgba(53,182,255,.35); border-radius: 12px; padding: 8px 10px; background: rgba(53,182,255,.06); font-size: 13px; }
.roi b.g { color: var(--green); } .roi b.r { color: var(--red); }

/* import choice */
.impopts{display:flex;flex-direction:column;gap:10px}
.impopt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 16px;height:auto;white-space:normal}
.impopt b{font-size:15px}
.impopt span{font-size:12.5px;font-weight:500;opacity:.75;line-height:1.35}

/* checklist rows: left tag = where it is, right = your grade */
.lrow .tag.hand { background: rgba(46,232,122,.14); color: var(--green); border: 1px solid rgba(46,232,122,.5); }
.lrow .tag.listed { background: rgba(53,182,255,.14); color: var(--blue); border: 1px solid var(--blue); }
.lrow .tag.sold { background: rgba(255,255,255,.08); color: var(--ink-soft); border: 1px solid var(--line2); }
.lrow .pr.mine b { color: var(--green); font-size: 15px; }

/* live eBay listings */
.lrow { grid-template-columns: 34px 1fr auto auto; }
.lrow .live { padding: 5px 6px; font-size: 11px; letter-spacing: 0; font-weight: 800; border-radius: 8px; height: auto; }
.lv { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 6px; color: inherit; text-decoration: none; background: var(--panel); }
.lv:hover { border-color: var(--blue); }
.lv.hit { border-color: rgba(46,232,122,.5); background: rgba(46,232,122,.05); }
.lv img, .lv .noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--bg-hi); display: block; }
.lv .lvt { min-width: 0; } .lv .lvt b { display: block; font-size: 13px; } .lv .lvt small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv .lvt .g { color: var(--blue); }
.lv .lvp { text-align: right; white-space: nowrap; } .lv .lvp b { display: block; font-size: 15px; color: var(--green); } .lv .lvp small { font-size: 10px; color: var(--ink-soft); }
.live-seg { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .live-seg .btn { padding: 5px 10px; font-size: 12px; height: auto; }
.live-seg[data-seg=sort] .btn { font-size: 11px; padding: 4px 8px; opacity: .9; }

/* eBay button glow: red = deal, amber = auction ending soon */
@keyframes hotglow { 0%,100% { box-shadow: 0 0 4px rgba(255,80,80,.55), 0 0 10px rgba(255,80,80,.35); } 50% { box-shadow: 0 0 10px rgba(255,80,80,.95), 0 0 22px rgba(255,80,80,.6); } }
@keyframes soonglow { 0%,100% { box-shadow: 0 0 4px rgba(255,170,50,.5); } 50% { box-shadow: 0 0 12px rgba(255,170,50,.9); } }
.lrow .live.hot { border-color: #ff5a5a; color: #ff7a7a; background: rgba(255,80,80,.12); animation: hotglow 1.6s ease-in-out infinite; }
.lrow .live.soon { border-color: #ffb347; color: #ffc46b; background: rgba(255,170,50,.12); animation: soonglow 1.6s ease-in-out infinite; }
.c-amber { color: #ffc46b; }
.lstats .hotstat { grid-column: 1 / -1; }
.lv.deal { border-color: rgba(255,90,90,.6); background: rgba(255,80,80,.06); position: relative; }
.dealtag { position: absolute; top: -8px; left: 10px; font-size: 10px; font-weight: 900; background: #ff5a5a; color: #fff; border-radius: 999px; padding: 1px 7px; }

/* auction countdown next to the eBay button */
.lrow .live .tmr { color: #fff; font-weight: 800; margin-left: 6px; font-variant-numeric: tabular-nums; }
.lrow .live .tmr.urgent { text-shadow: 0 0 6px rgba(255,120,120,.9); }
.lv .tmr { color: #fff; font-variant-numeric: tabular-nums; }
#listRule { max-width: 170px; }

/* green = buy-it-now at/under book */
@keyframes dealglow { 0%,100% { box-shadow: 0 0 4px rgba(46,232,122,.5); } 50% { box-shadow: 0 0 12px rgba(46,232,122,.9); } }
.lrow .live.deal { border-color: var(--green); color: var(--green); background: rgba(46,232,122,.12); animation: dealglow 1.8s ease-in-out infinite; }
span.c-green { color: var(--green); } span.c-red { color: #ff7a7a; }

/* the listing that lit the button */
.trig { border-radius: 14px; padding: 10px; margin-bottom: 12px; border: 1px solid; }
.trig .lv { margin: 0; background: rgba(0,0,0,.25); }
.trig .triglabel { font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.trig.hot { border-color: #ff5a5a; background: rgba(255,80,80,.1); box-shadow: 0 0 18px rgba(255,80,80,.35); } .trig.hot .triglabel { color: #ff7a7a; }
.trig.deal { border-color: var(--green); background: rgba(46,232,122,.08); box-shadow: 0 0 18px rgba(46,232,122,.3); } .trig.deal .triglabel { color: var(--green); }
.trig.soon { border-color: #ffb347; background: rgba(255,170,50,.08); box-shadow: 0 0 18px rgba(255,170,50,.3); } .trig.soon .triglabel { color: #ffc46b; }
.dealtag.g { background: var(--green); color: #03200e; } .dealtag.y { background: #ffb347; color: #2a1800; } .dealtag.r { background: #ff5a5a; }

/* bidding marks */
.lrow .live .hammer { margin-left: 5px; }
.bidtog { display: block; margin: 6px 0 0 auto; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.bidtog.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,63,.12); }

/* tile value colour = up/down vs what you paid */
.tile .t { position: relative; }
.tile .t.pl-up .price .m { color: var(--green); }
.tile .t.pl-down .price .m { color: var(--red); }
.tile .t.pl-none .price .m { color: var(--yellow); }
.tile .t .price .m.est { color: var(--orange); }
.tile .pl { position: absolute; right: 6px; top: -22px; font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 999px; background: rgba(5,10,20,.85); backdrop-filter: blur(4px); line-height: 1.3; }
.tile .pl.up { color: var(--green); border: 1px solid rgba(46,232,122,.5); }
.tile .pl.down { color: var(--red); border: 1px solid rgba(255,90,90,.5); }
.tile .pl i { font-style: normal; font-weight: 700; opacity: .8; margin-left: 5px; font-size: 10px; }

/* community */
.si { position: relative; }
.badge { position: absolute; right: 10px; top: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff3d5a; color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 10px rgba(255,61,90,.7); }
.badge.inline { position: static; display: inline-grid; margin-left: 6px; vertical-align: middle; }
.seg-t.on { border-color: var(--yellow); color: var(--yellow); background: rgba(255,210,63,.1); }
.ctile { position: relative; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; cursor: pointer; }
.ctile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; } .ctile img.art { opacity: .5; }
.ctile .own { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 900; background: rgba(5,10,20,.8); color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 2px 8px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctile .g { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 900; background: rgba(5,10,20,.8); color: var(--yellow); border: 1px solid var(--yellow); border-radius: 999px; padding: 2px 8px; }
.ctile .np { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-size: 10px; font-weight: 900; color: var(--yellow); background: rgba(5,10,20,.8); border: 1px solid rgba(255,210,63,.5); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ctile .t { padding: 8px 10px 10px; height: 72px; } .ctile .t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ctile .t small { display: block; color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile .t .v { color: var(--green); font-weight: 900; font-size: 14px; margin-top: 4px; display: block; }
.cview { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; } .cview img { width: 100%; border-radius: 12px; display: block; background: var(--bg-hi); } .cview img.art { opacity: .5; }
@media (max-width: 480px) { .cview { grid-template-columns: 110px 1fr; } }
.cview .k { color: var(--ink-soft); font-size: 12px; } .cview .big { font-size: 22px; font-weight: 900; color: var(--green); }
.cview textarea { width: 100%; min-height: 70px; margin-top: 8px; }
.trow { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; }
.trow.unread { border-color: #ff3d5a; } .trow img, .trow .noimg { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg-hi); }
.trow b { display: block; font-size: 13px; } .trow small { display: block; color: var(--ink-soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.trow .n { background: #ff3d5a; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 900; padding: 0 6px; }
.chatbox { display: flex; flex-direction: column; max-height: 90vh; }
.chatcard { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; } .chatcard img { width: 34px; height: 46px; object-fit: cover; border-radius: 6px; }
.chatlog { flex: 1; overflow: auto; min-height: 200px; max-height: 50vh; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; background: var(--panel); border: 1px solid var(--line2); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: rgba(53,182,255,.14); border-color: var(--blue); } .msg small { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 3px; }
#commPick.on { border-color: var(--blue); color: var(--blue); background: rgba(53,182,255,.12); }

/* flip card (card page hero, community viewer) */
.flip { position: relative; width: 150px; aspect-ratio: 63 / 88; perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; flex: none; }
.flip:active { cursor: grabbing; }
.flip .inner { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.flipped .inner { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line2); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--bg-hi); }
.flip .face.back { transform: rotateY(180deg); }
.flip .face.art { opacity: .5; }
.flip .noback { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-soft); border-style: dashed; background: var(--panel); }
.flip .fliphint { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font-size: 10px; color: var(--ink-soft); white-space: nowrap; pointer-events: none; }
.flip.slab { aspect-ratio: 33 / 54; } .flip.slab .face { object-fit: contain; background: #0f1418; }
.detail-head .dh-flip { margin-bottom: 20px; }
.cview .cv-flip { width: 100%; }

/* ===== layout tidy-up: uniform controls on every screen size ===== */
/* hamburger you can actually hit */
.menu-btn { width: 46px; height: 46px; padding: 0; font-size: 24px; display: grid; place-items: center; border: 1.5px solid var(--yellow); color: var(--yellow); border-radius: 14px; background: rgba(255,210,63,.1); box-shadow: 0 0 14px rgba(var(--glow),.35); }
/* gallery top bar */
.gbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.gbar-search { display: grid; grid-template-columns: 1fr 170px; gap: 8px; } .gbar-search input, .gbar-search select { margin: 0; width: 100%; min-width: 0; }
.gbar-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .gbar-btns .btn { width: 100%; justify-content: center; white-space: nowrap; padding: 10px 8px; }
@media (max-width: 560px) { .gbar-search { grid-template-columns: 1fr 140px; } .gbar-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* filter & tool drawers: tidy grids instead of wrapping pills */
.toolbar.filters, .toolbar.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; align-items: stretch; }
.toolbar.filters select, .toolbar.filters .btn.toggle, .toolbar.actions .btn { width: 100%; min-width: 0; margin: 0; justify-content: center; text-align: left; }
.toolbar.filters select { border-radius: 12px; }
.toolbar.filters .btn.toggle { justify-content: flex-start; }
@media (max-width: 560px) { .toolbar.filters, .toolbar.actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .toolbar.filters select { font-size: 13px; padding: 9px 8px; } }
/* checklist page */
.lbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .lbar .bar-gap { flex: 1; }
.lopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; padding: 10px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(255,255,255,.02); }
.lopts .btn, .lopts select { width: 100%; min-width: 0; margin: 0; justify-content: center; white-space: nowrap; }
@media (max-width: 560px) { .lopts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lsearch { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; } .lsearch input { grid-column: 1 / -1; } .lsearch input, .lsearch select { width: 100%; min-width: 0; margin: 0; }
.lsearch select[hidden] { display: none; }
/* big screens: content hugs the sidebar, tiles scale with the window instead of shrinking */
@media (min-width: 960px) {
  main { margin: 0 0 0 244px; max-width: none; padding: 18px 22px 18px 8px; }
  .wrapmax { max-width: 1480px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(165px, 11.5vw, 215px), 1fr)); gap: 14px; }
  body[data-tiles=compact] .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 9vw, 170px), 1fr)); }
  body[data-tiles=large] .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(210px, 15vw, 280px), 1fr)); }
  .totals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1700px) { main { padding-right: 40px; } }
/* desktop: cap the content width and let the button row size naturally */
@media (min-width: 960px) {
  main { max-width: 1520px; }
  .gbar { flex-direction: row; align-items: center; }
  .gbar-search { flex: 1; grid-template-columns: 1fr 190px; }
  .gbar-btns { display: flex; } .gbar-btns .btn { width: auto; }
  .toolbar.actions { display: flex; flex-wrap: wrap; } .toolbar.actions .btn { width: auto; }
  .lopts { display: flex; flex-wrap: wrap; } .lopts .btn, .lopts select { width: auto; }
}
/* checklist search row adapts to how many dropdowns are showing */
.lsearch { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
/* checklist rows on phones: name gets the full width, eBay button drops under the price */


/* checklist rows: the card comes first, prices stay small */
.lrow .what b { white-space: normal; overflow: visible; line-height: 1.25; font-size: 13.5px; display: block; max-height: 2.5em; overflow: hidden; }
.lrow .what b .nm { color: var(--ink); } .lrow .what b .setn { color: var(--ink-soft); font-weight: 700; }
.lrow .pr { max-width: 42%; font-size: 11px; line-height: 1.2; }
.lrow .pr b { font-size: 14px; } .lrow .pr .lbl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); }
.lrow .pr small { display: block; font-size: 10.5px; white-space: normal; }
.lrow .pr.mine b { font-size: 15px; }
@media (max-width: 520px) { .lrow .pr { max-width: 46%; } .lrow .what b { font-size: 13px; } }
/* price column: label inline on desktop; on phones the prices become a single small line under the name */
.lrow .pr .lbl { display: inline; margin-right: 4px; }
.lrow .pr b { display: inline; } .lrow .pr small { display: block; }
@media (max-width: 520px) {
  .lrow { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "own what live" "own pr pr"; row-gap: 2px; }
  .lrow .own { grid-area: own; } .lrow .what { grid-area: what; } .lrow .live { grid-area: live; justify-self: end; align-self: start; }
  .lrow .pr { grid-area: pr; max-width: none; text-align: left; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: 11px; }
  .lrow .pr b { font-size: 13px; } .lrow .pr small { display: inline; white-space: normal; }
  .lrow .pr.mine { gap: 0 6px; } .lrow .pr.mine b { font-size: 14px; }
  .lrow .what b { max-height: none; }
}
@media (min-width: 521px) { .lrow .pr { min-width: 210px; max-width: none; white-space: nowrap; } .lrow .pr small { white-space: nowrap; } }

/* lightbox */
.photos .photo-open { padding: 0; border: 0; background: transparent; width: 100%; display: block; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: #04070f; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; } .lb-cap { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.lb-stage { flex: 1; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; margin: 0 auto; display: block; object-fit: contain; border-radius: 10px; touch-action: pinch-zoom; }
.lb-nav { width: 44px; height: 64px; border: 0; background: transparent; color: var(--ink); font-size: 34px; cursor: pointer; } .lb-nav:hover { color: var(--yellow); }
body.noscroll { overflow: hidden; }

/* community members + profiles */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
@media (max-width: 560px) { .mgrid { grid-template-columns: 1fr; } }
.mcard { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 12px; cursor: pointer; }
.mcard:hover { border-color: var(--blue); box-shadow: 0 0 16px rgba(var(--glow),.25); }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 22px; flex: none; }
.avatar.txt { background: hsl(var(--h) 60% 28%); color: #fff; }
.avatar.lg, .avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); font-size: 32px; }
.mcard .mi { min-width: 0; } .mcard .mi b { display: block; font-size: 15px; } .mcard .mi small { display: block; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .mi .v { color: var(--green); font-weight: 900; } .mcard .mi .note { color: var(--ink); white-space: normal; }
.mcard .top { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); }
.profhead { margin-bottom: 10px; } .profrow { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; } .tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); } .tbl th { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }

/* stat tiles: never let a number or label spill out of its box */
.tot { min-width: 0; } .tot b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tot label { white-space: normal; line-height: 1.2; min-height: 2.4em; }
.tot b small { font-size: 10px; display: inline; }
/* owner stats sit in a narrow panel: fit as many as the width allows, never a fixed 5 */
#ownerTotals { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
@media (max-width: 560px) { #ownerTotals { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* community card viewer: big card up top, details underneath */
.cview.big { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.cview.big .cv-stage { display: flex; justify-content: center; padding: 6px 0 22px; }
.cview.big .cv-flip { width: min(72vw, 360px); }
.cview.big .cv-flip.slab { width: min(66vw, 330px); }
.cview.big .cv-info { text-align: center; }
.cview.big .cv-info textarea { text-align: left; }
.cview.big .cv-info .row { justify-content: center; }
@media (min-width: 720px) { .cview.big .cv-flip { width: 380px; } .cview.big .cv-flip.slab { width: 340px; } }

/* zoomed card sits above everything and pans */
.flip { transform-origin: center center; transition: transform .12s ease-out; }
.flip.zoomed { z-index: 5; cursor: move; transition: none; }
.flip.zoomed .fliphint { display: none; }
.cv-stage, .detail-head { overflow: visible; }
.modal-box .mhead { position: relative; z-index: 7; }
.flip.zoomed::after { content: 'double-tap to reset'; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%) scale(calc(1 / var(--z, 1))); font-size: 10px; color: #fff; background: rgba(5,10,20,.7); padding: 2px 8px; border-radius: 999px; pointer-events: none; white-space: nowrap; }

/* grade write-up: one line per area, never clamped */
.vline .gnotes { margin-top: 6px; font-weight: 600; display: grid; gap: 3px; } .vline .gnotes b { font-weight: 900; margin-right: 4px; }
.detail-head .vline:has(.gnotes) { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* giveaway */
.spot { text-align: center; margin-top: 14px; overflow: hidden; border-color: rgba(255,210,63,.45); box-shadow: 0 0 40px rgba(179,102,255,.2), 0 0 0 1px rgba(255,210,63,.15) inset; }
.spot-kicker { font-size: 11px; letter-spacing: 3px; color: var(--yellow); font-weight: 900; }
.spot-title { margin: 4px 0 0; font-size: 22px; }
.spot .stage { position: relative; display: grid; place-items: center; padding: 26px 0 14px; perspective: 1400px; }
.spot .haze { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(179,102,255,.35) 0%, rgba(53,182,255,.22) 35%, rgba(255,210,63,.08) 60%, transparent 72%); filter: blur(22px); animation: spotbreathe 5s ease-in-out infinite; pointer-events: none; }
.spot .beam { position: absolute; top: -30px; width: 160px; height: 360px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); filter: blur(6px); opacity: .55; pointer-events: none; }
.spot .card3d { position: relative; width: min(56vw, 220px); aspect-ratio: 63 / 88; transform-style: preserve-3d; animation: spotspin 14s linear infinite; cursor: grab; touch-action: pan-y; }
.spot .card3d.slab { aspect-ratio: 33 / 54; width: min(50vw, 200px); }
.spot .card3d.paused { animation-play-state: paused; }
.spot .face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), 0 0 40px rgba(179,102,255,.25); background: #0f1418; }
.spot .face img { width: 100%; height: 100%; object-fit: cover; display: block; } .spot .card3d.slab .face img { object-fit: contain; }
.spot .face.back { transform: rotateY(180deg); }
.spot .face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); mix-blend-mode: screen; animation: spotsheen 14s linear infinite; }
@keyframes spotspin { from { transform: rotateY(0deg) rotateX(4deg); } to { transform: rotateY(360deg) rotateX(4deg); } }
@keyframes spotsheen { 0% { transform: translateX(-120%); } 50% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
@keyframes spotbreathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.spot-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 12px; } .spot-meta .schip { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink-soft); font-weight: 700; }
.btn.gold.spot-go { display: inline-block; font-size: 16px; padding: 12px 26px; background: linear-gradient(135deg, #ffd23f, #ff8a3d); color: #1a1200; border: 0; box-shadow: 0 10px 30px rgba(255,160,40,.35); text-decoration: none; }
.btn.gold.spot-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.spot-fine { display: block; margin-top: 10px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .spot .card3d, .spot .haze, .spot .face::after { animation: none; } }
.gapick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; padding: 4px; }
.gapc { border: 1.5px solid var(--line2); border-radius: 12px; padding: 6px; cursor: pointer; background: var(--panel2); } .gapc img, .gapc .noimg { width: 100%; aspect-ratio: 63/88; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--bg-hi); }
.gapc b { display: block; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gapc small { display: block; font-size: 10px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gapc .v { color: var(--green); font-weight: 900; }
.gapc.on { border-color: var(--yellow); box-shadow: 0 0 14px rgba(255,210,63,.4); }

.si.si-live { text-decoration: none; color: inherit; border-color: rgba(255,210,63,.45); box-shadow: 0 0 14px rgba(255,210,63,.18) inset; }
.si.si-live small { color: var(--yellow); }

/* plans / store */
.ubadge { display: inline-block; font-size: 12px; margin-left: 4px; } .ubadge.p-pro { color: var(--yellow); text-shadow: 0 0 8px rgba(255,210,63,.6); } .ubadge.p-supporter { color: #b366ff; } .ubadge.p-owner { }
.tiers3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.tier { background: var(--panel2); border: 1.5px solid var(--line2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; } .tier.pro { border-color: rgba(255,210,63,.55); box-shadow: 0 0 24px rgba(255,210,63,.12); }
.tier .tname { font-weight: 900; font-size: 14px; } .tier .tprice { font-size: 24px; font-weight: 900; margin: 2px 0 6px; } .tier .tprice small { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.tier ul { margin: 0 0 12px; padding-left: 16px; font-size: 12.5px; color: var(--ink-soft); flex: 1; } .tier li { margin: 3px 0; } .tier .btn { width: 100%; justify-content: center; }
.si[href] { text-decoration: none; color: inherit; }

/* control center / pool / packs / account */
.ctabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-bottom: 10px; } .ctabs .btn { justify-content: center; } .ctabs .btn.on { background: var(--blue); color: #061423; border-color: var(--blue); box-shadow: 0 0 14px rgba(53,182,255,.35); }
.tbl.edit input, .tbl.edit select { padding: 5px 6px; font-size: 12px; border-radius: 8px; }
.limgrid, .filtgrid, .promogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 10px; } .limgrid label small { display: block; font-size: 10px; margin-top: 2px; }
.badgegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } .bcard { background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; text-align: center; } .bprev { height: 70px; display: grid; place-items: center; font-size: 42px; } .bprev img { width: 60px; height: 60px; object-fit: contain; }
.bimg { width: 1.1em; height: 1.1em; vertical-align: -0.2em; object-fit: contain; }
.packgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.pack { position: relative; background: linear-gradient(160deg, var(--panel2), var(--bg-hi)); border: 1.5px solid var(--line2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.pack.feat { border-color: var(--yellow); box-shadow: 0 0 26px rgba(255,210,63,.18); } .pack.out { opacity: .55; } .pack.off { border-style: dashed; }
.pack .pcover { height: 110px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, rgba(179,102,255,.35), rgba(53,182,255,.1) 60%, transparent 75%), var(--bg); display: grid; place-items: center; font-size: 54px; overflow: hidden; position: relative; } .pack .pcover img { width: 100%; height: 100%; object-fit: cover; }
.pfeat { position: absolute; top: 8px; left: 8px; font-size: 9px; letter-spacing: 2px; font-style: normal; font-weight: 900; color: #1a1200; background: var(--yellow); padding: 2px 7px; border-radius: 999px; }
.pack b { font-size: 14px; } .pack > small { font-size: 11px; color: var(--ink-soft); } .pmeta { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; } .pmeta span { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg-hi); border: 1px solid var(--line2); } .pmeta span:first-child { color: var(--green); }
.pack .btn.rip { margin-top: auto; justify-content: center; font-size: 15px; }
.ripbal { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; } .ripbal label { font-size: 10px; letter-spacing: 2px; color: var(--ink-soft); font-weight: 900; } .ripbal b { font-size: 20px; color: var(--green); }
/* the rip */
.ripwrap { position: fixed; inset: 0; z-index: 400; background: rgba(4,6,16,.94); display: grid; place-items: center; overflow: auto; } .ripwrap[hidden] { display: none; } body.noscroll { overflow: hidden; }
.ripstage { position: relative; width: min(96vw, 940px); min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.ripbg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(179,102,255,.38), rgba(53,182,255,.12) 40%, transparent 70%); filter: blur(30px); pointer-events: none; animation: spotbreathe 4s ease-in-out infinite; }
.ripflash { position: fixed; inset: 0; background: radial-gradient(circle, rgba(255,170,60,.55), rgba(255,120,30,.15) 50%, transparent 75%); opacity: 0; pointer-events: none; } .ripflash.go { animation: flashgo .9s ease-out; }
.rippack { position: relative; width: 230px; aspect-ratio: 63/88; cursor: pointer; transform-style: preserve-3d; animation: packfloat 3s ease-in-out infinite; border-radius: 16px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
.rippack .rp-body { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.18); background: #0d1026; box-shadow: inset 0 0 60px rgba(179,102,255,.25), 0 0 40px rgba(179,102,255,.35); }
.rippack .rp-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rippack .rp-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); text-align: center; } .rp-label small { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; } .rp-label b { display: block; font-size: 14px; letter-spacing: 3px; color: var(--yellow); text-shadow: 0 0 14px rgba(255,210,63,.7); }
.rippack .rp-foil { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.28) 42%, rgba(255,255,255,.05) 50%, transparent 65%); background-size: 250% 100%; animation: foil 2.6s linear infinite; pointer-events: none; z-index: 2; mix-blend-mode: screen; }
.rippack .rp-tear { position: absolute; left: -4px; right: -4px; top: 18%; height: 0; border-top: 2px dashed rgba(255,255,255,.35); opacity: 0; transition: opacity .3s; z-index: 3; } .rippack.nudge .rp-tear, .rippack:hover .rp-tear { opacity: 1; } .rippack.nudge { animation: packfloat 3s ease-in-out infinite, nudge 1.2s ease-in-out infinite; }
.rippack.torn { animation: ripburst .7s ease-in forwards; } .rippack.torn .rp-body { clip-path: polygon(0 20%, 8% 17%, 16% 21%, 25% 16%, 34% 20%, 43% 17%, 52% 21%, 61% 16%, 70% 20%, 79% 17%, 88% 21%, 100% 18%, 100% 100%, 0 100%); }
.ripcards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; perspective: 1200px; max-width: 940px; }
.ripcard { width: 136px; aspect-ratio: 63/88; opacity: 0; transform: translateY(-140px) scale(.5) rotate(-10deg); transition: transform .55s cubic-bezier(.2,1.3,.4,1), opacity .4s; cursor: pointer; position: relative; border-radius: 12px; --glow: rgba(255,255,255,.35); }
.ripcard.deal { opacity: 1; transform: none; }
.ripcard::before { content: ''; position: absolute; inset: -3px; border-radius: 14px; background: var(--glow); filter: blur(14px); opacity: 0; transition: opacity .5s; z-index: 0; } .ripcard.flip::before, .ripcard.tease::before { opacity: .9; }
.ripcard.tease { animation: tease .9s ease-in-out infinite; } .ripcard.tease::before { animation: glowpulse .9s ease-in-out infinite; }
.rc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,1.2,.4,1); z-index: 1; } .ripcard.flip .rc-in { transform: rotateY(180deg); }
.rc-back, .rc-front { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #0f1418; border: 1.5px solid rgba(255,255,255,.14); box-shadow: 0 16px 36px rgba(0,0,0,.6); }
.rc-back { display: grid; place-items: center; font-size: 60px; } .rc-back img { width: 100%; height: 100%; object-fit: cover; }
.rc-front { transform: rotateY(180deg); } .rc-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 7px 6px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.9) 40%); } .rc-txt b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-txt small { display: block; font-size: 9px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-txt em { font-style: normal; font-weight: 900; color: var(--green); font-size: 13px; } .rtag { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 900; color: var(--glow-txt, #fff); }
.ripcard.flip .rc-front { border-color: var(--glow-txt, rgba(255,255,255,.3)); }
.r-common { --glow: rgba(255,255,255,.45); --glow-txt: #e8ecff; } .r-uncommon { --glow: rgba(46,232,122,.75); --glow-txt: #2ee87a; } .r-rare { --glow: rgba(53,182,255,.85); --glow-txt: #35b6ff; } .r-epic { --glow: rgba(179,102,255,.95); --glow-txt: #c48bff; } .r-legendary { --glow: rgba(255,150,40,1); --glow-txt: #ffb340; }
.r-legendary.flip { transform: scale(1.12); z-index: 3; } .r-legendary.flip::before { opacity: 1; filter: blur(20px); animation: glowpulse 1.6s ease-in-out infinite; } .r-epic.flip { transform: scale(1.06); }
.r-epic-txt { color: #c48bff; font-weight: 900; } .r-legendary-txt { color: #ffb340; font-weight: 900; text-shadow: 0 0 14px rgba(255,150,40,.7); }
.ripdone { text-align: center; } .ripdone b { display: block; font-size: 20px; color: var(--yellow); text-shadow: 0 0 20px rgba(255,210,63,.5); } .ripdone small { color: var(--ink-soft); }
@keyframes packfloat { 0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(10deg) rotateX(-4deg) translateY(-10px); } }
@keyframes nudge { 0%, 100% { filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)) brightness(1); } 50% { filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)) brightness(1.25); } }
@keyframes foil { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ripburst { 0% { transform: scale(1); opacity: 1; } 30% { transform: scale(1.08) rotate(-2deg); } 100% { transform: scale(1.4) translateY(-40px); opacity: 0; } }
@keyframes tease { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.06); } }
@keyframes glowpulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes flashgo { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.pcover .pcimg { width: 100%; height: 100%; object-fit: cover; } .pcover .ptop { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 10px; font-weight: 900; color: #1a1200; background: var(--yellow); padding: 2px 7px; border-radius: 999px; }
.pcover.small { width: 150px; height: 100px; margin: 0 auto 10px; border-radius: 12px; overflow: hidden; position: relative; display: grid; place-items: center; font-size: 48px; background: var(--bg); }
/* themed dialogs */
.vdlg { position: fixed; inset: 0; z-index: 500; background: rgba(4,6,16,.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; } .vdlg[hidden] { display: none; }
.vdlg-box { width: min(92vw, 420px); background: var(--panel); border: 1.5px solid var(--line2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 40px rgba(179,102,255,.15); animation: vpop .18s ease-out; }
.vdlg-box h3 { margin: 0 0 8px; font-size: 17px; text-align: center; } .vdlg-body { font-size: 14px; color: var(--ink); line-height: 1.45; text-align: center; } .vdlg-box input { margin-top: 10px; } .vdlg-acts { margin-top: 14px; justify-content: center; gap: 8px; } .vdlg-acts .btn { min-width: 110px; justify-content: center; }
@keyframes vpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
/* account */
.winback { border-color: var(--yellow); background: linear-gradient(135deg, rgba(255,210,63,.1), rgba(179,102,255,.1)); }
.usage > div { display: grid; grid-template-columns: 70px 1fr 44px; gap: 8px; align-items: center; margin: 4px 0; } .usage label { font-size: 11px; color: var(--ink-soft); } .ubar { height: 10px; border-radius: 999px; background: var(--bg-hi); overflow: hidden; } .ubar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple, #b366ff)); } .usage b { font-size: 12px; text-align: right; } .usage small { grid-column: 2 / span 2; font-size: 10px; color: var(--ink-soft); }
.heldlist, .packlist { display: flex; flex-wrap: wrap; gap: 6px; } .chip2 { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); } .chip2 em { font-style: normal; color: var(--green); font-weight: 800; }
.suglist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; } .sug { background: var(--panel2); border: 1.5px solid var(--line2); border-radius: 12px; padding: 10px 12px; cursor: pointer; } .sug:hover { border-color: var(--blue); box-shadow: 0 0 12px rgba(53,182,255,.25); } .sug b { display: block; font-size: 14px; } .sug small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.shiprow { border: 1px solid var(--line2); border-radius: 12px; padding: 10px; margin: 8px 0; background: var(--panel2); } .shhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .shbody { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 8px 0; font-size: 13px; } @media (max-width: 640px) { .shbody { grid-template-columns: 1fr; } }
.pill { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: var(--bg-hi); } .pill.paid { color: var(--blue); } .pill.shipped, .pill.delivered { color: var(--green); } .pill.unpaid { color: var(--yellow); } .pill.cancelled { color: var(--red); }
#poolModeWrap input[type=text], #poolBin { display: inline-block; }
.chip2 .sb { font: inherit; font-size: 10px; font-weight: 900; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg-hi); color: var(--blue); cursor: pointer; margin-left: 4px; } .chip2 .sb:hover { border-color: var(--blue); }
.ripcard .rsell { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 11px; padding: 4px 10px; opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; color: var(--blue); } .ripcard.flip .rsell { opacity: 1; pointer-events: auto; } .ripcard .rsell.sold { color: var(--green); border-color: var(--green); }
.ripcard.soldcard .rc-in { opacity: .35; filter: grayscale(.6); } .ripcard.soldcard::before { opacity: 0 !important; } .ripcards { padding-bottom: 36px; row-gap: 48px; }
.ripx { position: fixed; top: 14px; right: 14px; z-index: 410; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line2); background: rgba(14,19,38,.9); color: var(--ink); font: inherit; font-size: 20px; font-weight: 900; cursor: pointer; display: grid; place-items: center; } .ripx:hover { border-color: var(--red); color: var(--red); }

/* market */
.mkbar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; } @media (max-width: 720px) { .mkbar { grid-template-columns: 1fr 1fr; } .mkbar input { grid-column: 1 / -1; } }
.mkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.mkc { background: var(--panel2); border: 1.5px solid var(--line2); border-radius: 14px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, box-shadow .15s, transform .1s; } .mkc:hover { border-color: var(--blue); box-shadow: 0 0 16px rgba(53,182,255,.2); } .mkc:active { transform: scale(.98); }
.mkc.win { border-color: var(--green); } .mkc.lose { border-color: var(--red); }
.mkimg { position: relative; aspect-ratio: 63/88; border-radius: 10px; overflow: hidden; background: var(--bg-hi); } .mkimg img { width: 100%; height: 100%; object-fit: cover; }
.mkv, .mkh { position: absolute; top: 6px; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: 1px; padding: 2px 6px; border-radius: 999px; } .mkv { left: 6px; background: var(--yellow); color: #1a1200; } .mkh { right: 6px; background: var(--purple, #b366ff); color: #fff; }
.mkc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mkc > small { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkp { display: flex; justify-content: space-between; align-items: baseline; } .mkp .amt { font-size: 17px; font-weight: 900; color: var(--green); } .mkp span:last-child { font-size: 10px; font-weight: 800; color: var(--ink-soft); } .mkp .auction { color: var(--yellow) !important; }
.mkt { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; } .mkt.hot { color: var(--red); font-weight: 800; }
.sheetwrap .vdlg-box.sheet { width: min(94vw, 560px); max-height: 92vh; overflow: auto; position: relative; padding: 20px 18px 18px; } .sheetwrap .vdlg-box.sheet.wide { width: min(96vw, 920px); }
.sheetx { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--bg-hi); color: var(--ink); font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; z-index: 2; } .sheetx:hover { border-color: var(--red); color: var(--red); }
.lsheet { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 18px; } @media (max-width: 680px) { .lsheet { grid-template-columns: 1fr; } .lsimg { max-width: 280px; margin: 0 auto; } }
.lsinfo .meta2 { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lsprice label { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 900; color: var(--ink-soft); } .lsprice b { font-size: 32px; color: var(--green); } .lsprice small { display: block; color: var(--ink-soft); }
.lstime { font-size: 15px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; } .lstime.hot { color: var(--red); }
.lsact { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel2); } .lsact .row input { flex: 1; } .lsact > .btn { justify-content: center; font-size: 15px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; } .seg2 .btn { justify-content: center; } .seg2 .btn.on { background: var(--blue); color: #061423; border-color: var(--blue); box-shadow: 0 0 14px rgba(53,182,255,.35); }
.ordrow { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); } .ordrow img { width: 60px; aspect-ratio: 63/88; object-fit: cover; border-radius: 6px; } .ordmain { display: flex; flex-direction: column; gap: 4px; } .ordmain small { font-size: 11.5px; color: var(--ink-soft); } .ordmain .row { flex-wrap: wrap; gap: 6px; } .ordmain .row input { max-width: 180px; }
.shipto { font-size: 12.5px; background: var(--bg-hi); padding: 8px 10px; border-radius: 8px; }
.pill.complete { color: var(--green); } .pill.problem, .pill.refunded { color: var(--red); } .pill.incoming { color: var(--yellow); }
.chip.listed { background: rgba(179,102,255,.2); color: #c48bff; }
#mtabs { grid-template-columns: repeat(4, 1fr); } #ctabs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } #mtabs .btn, #ctabs .btn { padding: 9px 6px; font-size: 13px; }
.needfix { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(255,61,90,.25), 0 0 18px rgba(255,61,90,.35) !important; animation: fixshake .4s ease-in-out; }
.fixhint { color: var(--red); font-size: 12px; font-weight: 800; margin: 4px 0 6px; }
@keyframes fixshake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.tierhead { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15px; } .tier.rip { border-color: rgba(46,232,122,.45); }

/* support page sections */
.sp-sum .lstats { grid-template-columns: repeat(4, 1fr); } @media (max-width: 560px) { .sp-sum .lstats { grid-template-columns: 1fr 1fr; } }
.sp-sec { margin-top: 14px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--panel); }
.sp-sec.dep { border-color: rgba(46,232,122,.5); } .sp-sec.pro { border-color: rgba(255,210,63,.55); box-shadow: 0 0 26px rgba(255,210,63,.1); } .sp-sec.sup { border-color: rgba(53,182,255,.45); }
.sp-head { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; } .sp-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--bg-hi); }
.sp-head h2 { margin: 0 0 4px; font-size: 19px; } .sp-head p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; } .sp-head p b { color: var(--ink); }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; } @media (max-width: 560px) { .sp-grid { grid-template-columns: 1fr; } }
.sp-tile { background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; } .sp-tile .btn { justify-content: center; margin-top: 6px; }
.sp-pay { font-size: 14px; } .sp-pay b { font-size: 22px; } .sp-get { font-size: 14px; } .sp-get b { font-size: 22px; color: var(--green); } .sp-name { font-weight: 900; font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }
.sp-bonus { font-size: 12px; font-weight: 800; color: var(--yellow); } .sp-bonus.none { color: var(--ink-soft); font-weight: 600; }
/* balance pill */
.balpill { position: fixed; top: 12px; right: 72px; z-index: 6; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(46,232,122,.55); background: rgba(10,30,20,.85); color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; backdrop-filter: blur(8px); transition: box-shadow .15s, transform .08s; }
.balpill b { color: var(--green); font-size: 15px; font-variant-numeric: tabular-nums; } .balpill:hover { box-shadow: 0 0 16px rgba(46,232,122,.35); } .balpill:active { transform: scale(.96); }
@media (min-width: 960px) { .balpill { top: 14px; right: 18px; } }
.balsheet { text-align: center; } .balsheet label { display: block; font-size: 11px; letter-spacing: 2px; font-weight: 900; color: var(--ink-soft); } .balsheet > b { font-size: 40px; color: var(--green); } .balsheet small { display: block; color: var(--ink-soft); }
.balgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .balgrid .btn { justify-content: center; padding: 12px 8px; } .balhow { display: inline-block; margin-top: 12px; font-size: 13px; }
.seg2 .btn { opacity: .75; } .seg2 .btn.on { opacity: 1; } .seg2 .btn.on::before { content: '✓ '; font-weight: 900; }
.seg2 .btn:focus, .ctabs .btn:focus { outline: none; } .seg2 .btn:focus-visible, .ctabs .btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lfmode { margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid; text-align: center; } .lfmode b { display: block; font-size: 14px; letter-spacing: 1.5px; } .lfmode small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; } .lfmode.bin { border-color: rgba(53,182,255,.55); background: rgba(53,182,255,.08); } .lfmode.bin b { color: var(--blue); } .lfmode.auc { border-color: rgba(255,210,63,.55); background: rgba(255,210,63,.08); } .lfmode.auc b { color: var(--yellow); }
#vdlg { z-index: 700; }
html, body, button, .btn, a, input, select, .mkc, .tile, .gapc { touch-action: manipulation; } /* no double-tap zoom on phones */
.actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .actgrid .btn { flex-direction: column; align-items: flex-start; text-align: left; padding: 12px; white-space: normal; } .actgrid .btn small { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.trthumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; max-height: 110px; overflow: auto; }
.carow { display: grid; grid-template-columns: 1fr 110px 44px; gap: 6px; margin-bottom: 6px; } .carow .btn { padding: 0; justify-content: center; }

/* ---- Sold / Traded ledger ---- */
#soldLedger{margin:0 0 14px}
.lg-top{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:4px 0 10px}
.lg-top small{flex-basis:100%}
.lg-card{border:1px solid var(--line,#2a2f3a);border-radius:12px;padding:10px 12px;margin:0 0 10px;background:rgba(255,255,255,.03)}
.lg-card.trade{border-left:4px solid var(--blue,#4ea1ff)}.lg-card.sale{border-left:4px solid #3ecf8e}
.lg-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:8px}
.lg-h .btn{margin-left:auto;padding:4px 10px;font-size:12px}
.lg-pl{font-weight:700;padding:2px 8px;border-radius:999px;font-size:13px}
.lg-pl i{font-style:normal;opacity:.85;font-size:12px;margin-left:3px}
.lg-pl.up{color:#3ecf8e;background:rgba(62,207,142,.12)}.lg-pl.down{color:#ff6b6b;background:rgba(255,107,107,.12)}.lg-pl.none{color:#999;font-weight:400}
.lg-cols{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:start}
.lg-arrow{align-self:center;font-size:22px;opacity:.6}
@media (max-width:640px){.lg-cols{grid-template-columns:1fr}.lg-arrow{justify-self:center;transform:rotate(90deg)}}
.lg-card h5{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;opacity:.75}
.lg-card ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lg-card li{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px;border-radius:8px}
.lg-card li:hover{background:rgba(255,255,255,.05)}
.lg-card li.gone{opacity:.5;cursor:default}
.lg-card li img{width:34px;height:47px;object-fit:cover;border-radius:4px;flex:none;background:#222}
.lg-card li .nm{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px}
.lg-card li .nm small{opacity:.7;font-size:11px}
.lg-card li .v{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;white-space:nowrap}
.lg-card li .btn{padding:3px 8px;font-size:12px}
.lg-sum{margin:6px 0 0;font-size:13px}.lg-note{margin:6px 0 0;font-size:12px}
.lg-grid{margin:14px 0 6px;font-size:13px;opacity:.8}
.lg-card li .nm .slabtag{position:static;align-self:flex-start;display:inline-block;width:auto;margin:2px 0 0;padding:0 6px;font-size:10px}

/* ---------- 💲 Price a card: upload / drop ---------- */
.qpdrop { margin-top: 10px; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 16px; text-align: center; color: var(--ink-soft); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.qpdrop.over, .qpdrop:hover { border-color: var(--blue); background: rgba(53,182,255,.07); color: var(--ink); }
@media (hover: none) { .qpdrop { display: none; } }

/* ---------- ⚖️ Price a trade ---------- */
#view-trade { --a: #35b6ff; --b: #b366ff; padding-bottom: 96px; }
.tc-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.tc-head h2 { margin: 0; font-size: 24px; letter-spacing: .01em; }
.tc-head p { margin: 2px 0 0; font-size: 13px; }
.tc-headbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
.tc-headbtns .btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
.tc-scale { position: relative; max-width: 520px; margin: 0 auto 4px; }
.bscale { width: 100%; height: auto; display: block; overflow: visible; }
.bs-beam, .bs-pan { transition: transform .7s cubic-bezier(.34,1.45,.5,1); }
.bs-val { font: 900 19px var(--font); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; }
.bs-lbl { font: 800 11px var(--font); fill: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.bs-glow { opacity: 0; transition: opacity .4s; } .bs-pan.heavy .bs-glow { opacity: 1; }
.tc-sides { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .tc-sides { grid-template-columns: 1fr 1fr; } }
.tc-side { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 18px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); position: relative; overflow: hidden; }
.tc-side[data-side="a"] { border-top: 3px solid var(--a); } .tc-side[data-side="b"] { border-top: 3px solid var(--b); }
.tc-sidehead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--a); box-shadow: 0 0 10px var(--a); }
.b > .tc-dot, .tc-bline.b .tc-dot { background: var(--b); box-shadow: 0 0 10px var(--b); }
.tc-bline.cash .tc-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.tc-name { margin: 0; flex: 1; min-width: 0; font-weight: 900; font-size: 17px; background: transparent; border: 1px solid transparent; padding: 6px 8px; }
.tc-name:hover, .tc-name:focus { border-color: var(--line2); background: var(--panel2); }
.tc-total { font-size: 12px; color: var(--ink-soft); white-space: nowrap; } .tc-total b { color: var(--ink); font-size: 16px; }
.tc-list { display: grid; gap: 8px; }
.tc-empty { margin: 4px 0 8px; color: var(--ink-soft); font-size: 13px; text-align: center; padding: 14px 8px; border: 1px dashed var(--line2); border-radius: 12px; }
.tc-item { display: grid; grid-template-columns: 46px 1fr auto 30px; gap: 10px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 7px; animation: tcIn .35s ease; }
@keyframes tcIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.tc-item.loading { opacity: .7; } .tc-item.loading .tc-thumb { animation: tcPulse 1s infinite alternate; }
@keyframes tcPulse { to { filter: brightness(1.6); } }
.tc-item.err { border-color: rgba(255,61,90,.45); }
.tc-thumb { width: 46px; aspect-ratio: 63/88; border-radius: 6px; background: var(--bg-hi); display: grid; place-items: center; overflow: hidden; position: relative; font-size: 10px; font-weight: 900; color: var(--ink-soft); }
.tc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.tc-info { min-width: 0; } .tc-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-info small { display: block; font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-grade { font-style: normal; font-weight: 900; color: #0b1020; background: var(--yellow); border-radius: 5px; padding: 0 5px; margin-right: 5px; font-size: 10px; }
.tc-err { color: #ff8095 !important; white-space: normal !important; }
.tc-val { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 6px 0 8px; }
.tc-val span { color: var(--ink-soft); font-weight: 900; }
.tc-val input { width: 78px; border: 0; background: transparent; margin: 0; padding: 8px 2px; text-align: right; font-weight: 900; font-size: 16px; -moz-appearance: textfield; }
.tc-val input::-webkit-outer-spin-button, .tc-val input::-webkit-inner-spin-button, .tc-pct input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tc-val.need { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,159,63,.2); }
.tc-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ink-soft); font-size: 13px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tc-x:hover { color: #fff; border-color: var(--red); background: var(--red-soft); }
.tc-entry { position: relative; margin-top: 10px; padding: 10px 40px 10px 10px; border-radius: 14px; background: rgba(53,182,255,.06); border: 1px solid rgba(53,182,255,.35); }
.tc-entry > .tc-x { position: absolute; top: 10px; right: 6px; }
.tc-entry small { display: block; margin-top: 6px; font-size: 11px; }
.tc-row { display: flex; gap: 8px; align-items: center; } .tc-row input { margin: 0; flex: 1; min-width: 0; } .tc-row .btn { flex: none; }
.tc-manual .tc-mval { flex: 0 0 96px; }
.tc-paste { min-height: 90px; margin: 0 0 8px; }
.tc-addgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .tc-addgrid { grid-template-columns: repeat(4, 1fr); } }
.tc-addgrid .btn { padding: 10px 6px; font-size: 13px; white-space: nowrap; text-align: center; }
.tc-adj { margin-top: 12px; } .tc-adj h3, .tc-verdict h3 { margin: 0 0 10px; font-size: 16px; }
.tc-lbl { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin: 10px 0 6px; } .tc-lbl b { color: var(--ink); }
.tc-big { color: var(--yellow) !important; font-size: 16px; }
.tc-seg3, .tc-seg4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .tc-seg4 { grid-template-columns: repeat(4, 1fr); }
.tc-seg3 .btn, .tc-seg4 .btn, .tc-chips .btn { padding: 9px 4px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.tc-seg3 .btn.on, .tc-seg4 .btn.on, .tc-chips .btn.on { background: var(--blue); color: #04121f; border-color: var(--blue); box-shadow: 0 0 16px rgba(53,182,255,.45); font-weight: 900; }
.tc-hint { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; }
.tc-slider { margin-top: 6px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.tc-slider .tc-lbl { margin-top: 0; }
.tc-sl { display: flex; gap: 10px; align-items: center; }
.tc-sl input[type=range] { flex: 1; margin: 0; padding: 0; height: 34px; background: transparent; border: 0; accent-color: var(--yellow); }
.tc-pct { display: flex; align-items: center; flex: none; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding-right: 8px; }
.tc-pct input { width: 56px; border: 0; margin: 0; background: transparent; text-align: right; font-weight: 900; padding: 8px 2px; -moz-appearance: textfield; } .tc-pct span { font-weight: 900; color: var(--ink-soft); }
.tc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; margin-top: 8px; }
.tc-verdict { margin-top: 12px; text-align: center; background: radial-gradient(600px 200px at 50% 0%, rgba(255,210,63,.10), transparent 70%), var(--panel); }
.tc-vbig { font-size: 26px; font-weight: 900; line-height: 1.2; } .tc-vbig.even { color: var(--green); }
.tc-vsub { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.tc-cash { color: var(--green); text-shadow: 0 0 22px rgba(46,232,122,.45); white-space: nowrap; }
.tc-payer.a { color: var(--a); } .tc-payer.b { color: var(--b); }
.tc-warn { color: var(--orange); font-size: 12px; margin: 8px 0 0; }
.tc-break { margin-top: 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tc-bline { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; } .tc-bline + .tc-bline { border-top: 1px solid var(--line); }
.tc-bline > span:nth-child(2) { flex: 1; font-weight: 800; min-width: 0; } .tc-bline small { color: var(--ink-soft); font-weight: 600; }
.tc-bm { text-align: right; font-size: 13px; } .tc-bm b { font-size: 15px; }
.tc-nets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-nets > div { border: 1px solid var(--line); border-radius: 14px; padding: 10px; } .tc-nets small { display: block; color: var(--ink-soft); font-weight: 800; font-size: 12px; margin-bottom: 4px; }
.tc-net { font-weight: 900; font-size: 18px; } .tc-net i { font-style: normal; font-size: 12px; opacity: .85; display: block; }
.tc-net.up { color: var(--green); } .tc-net.down { color: var(--red); } .tc-net.even { color: var(--ink-soft); }
.tc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; } .tc-actions .btn { padding: 12px 6px; } .tc-actions .btn:first-child { grid-column: 1 / -1; font-size: 16px; }
@media (min-width: 700px) { .tc-actions { grid-template-columns: 2fr 2fr 1fr; } .tc-actions .btn:first-child { grid-column: auto; } }
.tc-livep { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }
.tc-livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); vertical-align: middle; margin-right: 4px; }
.tc-livedot.saving { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.tc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,11,22,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line2); }
.tc-sticky[hidden] { display: none; }
@media (min-width: 960px) { .tc-sticky { left: 244px; } }
.tc-stv { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; font-size: 16px; font-weight: 800; padding: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-stv b { color: var(--green); } .tc-stv b.even { color: var(--green); } .tc-stv small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.tc-sticky .btn { flex: none; padding: 11px 18px; }
.tc-sharebox { text-align: center; } .tc-sharebox h2 { margin: 0 0 4px; } .tc-sharebox p { font-size: 13px; margin: 0 0 10px; }
.tc-qr { width: min(72vw, 300px); aspect-ratio: 1; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 0 40px rgba(53,182,255,.35); margin: 4px auto 12px; display: block; }
.tc-sharebox .tc-row { margin-bottom: 8px; } .tc-sharebox small { display: block; margin-top: 10px; }
.tc-deal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.tc-deal b { display: block; } .tc-deal small { color: var(--ink-soft); font-size: 12px; }
.tc-dealbtn { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; } .tc-dealbtn .btn { padding: 6px 10px; font-size: 13px; }
.tc-reclist { text-align: left; margin: 0 0 8px; padding-left: 18px; } .tc-reclist li { margin: 4px 0; }
.tc-pick .gapc .v { font-size: 12px; }
.tc-verdict .tc-scale { max-width: 300px; margin: -6px auto 4px; }

/* ---------- floating trade stage (calculator + public link page) ---------- */
.fstage { --a: #35b6ff; --b: #b366ff; display: grid; grid-template-columns: 1fr; gap: 4px; align-items: center; padding: 6px 0 2px; }
@media (min-width: 760px) { .fstage { grid-template-columns: 1fr auto 1fr; gap: 10px; } }
.fs-side { min-width: 0; }
.fs-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.fs-head b { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.fs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a); box-shadow: 0 0 12px var(--a); } .fs-side.b .fs-dot { background: var(--b); box-shadow: 0 0 12px var(--b); }
.fs-tot { font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 999px; background: rgba(53,182,255,.14); color: #bfe6ff; } .fs-side.b .fs-tot { background: rgba(179,102,255,.16); color: #e3ccff; }
.fs-cards { display: flex; justify-content: center; align-items: flex-start; gap: 14px; --cw: 116px; min-height: 120px; padding-top: 6px; }
.fs-cards.n2 { --cw: 108px; } .fs-cards.n3 { --cw: 96px; gap: 10px; } .fs-cards.n4 { --cw: 78px; gap: 8px; }
@media (min-width: 760px) { .fs-cards { --cw: 132px; } .fs-cards.n2 { --cw: 116px; } .fs-cards.n3 { --cw: 100px; } .fs-cards.n4 { --cw: 84px; } }
.fs-none { color: var(--ink-soft); font-size: 13px; align-self: center; padding: 30px 0; }
.fc { width: var(--cw); display: flex; flex-direction: column; align-items: center; perspective: 900px; }
.fc-float { width: 100%; animation: fcFloat 4.2s ease-in-out infinite alternate; animation-delay: var(--f, 0s); filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.fc-spin { position: relative; width: 100%; aspect-ratio: 63 / 88; transform-style: preserve-3d; animation: fcSpin 11s linear infinite; animation-delay: var(--d, 0s); }
.fc.slab .fc-spin { aspect-ratio: 3 / 5; }
.fc-face { position: absolute; inset: 0; border-radius: 9px; background: radial-gradient(circle at 30% 20%, #2a3d7a, #0d1530 70%); background-size: cover; background-position: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); overflow: hidden; }
.fc-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 46%, transparent 60%); background-size: 250% 100%; animation: fcShine 5s ease-in-out infinite; animation-delay: var(--f, 0s); mix-blend-mode: screen; }
.fc.slab .fc-face.front { background-size: contain; background-repeat: no-repeat; background-color: rgba(255,255,255,.04); border-radius: 6px; }
.fc-face i { font-style: normal; font-size: 28px; color: rgba(255,210,63,.7); }
.fc-face.back { transform: rotateY(180deg); }
.fc-name { margin-top: 10px; font-size: 12px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.fc-grade { font-size: 10px; font-weight: 900; color: #0b1020; background: var(--yellow); border-radius: 5px; padding: 0 6px; margin-top: 3px; }
.fc-price { margin-top: 5px; font-size: 15px; font-weight: 900; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.fs-side.a .fc-price { color: #bfe6ff; } .fs-side.b .fc-price { color: #e3ccff; }
.fc.more .fc-more { aspect-ratio: 63 / 88; border-radius: 9px; display: grid; place-content: center; text-align: center; font-size: 24px; font-weight: 900; background: rgba(255,255,255,.05); border: 1.5px dashed var(--line2); }
.fc.more small { display: block; font-size: 11px; color: var(--ink-soft); }
.fs-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
.fs-arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #ffe27a; background: radial-gradient(circle, rgba(255,210,63,.18), rgba(255,210,63,.04) 70%); border: 1px solid rgba(255,210,63,.35); box-shadow: 0 0 26px rgba(255,210,63,.25); animation: fsPulse 2.6s ease-in-out infinite; }
.fs-arrow svg { width: 30px; height: 30px; transform: rotate(90deg); }
@media (min-width: 760px) { .fs-arrow { width: 64px; height: 64px; } .fs-arrow svg { transform: none; width: 36px; height: 36px; } }
.fs-cash { font-size: 13px; color: var(--ink-soft); font-weight: 700; text-align: center; line-height: 1.25; }
.fs-cash b { display: block; color: var(--green); font-size: 22px; text-shadow: 0 0 18px rgba(46,232,122,.45); } .fs-cash b.even { font-size: 18px; }
.fs-cash .p { font-weight: 900; } .fs-cash .p.a { color: var(--a, #35b6ff); } .fs-cash .p.b { color: var(--b, #b366ff); }
@keyframes fcSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes fcFloat { from { transform: translateY(-5px); } to { transform: translateY(7px); } }
@keyframes fcShine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
@keyframes fsPulse { 50% { box-shadow: 0 0 40px rgba(255,210,63,.45); } }
@media (prefers-reduced-motion: reduce) { .fc-spin { animation: none; } .fc-float { animation: none; } }
.tc-stage { margin: 4px 0 12px; padding: 8px 6px 4px; border-radius: 22px; background: radial-gradient(500px 220px at 50% 40%, rgba(53,182,255,.10), transparent 70%); }
.fc-float { height: calc(var(--cw) * 1.62); display: flex; align-items: center; }
.fc-spin { flex: none; }
.fc.more .fc-float { align-items: center; } .fc.more .fc-more { width: 100%; }
.fs-emptyall { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px 6px; } .fs-emptyall small { color: var(--ink-soft); font-size: 12px; max-width: 300px; } .fs-emptyall .fs-arrow svg { transform: none; }
.fs-side .fs-cards:has(.fs-none) { min-height: 60px; }
/* deal terms: optional toggles */
.tc-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tc-seg2 .btn { padding: 9px 6px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.tc-seg2 .btn.on { background: var(--blue); color: #04121f; border-color: var(--blue); box-shadow: 0 0 16px rgba(53,182,255,.45); font-weight: 900; }
.tc-term { margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); overflow: hidden; transition: border-color .2s, background .2s; }
.tc-term.on { border-color: rgba(255,210,63,.45); background: rgba(255,210,63,.05); }
.tc-tog { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tc-tog:active { transform: scale(.99); }
.tc-tog > span:nth-child(2) { flex: 1; min-width: 0; } .tc-tog b { display: block; font-size: 15px; } .tc-tog small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.tc-tog em { font-style: normal; font-weight: 900; font-size: 15px; color: var(--ink-soft); white-space: nowrap; } .tc-term.on .tc-tog em { color: var(--yellow); }
.tc-sw { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line2); position: relative; transition: background .2s; }
.tc-sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .2s; }
.tc-term.on .tc-sw { background: var(--yellow); } .tc-term.on .tc-sw i { transform: translateX(18px); }
.tc-tbody { padding: 0 12px 12px; }
.tc-discrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
.tc-seg2.small .btn { padding: 10px 4px; }
.tc-pct.big { justify-content: center; padding: 0 12px; } .tc-pct.big input { width: 100%; font-size: 20px; text-align: center; }
.tc-pct.big span { font-size: 18px; }
.tc-hint b { color: var(--ink); }
.tc-cutl { display: block; color: var(--orange) !important; font-size: 11px; }
.tc-bm b { display: block; }
.tc-tok b { display: block; margin-bottom: 4px; } .tc-tok small { display: block; color: var(--ink-soft); font-size: 12px; margin-bottom: 8px; line-height: 1.45; } .tc-tok a { font-weight: 800; }
.tc-tokform { display: grid; gap: 8px; } .tc-tokform input { margin: 0; } .tc-tokform .btn { width: 100%; }

/* ✏️ your own value */
.tot-edit { cursor: pointer; transition: border-color .15s, box-shadow .15s; } .tot-edit:hover, .tot-edit:focus { border-color: var(--yellow); box-shadow: 0 0 14px rgba(255,210,63,.25); outline: none; }
.tot-edit .pen { font-size: 10px; opacity: .8; } .tot-edit:active { transform: scale(.98); }
.mv-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.mv-g { background: var(--panel2); border: 1.5px solid var(--line2); border-radius: 12px; padding: 8px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mv-g small { display: block; font-size: 11px; color: var(--ink-soft); } .mv-g b { font-size: 16px; } .mv-g.on, .mv-g:hover { border-color: var(--yellow); }
.mv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tc-parts { white-space: normal !important; } .tc-parts b { color: var(--ink); } .tc-tok code { display: block; margin: 6px 0; padding: 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line2); font-size: 11px; word-break: break-all; color: var(--ink); user-select: all; }
.vchip.pending { background: var(--yellow); color: #1a1300; } .pendl { color: var(--yellow); font-weight: 800; animation: dlBlink2 1.6s infinite; } @keyframes dlBlink2 { 50% { opacity: .45; } }
.chip.pending, .tile .chip:has(+ *) {}
.sp3 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 420px) { .sp3 { grid-template-columns: repeat(2, 1fr); } }
.alt-sales { display: grid; gap: 3px; font-size: 12px; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line2); } .alt-sales em { font-style: normal; color: var(--ink-soft); } .alt-sales a { font-weight: 800; font-size: 12px; } .alt-sales small { color: var(--orange); }
.altwarn { display: block; font-size: 10px; color: var(--orange); margin-top: 3px; } .altwarn .btn { display: block; margin: 4px auto 0; padding: 3px 8px; font-size: 11px; }

/* ✂️ snip photos */
html.no-snip .snip-only { display: none !important; }
.snip h2 { margin: 0 0 4px; } .snip p { font-size: 13px; margin: 0 0 12px; }
.snip-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.snip-slot { border: 2px solid var(--line2); border-radius: 16px; padding: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.snip-slot.active { border-color: var(--yellow); box-shadow: 0 0 18px rgba(255,210,63,.3); }
.snip-lbl { font-weight: 900; font-size: 12px; letter-spacing: .1em; margin-bottom: 6px; } .snip-lbl em { font-style: normal; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.snip-img { aspect-ratio: 63/88; border-radius: 10px; background: var(--bg-hi); display: grid; place-items: center; overflow: hidden; color: var(--ink-soft); font-weight: 800; font-size: 13px; }
.snip-img img { width: 100%; height: 100%; object-fit: contain; }
.snip-btns { display: grid; gap: 6px; margin-top: 8px; } .snip-btns .btn { width: 100%; }
.snip-foot { display: grid; gap: 6px; margin-top: 12px; } .snip-foot .btn { width: 100%; padding: 12px; font-size: 16px; } .snip-foot small { text-align: center; }
.snip-ov { position: fixed; inset: 0; z-index: 9999; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: crosshair; user-select: none; }
.snip-ov canvas { display: block; max-width: 100%; }
.snip-tip { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; border: 1px solid #fff3; z-index: 2; pointer-events: none; }
.snip-box { position: fixed; border: 2px solid var(--yellow); box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }

/* 🚩 needs attention */
.attn-btn { border-color: var(--orange) !important; color: var(--orange); animation: attnPulse 1.8s ease-in-out infinite; }
.attn-btn b { color: #fff; background: var(--orange); border-radius: 999px; padding: 0 7px; margin: 0 2px; }
.attn-btn.on { background: var(--orange); color: #1a0d00; animation: none; } .attn-btn.on b { background: #1a0d00; color: var(--orange); }
@keyframes attnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,159,63,0); } 50% { box-shadow: 0 0 0 4px rgba(255,159,63,.35), 0 0 18px rgba(255,159,63,.45); } }
@media (prefers-reduced-motion: reduce) { .attn-btn { animation: none; } }
.badge.attn { background: var(--orange); color: #1a0d00; }
.whyline.attn { background: rgba(255,159,63,.92); color: #1a0d00; font-weight: 800; }
.gbar-btns .attn-btn { grid-column: 1 / -1; order: -1; }
/* phone card page: nothing may push the page wider than the screen (iPhone Safari sizes inputs to ~20 characters) */
@media (max-width: 560px) {
  .detail-head { align-items: stretch; }
  .detail-head > div { width: 100%; flex: 1 1 auto; }
  .detail-head > .dh-flip, .detail-head > img, .detail-head > .dh-nophoto { align-self: center; flex: none; }
  .detail-head > .dh-flip { width: min(84vw, 380px); }
  .sp3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sp3 > div { min-width: 0; } .sp3 input { min-width: 0; width: 100%; box-sizing: border-box; }
#view-card { max-width: 100vw; overflow-x: hidden; }
#view-card .panel, #view-card .slab-panel, #view-card .totals, #view-card .alt-sales { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
#view-card input, #view-card select, #view-card textarea { min-width: 0; max-width: 100%; }
/* bigger card on the card page — that's what you came to look at */
@media (min-width: 561px) { .detail-head > .dh-flip { width: 300px; } .detail-head > .dh-nophoto, .detail-head > .dh-nophoto img { width: 220px; } }
@media (max-width: 560px) { .detail-head > .dh-nophoto, .detail-head > .dh-nophoto img { width: min(60vw, 240px); } .detail-head .dh-flip { margin: 0 auto 26px; } }
/* Turnt Cards logo */
.tcmark { width: 34px; height: 34px; margin: -2px; flex: none; filter: drop-shadow(0 0 10px rgba(53,182,255,.35)); }
.logo .tco { font-style: normal; color: #ff9a2e; }
@media (max-width: 560px) { .tcmark { width: 28px; height: 28px; } }
/* 📁 custom sets */
#filterMySet.on { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(53,226,208,.25); }
.setbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(53,226,208,.45); background: linear-gradient(135deg, rgba(53,226,208,.10), rgba(53,182,255,.06)); }
.setbar .sb-name { display: flex; align-items: center; gap: 10px; min-width: 0; } .setbar .sb-ico { font-size: 26px; }
.setbar b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .setbar small { color: var(--ink-soft); font-size: 12px; }
.setbar .sb-btns { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.setpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.setpick .btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; border-radius: 14px; padding: 12px 14px; }
.setpick .btn small, .setrow small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.setlist { display: grid; gap: 8px; } .setrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel2); }
.setshare { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; } .setshare img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; box-sizing: border-box; }
.setshare-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; } .setshare-btns .btn { justify-content: center; text-align: center; }
.setform input.bad { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
@media (max-width: 640px) { .setbar { grid-template-columns: 1fr; } .setbar .sb-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .setshare { grid-template-columns: 1fr; justify-items: center; } .setshare > div { width: 100%; } .setrow { grid-template-columns: 1fr auto auto; } }
.spdrop { margin: 6px 0 8px; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; color: #ffd9a8; background: rgba(255,154,46,.10); border: 1px solid rgba(255,154,46,.5); }

/* card page: the two big actions + a tidy "More options" drawer */
.cd-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.detail-head .totals { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.cd-main .cd-big { min-height: 48px; font-size: 15px; justify-content: center; text-align: center; width: 100%; white-space: normal; line-height: 1.15; padding: 8px 12px; }
@media (max-width: 420px) { .cd-main .cd-big small { display: block; } }
.cd-main .cd-big small { font-weight: 700; opacity: .75; }
.cd-main .cd-big:only-child { grid-column: 1 / -1; }
.moreopts { margin-top: 8px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2); }
.moreopts > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; user-select: none; }
.moreopts > summary::-webkit-details-marker { display: none; }
.moreopts > summary::after { content: '▾'; margin-left: auto; transition: transform .15s; color: var(--ink-soft); }
.moreopts[open] > summary::after { transform: rotate(180deg); }
.moreopts > summary:hover { color: var(--blue); }
.mo-n { background: var(--line2); color: var(--ink-soft); border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.mo-g { padding: 2px 12px 10px; }
.mo-g h4 { margin: 4px 2px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.mo-b { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-family: var(--font); cursor: pointer; text-decoration: none; transition: border-color .12s, transform .08s; }
.mo-b:hover { border-color: var(--blue); }
.mo-b:active { transform: scale(.97); }
.mo-b .mo-i { grid-row: 1 / 3; font-size: 18px; text-align: center; }
.mo-b b { font-size: 13px; line-height: 1.2; }
.mo-b small { font-size: 11px; color: var(--ink-soft); line-height: 1.25; }
.mo-b.busy { background: rgba(255,210,63,.18); border-color: var(--yellow); pointer-events: none; animation: pulse .6s infinite; }
.mo-b.done { border-color: var(--green); background: rgba(46,232,122,.14); } .mo-b.fail { border-color: var(--red); background: rgba(255,61,90,.14); }
.mo-b.ping { animation: tcPing .4s ease-out; }
@media (max-width: 420px) { .mo-grid { grid-template-columns: 1fr 1fr; } }
.btn.ping { animation: tcPing .4s ease-out; } @keyframes tcPing { from { box-shadow: 0 0 0 0 rgba(255,154,46,.7); } to { box-shadow: 0 0 0 14px rgba(255,154,46,0); } }
.sh-t.off { opacity: .55; }
.sheet .mo-g h4 small { color: var(--ink-soft); font-weight: 600; }

/* Home = the logo (+ a little 🏠 beside it) */
.logo[data-home] { cursor: pointer; border-radius: 10px; transition: opacity .12s; }
.logo[data-home]:hover { opacity: .85; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-right: 4px; }
.side-top .side-logo { padding-bottom: 10px; }
.homebtn { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1.5px solid var(--line2); background: rgba(255,255,255,.04); font-size: 16px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; transition: border-color .12s, background .12s, transform .08s; }
.homebtn:hover { border-color: var(--orange); background: rgba(255,154,46,.12); }
.homebtn:active { transform: scale(.92); }
.side-top .homebtn { margin-bottom: 10px; }
.top > .homebtn { margin-left: 8px; margin-right: auto; }
body.on-landing .homebtn { display: none; }
.homebtn.ping, .logo.ping { animation: tcPing .4s ease-out; }
.side-top { padding-right: 10px; }
.side-top .side-logo { font-size: 15px; gap: 6px; padding-right: 0; min-width: 0; }
.side-top .side-logo .tcmark { width: 26px; height: 26px; }
.side-top .homebtn { width: 30px; height: 30px; font-size: 14px; }
