/* ============================================================
   CardValue — premium dark holographic theme
   ============================================================ */
:root {
  --bg: #06070d;
  --bg-2: #0b0e1a;
  --panel: rgba(20, 24, 42, 0.66);
  --panel-solid: #11152a;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --muted-2: #6b739a;
  --brand: #7c5cff;
  --brand-2: #00e6c3;
  --gold: #ffcf5c;
  --buy: #36e0a4;
  --sell: #ff7a9c;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --holo: linear-gradient(115deg, #7c5cff 0%, #ff5cc8 28%, #00e6c3 55%, #ffcf5c 78%, #7c5cff 100%);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animated aurora backdrop */
body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: -2;
  background:
    radial-gradient(40vmax 40vmax at 18% 12%, rgba(124, 92, 255, 0.30), transparent 60%),
    radial-gradient(38vmax 38vmax at 85% 8%, rgba(0, 230, 195, 0.20), transparent 60%),
    radial-gradient(45vmax 45vmax at 75% 90%, rgba(255, 92, 200, 0.18), transparent 60%),
    var(--bg);
  filter: saturate(1.1);
  animation: drift 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(2vmax, -2vmax, 0) rotate(4deg); }
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6,7,13,0.82), rgba(6,7,13,0.35));
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 12px rgba(124,92,255,0.55)); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--holo); background-size: 300% 300%;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.6), inset 0 0 12px rgba(255,255,255,0.4);
  animation: holoShift 6s linear infinite;
}
@keyframes holoShift { to { background-position: 300% 0; } }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-dot { color: var(--brand-2); }
.brand-accent {
  background: var(--holo); background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoShift 8s linear infinite;
}
.topbar-meta { display: flex; align-items: center; gap: 14px; }
.topbar-link { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.topbar-link:hover { color: var(--text); }

.pill {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--stroke-strong); background: rgba(255,255,255,0.04);
}
.pill-ok { color: var(--ok); border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); }
.pill-muted { color: var(--muted); }
.pill-bad { color: var(--danger); border-color: rgba(255,107,107,0.4); background: rgba(255,107,107,0.08); }

/* ---------------- hero ---------------- */
.hero { padding: 72px 0 36px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--stroke-strong); background: rgba(255,255,255,0.03);
  margin-bottom: 22px;
}
.hero-eyebrow b { color: var(--brand-2); }
.hero-title {
  font-size: clamp(38px, 6.5vw, 68px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 14ch;
}
.hero-title .grad {
  background: var(--holo); background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoShift 8s linear infinite;
}
.hero-sub { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 60ch; margin: 0 auto; line-height: 1.6; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 28px 0 0; }
.hero-chips li {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text);
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--panel); backdrop-filter: blur(8px);
}
.hero-chips .ic { width: 17px; height: 17px; stroke: var(--brand-2); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- layout ---------------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 18px 0 80px; }

.panel {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.7), rgba(0,230,195,0.7), transparent);
}

/* steps */
.step { padding: 22px 0; border-bottom: 1px solid var(--stroke); }
.step:first-child { padding-top: 4px; }
.step:last-of-type { border-bottom: none; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.step-hint { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.step-badge {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #07101e;
  background: var(--holo); background-size: 200% 200%; box-shadow: 0 0 14px rgba(124,92,255,0.4);
}
.tag-optional {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke-strong);
}

/* game selector tabs */
.game-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.game-tab {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--stroke-strong);
  background: rgba(255,255,255,0.03); transition: all .15s;
}
.game-tab:hover { color: var(--text); border-color: var(--brand); }
.game-tab.active { color: #07101e; background: var(--holo); background-size: 200% 200%; border-color: transparent; }
.game-tab .g-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.game-tab.active .g-dot { box-shadow: 0 0 0 2px rgba(7,16,30,0.25); }

/* per-game badges & chips */
.g-badge {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  color: var(--g, #7c5cff); border: 1px solid color-mix(in srgb, var(--g, #7c5cff) 45%, transparent);
  background: color-mix(in srgb, var(--g, #7c5cff) 14%, transparent); vertical-align: middle;
}
.chip.game {
  color: var(--g, #7c5cff);
  border-color: color-mix(in srgb, var(--g, #7c5cff) 45%, transparent);
  background: color-mix(in srgb, var(--g, #7c5cff) 14%, transparent);
}

/* dropzone */
.drop {
  border: 1.5px dashed var(--stroke-strong); border-radius: var(--radius-sm);
  padding: 30px; text-align: center; cursor: pointer; transition: all .2s;
  background: rgba(255,255,255,0.015);
}
.drop:hover, .drop:focus, .drop.over {
  border-color: var(--brand); background: rgba(124,92,255,0.08);
  box-shadow: inset 0 0 40px rgba(124,92,255,0.08);
}
.drop-inner { pointer-events: none; }
.drop-icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(124,92,255,0.14); }
.drop-icon svg { width: 24px; height: 24px; stroke: var(--brand-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { margin: 0; font-weight: 600; font-size: 15px; }
.link-look { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.preview { position: relative; width: 72px; height: 100px; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke-strong); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview .rm {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.hint-line { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; display: flex; align-items: center; gap: 8px; }
.ok-dot, .warn-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ok-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.warn-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field.full { grid-column: 1 / -1; }
.label-text { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.label-text em { font-style: normal; font-size: 11px; color: var(--muted-2); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; font: inherit; font-size: 14px;
  color: var(--text); background: rgba(8,10,20,0.7); border: 1px solid var(--stroke-strong);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}
select option, optgroup { background: var(--panel-solid); color: var(--text); }
textarea { resize: vertical; }

/* switch */
.switch-field { flex-direction: row; align-items: center; justify-content: space-between; }
.switch { position: relative; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,0.12); transition: .2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .slider { background: var(--holo); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* suggest dropdown — full ranked card list */
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 6px 0 0; padding: 6px; list-style: none;
  background: var(--panel-solid); border: 1px solid var(--stroke-strong); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 380px; overflow: auto;
}
.suggest-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2);
  padding: 8px 10px 6px; position: sticky; top: -6px; background: var(--panel-solid);
}
.suggest .searching { display: flex; align-items: center; gap: 10px; padding: 12px 10px; color: var(--muted); font-size: 13px; }
.mini-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--brand-2); animation: spin .7s linear infinite; }
.suggest-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.suggest-item:hover { background: rgba(124,92,255,0.16); }
.suggest-item img, .suggest-item .no-img { width: 30px; height: 42px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; background: rgba(255,255,255,0.05); }
.suggest-item .s-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.suggest-item .s-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .s-set { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .s-val { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--brand-2); flex: 0 0 auto; }
.hidden { display: none !important; }

/* submit */
.primary {
  width: 100%; margin-top: 24px; padding: 15px; border: none; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15.5px; color: #07101e;
  background: var(--holo); background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 12px 30px -8px rgba(124,92,255,0.6); transition: transform .12s, box-shadow .2s, filter .2s;
}
.primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 18px 40px -8px rgba(124,92,255,0.7); }
.primary:active { transform: translateY(0); }
.primary:disabled { opacity: 0.7; cursor: progress; }
.primary .ic { stroke: #07101e; width: 19px; height: 19px; }

/* ---------------- results ---------------- */
.results { display: flex; flex-direction: column; gap: 24px; }
.results-bar { display: flex; justify-content: flex-end; }
.clear-btn {
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; width: auto;
  color: var(--muted); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--stroke-strong); background: rgba(255,255,255,0.03); transition: all .15s;
}
.clear-btn:hover { color: var(--text); border-color: var(--danger); background: rgba(255,107,107,0.08); }
.result { animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-card {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(18px); overflow: hidden;
}

.result-head { display: flex; gap: 18px; padding: 24px; position: relative; }
.result-head::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background: radial-gradient(60% 120% at 0% 0%, rgba(124,92,255,0.18), transparent 70%);
}
.card-img-wrap { position: relative; flex: 0 0 auto; }
.card-img-wrap img {
  width: 120px; border-radius: 10px; display: block;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.8);
}
.card-img-wrap::after { /* holo sheen */
  content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  background-size: 250% 250%; animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen { 0%,100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.result-head h3 { margin: 2px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--stroke-strong); color: var(--muted); background: rgba(255,255,255,0.03);
}
.chip.id { color: var(--brand-2); border-color: rgba(0,230,195,0.35); font-family: ui-monospace, monospace; }
.chip.era { color: var(--gold); border-color: rgba(255,207,92,0.3); }
.chip.up { color: var(--buy); border-color: rgba(54,224,164,0.4); }
.chip.down { color: var(--sell); border-color: rgba(255,122,156,0.4); }

/* deal box */
.dealbox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 24px 4px; }
.deal {
  position: relative; padding: 20px; border-radius: 14px; border: 1px solid var(--stroke-strong);
  overflow: hidden; background: rgba(8,10,20,0.6);
}
.deal.buy { box-shadow: inset 0 0 30px rgba(54,224,164,0.08); border-color: rgba(54,224,164,0.3); }
.deal.sell { box-shadow: inset 0 0 30px rgba(255,122,156,0.08); border-color: rgba(255,122,156,0.3); }
.deal .cap { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.deal.buy .cap { color: var(--buy); }
.deal.sell .cap { color: var(--sell); }
.deal .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; }
.deal .sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.deal .meta-line { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }

/* fair value + confidence */
.fair-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 24px;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--stroke); margin-top: 16px;
}
.fair-line strong { color: var(--text); }
.dot-sep { color: var(--muted-2); }

.meter-row { padding: 6px 24px 4px; }
.meter { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.meter-label { font-size: 12px; color: var(--muted); width: 92px; flex: 0 0 auto; }
.meter-track { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--holo); background-size: 200% 200%; animation: holoShift 5s linear infinite; }
.meter-fill.conf { background: linear-gradient(90deg, #36e0a4, #00e6c3); }
.meter-fill.vol { background: linear-gradient(90deg, #ffcf5c, #ff7a9c); }
.meter-val { font-size: 12px; font-weight: 700; width: 44px; text-align: right; flex: 0 0 auto; }

/* ---- HERO fair market value ---- */
.fmv {
  margin: 4px 24px 18px; padding: 26px 24px; border-radius: 16px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(124,92,255,0.14), rgba(0,230,195,0.06));
  border: 1px solid var(--stroke-strong);
  box-shadow: inset 0 0 50px rgba(124,92,255,0.12);
}
.fmv::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: var(--holo); background-size: 300% 300%; animation: holoShift 7s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5;
}
.fmv-cap { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-2); }
.fmv-amount {
  font-size: clamp(44px, 9vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 6px;
  background: var(--holo); background-size: 300% 300%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoShift 8s linear infinite;
}
.fmv-sub { font-size: 13px; color: var(--muted); }
.fmv-meters { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.fmv-meters .meter { width: min(260px, 80%); }

/* secondary buy/sell — demoted below the hero */
.dealbox { padding: 0 24px 4px; }
.deal .amount { font-size: 26px; }
.deal .cap { font-size: 11.5px; }

/* projection trend chart */
.trend { margin: 14px 24px 4px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--stroke-strong); background: rgba(8,10,20,0.5); }
.trend-head { margin-bottom: 6px; }
.trend-cap { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-2); }
.trend-val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.trend-rate { font-size: 14px; font-weight: 700; margin-left: 6px; }
.trend-rate.up { color: var(--buy); }
.trend-rate.down { color: var(--sell); }
.trend-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trend-svg { width: 100%; height: auto; margin-top: 10px; display: block; }
.ct-grid { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.ct-y { fill: var(--muted-2); font-size: 11px; text-anchor: end; font-family: var(--font); }
.ct-x { fill: var(--muted-2); font-size: 11px; font-family: var(--font); }
.ct-band { fill: rgba(124,92,255,0.16); stroke: none; }
.ct-now { stroke: rgba(255,255,255,0.22); stroke-width: 1; stroke-dasharray: 3 3; }
.ct-hist { fill: none; stroke: var(--muted); stroke-width: 2; }
.ct-med { fill: none; stroke: url(#g); stroke: var(--brand-2); stroke-width: 2.5; stroke-dasharray: 5 4; }
.ct-dot { fill: var(--brand-2); stroke: #07101e; stroke-width: 1.5; }
.trend-note { font-size: 11px; color: var(--muted-2); margin-top: 10px; line-height: 1.5; }

/* affiliate buy/sell buttons */
.aff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 24px 4px; }
.aff-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  text-decoration: none; transition: transform .12s, filter .2s, box-shadow .2s;
}
.aff-btn.tcg { color: #07101e; background: linear-gradient(120deg, #00e6c3, #36e0a4); box-shadow: 0 10px 24px -10px rgba(0,230,195,0.7); }
.aff-btn.ebay { color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--stroke-strong); }
.aff-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.aff-btn.ebay:hover { border-color: var(--brand); background: rgba(124,92,255,0.12); }
@media (max-width: 560px) { .aff-row { grid-template-columns: 1fr; } }

/* tiers */
.tiers-title { padding: 14px 24px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 24px 20px; }
.tier { padding: 16px; border-radius: 12px; border: 1px solid var(--stroke-strong); text-align: center; background: rgba(255,255,255,0.02); }
.tier.rec { border-color: var(--brand); background: rgba(124,92,255,0.1); box-shadow: 0 0 0 1px rgba(124,92,255,0.3); }
.tier .t-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tier .t-price { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }

/* signals table */
.signals { padding: 0 24px 8px; }
.signals h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 12px 0 8px; }
.signal-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--stroke); }
.signal-row:last-child { border-bottom: none; }
.signal-row .s-name { color: var(--muted); flex: 1; }
.signal-row .s-price { font-weight: 700; }
.signal-row .s-wt { font-size: 11px; color: var(--muted-2); width: 64px; text-align: right; }

/* breakdown / notes / alts */
.breakdown { margin: 0 24px 8px; padding: 14px 16px; background: rgba(8,10,20,0.5); border: 1px solid var(--stroke); border-radius: 12px; }
.breakdown strong { font-size: 12.5px; }
.breakdown ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.notes { padding: 0 24px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.warning {
  margin: 0 24px 12px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  color: var(--gold); background: rgba(255,207,92,0.08); border: 1px solid rgba(255,207,92,0.25);
}
.warning:first-child { margin-top: 16px; }

.alts { padding: 8px 24px 24px; }
.alts h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 10px; }
.alt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; border: 1px solid var(--stroke); margin-bottom: 8px; transition: all .15s; background: rgba(255,255,255,0.02); }
.alt:hover { border-color: var(--brand); background: rgba(124,92,255,0.08); }
.alt img { width: 32px; height: 44px; object-fit: cover; border-radius: 6px; }
.alt .a-name { font-weight: 600; font-size: 14px; }
.alt .a-meta { font-size: 11.5px; color: var(--muted-2); }
.alt .a-price { margin-left: auto; font-weight: 700; }

/* spinner */
.spinner { width: 40px; height: 40px; margin: 60px auto; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.footer { border-top: 1px solid var(--stroke); padding: 28px 0 48px; }
.footer p { color: var(--muted-2); font-size: 12.5px; text-align: center; margin: 0; line-height: 1.6; }
.footer a { color: var(--muted); }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-solid); border: 1px solid var(--stroke-strong); color: var(--text);
  padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; font-size: 14px; max-width: 90vw;
}
.toast.ok { border-color: rgba(74,222,128,0.4); }

@media (min-width: 880px) {
  .layout { grid-template-columns: 440px 1fr; align-items: start; }
  .panel { position: sticky; top: 84px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .dealbox { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .card-img-wrap img { width: 100px; }
  .aff-row.three { grid-template-columns: 1fr; }
  .collection-totals { grid-template-columns: 1fr; }
}

/* ===== currency toggle ===== */
.cur-toggle { display: inline-flex; border: 1px solid var(--stroke-strong); border-radius: 999px; overflow: hidden; }
.cur-toggle button {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13px; padding: 6px 11px; width: auto; transition: all .15s;
}
.cur-toggle button.active { background: var(--holo); background-size: 200% 200%; color: #07101e; }

#collection-btn { cursor: pointer; font: inherit; }
#collection-btn:hover { color: var(--text); border-color: var(--brand); }

/* ===== save button ===== */
.result-card { position: relative; }
.save-btn {
  position: absolute; top: 14px; right: 14px; z-index: 5; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px;
  color: var(--muted); background: rgba(8,10,20,0.65); border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(6px); transition: all .15s; width: auto;
}
.save-btn:hover { color: var(--text); border-color: var(--brand); }
.save-btn.on { color: var(--gold); border-color: rgba(255,207,92,0.5); background: rgba(255,207,92,0.12); }

/* ===== grading ROI ===== */
.grade-roi {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 24px 8px; padding: 12px 14px;
  border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid var(--stroke-strong);
}
.grade-roi.yes { color: var(--buy); background: rgba(54,224,164,0.08); border-color: rgba(54,224,164,0.3); }
.grade-roi.no { color: var(--muted); background: rgba(255,255,255,0.02); }
.grade-roi b { color: var(--text); }
.grade-roi .gr-ic { font-weight: 800; }

/* ===== affiliate CTA (revenue) ===== */
.aff-cta-label { padding: 14px 24px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.aff-row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 20px; }
.aff-btn { flex-direction: column; gap: 2px; line-height: 1.2; padding: 12px 10px; }
.aff-btn .aff-sub { font-size: 11px; font-weight: 600; opacity: 0.8; }
.aff-btn.amzn { color: #07101e; background: linear-gradient(120deg,#ffcf5c,#ffb84d); }

/* ===== discover (popular / recent) ===== */
.discover { margin-top: 10px; }
.disc-block { margin-bottom: 22px; }
.disc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.disc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.disc-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--stroke-strong);
  background: var(--panel); backdrop-filter: blur(8px); transition: all .15s; width: auto;
}
.disc-chip:hover { border-color: var(--brand); background: rgba(124,92,255,0.1); transform: translateY(-1px); }
.disc-chip .dc-dot { width: 9px; height: 9px; border-radius: 50%; }
.disc-chip .dc-val { color: var(--brand-2); font-weight: 700; }

/* ===== collection drawer ===== */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.drawer { width: min(440px, 92vw); height: 100%; background: var(--panel-solid); border-left: 1px solid var(--stroke-strong); box-shadow: var(--shadow); overflow-y: auto; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--stroke); position: sticky; top: 0; background: var(--panel-solid); }
.drawer-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.drawer-close { cursor: pointer; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: none; width: auto; }
.collection-totals { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 18px 22px; }
.ct-box { padding: 12px; border-radius: 12px; border: 1px solid var(--stroke-strong); background: rgba(255,255,255,0.02); text-align: center; }
.ct-k { font-size: 11px; color: var(--muted); }
.ct-v { font-size: 17px; font-weight: 800; margin-top: 3px; }
.ct-v.up { color: var(--buy); } .ct-v.down { color: var(--sell); }
.ct-d { font-size: 11px; font-weight: 700; display: block; }
.collection-list { padding: 0 14px 24px; }
.col-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; border: 1px solid var(--stroke); margin-bottom: 8px; transition: all .15s; }
.col-row:hover { border-color: var(--brand); background: rgba(124,92,255,0.08); }
.col-row img, .col-row .no-img { width: 34px; height: 46px; object-fit: cover; border-radius: 6px; background: rgba(255,255,255,0.05); flex: 0 0 auto; }
.col-main { flex: 1; min-width: 0; }
.col-name { font-weight: 600; font-size: 14px; }
.col-set { font-size: 11.5px; color: var(--muted-2); }
.col-val { font-weight: 700; }
.col-rm { cursor: pointer; background: none; border: none; color: var(--muted-2); font-size: 18px; width: auto; padding: 4px 6px; }
.col-rm:hover { color: var(--danger); }
