:root {
  --navy: #0f1d2e; --navy-2: #172a40; --brand: #ff6b4a; --brand-2: #f2553a; --teal: #14a3a0; --red: #e3350d;
  --bg: #f4f6fb; --surface: #fff; --surface-2: #f1f3f8; --text: #111827; --muted: #6b7280;
  --border: #e5e8ef; --accent: #2563eb; --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --violet: #7c3aed;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
}
:root[data-theme="dark"] { --bg: #0a0f1f; --surface: #121a30; --surface-2: #1a2340; --text: #e7eaf3; --muted: #97a0b8; --border: #243052; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
main { min-height: 70vh; padding-bottom: 40px; }
h1 { font-size: 1.6rem; margin: 24px 0 16px; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 1.2rem; margin: 24px 0 12px; font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.link { color: var(--accent); font-weight: 600; }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; font-style: italic; letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand b { color: var(--brand); }
.brand small { font-size: .62em; font-style: normal; font-weight: 800; color: var(--teal); letter-spacing: .04em; margin-left: 2px; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: #c9d1e8; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.mainnav a.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 -2px 0 var(--brand); }
.icons { display: flex; align-items: center; gap: 6px; }
.ico { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #dbe2f5; }
.ico:hover { background: rgba(255,255,255,.08); color: #fff; }
.ico svg { width: 21px; height: 21px; }
.dot { position: absolute; top: 4px; right: 3px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--navy); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #0b6e70); color: var(--navy); font-weight: 800; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.25); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.8rem; border-color: var(--border); }
.searchbar { background: var(--navy-2); padding: 10px 0; }
.search { position: relative; }
.search input { width: 100%; background: #fff; border: 0; border-radius: 10px; padding: 11px 14px 11px 40px; font-size: .95rem; color: #111; }
.s-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 1.2rem; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; color: #fff; cursor: pointer; }
.dropdown { position: absolute; top: 58px; right: 0; background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.2); min-width: 220px; padding: 6px; border: 1px solid var(--border); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
@media (max-width: 900px) {
  .topbar-in { gap: 10px; }
  .menu-btn { display: block; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 8px 16px 16px; }
  .mainnav.open { display: flex; }
}

/* ---------- Forms & buttons ---------- */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 5px; }
.req { color: var(--red); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; font-size: .88rem; margin-bottom: 7px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #cbd2e0; position: relative; padding: 0; border: 0; cursor: pointer; transition: .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 21px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: transform .06s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(.97); background: var(--brand-2); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn.lg { padding: 14px 24px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- Giveaway ---------- */
.giveaway { background: radial-gradient(ellipse at 85% 30%, rgba(255,107,74,.28), transparent 55%), linear-gradient(115deg, var(--navy) 0%, #13304a 55%, #0b6e70 100%); color: #fff; padding: 28px 0; }
.gw-in { display: grid; grid-template-columns: auto 1fr minmax(0, 1.1fr); gap: 24px; align-items: center; }
.gw-img { width: 150px; border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.gw-kicker { font-weight: 900; letter-spacing: .12em; font-size: .8rem; color: var(--brand); }
.gw-info p { color: #d9e6ee !important; }
.gw-info h2 { margin: 4px 0 8px; font-size: 1.6rem; }
.gw-info p { margin: 0 0 10px; color: #f3e8ff; }
.gw-pill { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }
.gw-pill.done { background: var(--brand); color: #111827; }
.gw-dates { margin-top: 10px !important; opacity: .85; }
.gw-winners { margin-top: 10px; display: grid; gap: 4px; font-size: 1.05rem; }
.gw-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw-board { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.gw-board h3 { margin: 0 0 6px; font-size: .95rem; }
.gw-board ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: .9rem; }
.gw-board li { display: list-item; }
.gw-board li b { float: right; margin-left: 8px; }
.gw-board li.first { color: var(--brand); font-weight: 700; }
@media (max-width: 900px) { .gw-in { grid-template-columns: 1fr; } .gw-img { width: 120px; } }
@media (max-width: 480px) { .gw-boards { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(ellipse at 75% 40%, rgba(20,163,160,.45), transparent 55%),
  radial-gradient(ellipse at 95% 90%, rgba(255,107,74,.35), transparent 50%),
  linear-gradient(115deg, #0f1d2e 0%, #13304a 50%, #0e4f56 80%, #0b6e70 100%); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; min-height: 420px; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; margin: 0 0 14px; font-weight: 900; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 1.1rem; color: #d7ddf0; margin: 0 0 26px; max-width: 480px; }
.fan { position: relative; height: 360px; }
.fan > * { position: absolute; width: 210px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); top: 50%; left: 50%; transition: transform .4s; }
.fan > *:nth-child(1) { transform: translate(-115%, -48%) rotate(-14deg); }
.fan > *:nth-child(2) { transform: translate(-50%, -55%) rotate(0); z-index: 2; width: 240px; }
.fan > *:nth-child(3) { transform: translate(15%, -48%) rotate(14deg); }
.fan:hover img:nth-child(1) { transform: translate(-128%, -48%) rotate(-18deg); }
.fan:hover img:nth-child(3) { transform: translate(28%, -48%) rotate(18deg); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .fan { height: 280px; } .fan > * { width: 150px; } .fan > *:nth-child(2) { width: 175px; } }
.features { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.1); background: rgba(11,21,48,.6); backdrop-filter: blur(6px); }
.features-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.feat { display: flex; gap: 12px; align-items: center; }
.feat .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.feat .fi svg { width: 22px; height: 22px; color: var(--brand); }
.feat strong { display: block; font-size: .92rem; }
.feat span { font-size: .8rem; color: #b8c1dc; }
@media (max-width: 860px) { .features-in { grid-template-columns: 1fr 1fr; } }

.banner { color: #fff; padding: 34px 0; background:
  radial-gradient(ellipse at 85% 50%, rgba(20,163,160,.4), transparent 50%),
  radial-gradient(ellipse at 60% 0%, rgba(124,58,237,.55), transparent 55%),
  linear-gradient(110deg, #0b1530, #23215a 60%, #3b1f6e); position: relative; overflow: hidden; }
.banner h1 { margin: 0; font-size: 2.2rem; font-weight: 900; }
.banner p { margin: 4px 0 0; color: #d7ddf0; }
.banner .peek { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(8deg); width: 120px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: .95; }
.banner .peek + .peek { right: calc(6% + 100px); transform: translateY(-50%) rotate(-8deg); width: 105px; }
@media (max-width: 700px) { .banner .peek { display: none; } }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }

/* ---------- Card tiles ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cards.row5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .cards.row5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr 1fr; gap: 12px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.14); }
.card .img { aspect-ratio: 5/6; background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; place-items: center; padding: 14px 14px 6px; position: relative; }
.card .img img { max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .25s; }
.card:hover .img img { transform: scale(1.04); }
.ribbons { position: absolute; top: 10px; left: 10px; right: 48px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.ribbon { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; }
.ribbon.trade { background: var(--ok); } .ribbon.offer { background: var(--accent); } .ribbon.graded { background: var(--violet); }
.heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.heart.on { color: var(--red); border-color: #fecaca; background: #fef2f2; }
.heart.on svg { fill: currentColor; }
@media (hover: hover) { .heart:hover { color: var(--red); } }
.heart svg { width: 17px; height: 17px; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card .title { font-weight: 800; font-size: .98rem; }
.card .sub { font-size: .8rem; color: var(--muted); }
.card .rar { font-size: .78rem; color: var(--violet); font-weight: 600; }
.price { font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; margin-top: 6px; }
.seller { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .78rem; }
.seller .avatar { width: 26px; height: 26px; font-size: .72rem; border: 0; }
.seller b { display: block; font-size: .8rem; line-height: 1.1; }
.stars { color: #f59e0b; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.ok { background: #dcfce7; color: #15803d; } .tag.warn { background: #fef3c7; color: #b45309; }
.tag.bad { background: #fee2e2; color: #b91c1c; } .tag.info { background: #dbeafe; color: #1d4ed8; } .tag.violet { background: #ede9fe; color: #6d28d9; }
.placeholder { font-size: 3rem; }
.ph { display: grid; place-items: center; aspect-ratio: 63/88; height: 100%; max-width: 100%; border-radius: 8px; border: 4px solid var(--teal);
  background: radial-gradient(circle at 50% 50%, #3b63c9 0 18%, transparent 19%), repeating-linear-gradient(45deg, #1d3a8a 0 8px, #24479f 8px 16px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 2px #1d3a8a; }
.ph img { width: 38%; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.art .ph { width: min(100%, 340px); height: auto; }
.thumb + .ph, td .ph, .cart-row .ph, .trade-side .ph, .item .ph, .pick .ph { width: 40px; height: auto; border-width: 2px; }
.cart-row .ph, .item .ph { width: 70px; }
.fan .ph { height: auto; border-width: 6px; }

/* ---------- Marketplace ---------- */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 130px; }
.filters h3 { font-size: .85rem; margin: 18px 0 8px; font-weight: 800; }
.filters .head { display: flex; justify-content: space-between; align-items: center; }
.filters .head h3 { margin: 0; font-size: 1rem; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: .88rem; }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.crumbs { font-size: .82rem; color: var(--muted); margin: 18px 0 4px; }
.crumbs a { color: var(--accent); }
.detail { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 36px; margin-top: 16px; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.art { background: radial-gradient(ellipse at 50% 30%, var(--surface), var(--surface-2)); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); display: grid; place-items: center; }
.art img { border-radius: 14px; box-shadow: 0 24px 50px rgba(0,0,0,.28); max-height: 560px; }
.big-price { font-size: 2.3rem; font-weight: 900; letter-spacing: -.03em; margin: 14px 0; }
.seller-box { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.seller-box .avatar { width: 44px; height: 44px; border: 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.actions { display: grid; gap: 10px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meta-list { margin-top: 18px; display: grid; gap: 8px; font-size: .88rem; }
.meta-list div { display: flex; gap: 10px; }
.meta-list span:first-child { color: var(--muted); width: 160px; }
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.spec tr:nth-child(odd) td { background: var(--surface-2); }
.spec td:first-child { color: var(--muted); width: 40%; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--brand-2); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 38px; border-radius: 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.stat .si { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .si svg { width: 22px; height: 22px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.c-green { background: #dcfce7; color: #16a34a; } .c-red { background: #fee2e2; color: #dc2626; } .c-blue { background: #dbeafe; color: #2563eb; }
.c-pink { background: #fce7f3; color: #db2777; } .c-violet { background: #ede9fe; color: #7c3aed; } .c-amber { background: #fef3c7; color: #d97706; }

/* Dashboard shell */
.shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } }
.side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: sticky; top: 130px; }
.side .who { display: flex; gap: 10px; align-items: center; padding: 4px 6px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.side .who .avatar { border: 0; }
.side a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.side a svg { width: 18px; height: 18px; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a.active { background: #e8efff; color: var(--accent); }
@media (max-width: 900px) { .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; } .side .who { display: none; } .side a { white-space: nowrap; } }

.item { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.item > img { width: 70px; border-radius: 6px; align-self: flex-start; }
.item .grow { flex: 1; min-width: 0; }
.timeline { margin: 10px 0; padding-left: 14px; border-left: 2px solid var(--border); font-size: .84rem; }
.timeline div { margin-bottom: 4px; }
.trade-side { display: flex; gap: 6px; flex-wrap: wrap; }
.trade-side img { width: 56px; border-radius: 4px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 270px; overflow: auto; }
.pick label { border: 2px solid var(--border); border-radius: 10px; padding: 6px; cursor: pointer; font-weight: 500; font-size: .74rem; }
.pick input { display: none; }
.pick label:has(input:checked) { border-color: var(--brand-2); background: #fff1ec; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(var(--accent), #60a5fa); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .7rem; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }

.steps { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.steps span { display: flex; gap: 8px; align-items: center; padding: 10px 14px; font-weight: 600; font-size: .88rem; color: var(--muted); border-bottom: 2px solid transparent; }
.steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .78rem; }
.steps span.on { color: var(--accent); border-color: var(--accent); }
.steps span.on i { background: var(--accent); color: #fff; }
.publish { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .publish { grid-template-columns: 1fr; } }

.cart-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row img { width: 70px; border-radius: 6px; }
.summary div { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.summary .total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 900; }

.auth { max-width: 440px; margin: 48px auto; }
.auth .brand { justify-content: center; color: var(--navy); margin-bottom: 8px; font-size: 1.6rem; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(11,21,48,.6); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--surface); border-radius: 18px; padding: 26px; width: 100%; max-width: 580px; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hidden { display: none !important; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 60; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.err { background: var(--bad); }
.notif { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.footer { background: var(--navy); color: #97a0b8; font-size: .82rem; padding: 28px 0; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: #fff; font-size: 1.1rem; }
.footer .brand img { width: 26px; height: 26px; }

/* Fotos de la carta + IA */
.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed #b9c4e0; border-radius: 14px; cursor: pointer; margin-bottom: 12px;
  background: linear-gradient(120deg, #eef3ff, #fff8e1); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.drop:hover { border-color: var(--accent); }
.drop.has::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.86); }
.drop > * { position: relative; }
.drop div { flex: 1; }
.drop-ico { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--violet), var(--accent)); color: #fff; display: grid; place-items: center; flex: none; }
.drop-ico svg { width: 24px; height: 24px; }
.ai-status { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-status.ok { background: #ecfdf5; } .ai-status.err { background: #fef2f2; color: #991b1b; }
.ai-status .small { flex-basis: 100%; }
.ai-filled { background: #f5f3ff; border-color: #c4b5fd; }
.spin { width: 16px; height: 16px; border: 2px solid #c7d2fe; border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo-status { padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: .9rem; margin-bottom: 8px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .photos { grid-template-columns: 1fr; } }
.sides { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.sides button { background: none; border: 2px solid var(--border); border-radius: 12px; padding: 6px; cursor: pointer; display: grid; gap: 4px; font-size: .8rem; }
.sides button.on { border-color: var(--accent); }

/* Pago por transferencia */
.clabe-box { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.clabe { font-family: ui-monospace, Menlo, monospace; font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; word-break: break-all; }
.clabe-box .btn { justify-self: start; }
.receipt { max-height: 60vh; width: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--border); }
[hidden] { display: none !important; }

/* ---------- Celular ---------- */
html, body { overflow-x: clip; }
.hero-in > *, .layout > *, .detail > *, .shell > *, .publish > *, .gw-in > *, .grid2 > *, .grid3 > * { min-width: 0; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .filter-toggle { display: inline-flex; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .layout { gap: 12px; margin-top: 16px; }
}
@media (max-width: 860px) { .fan.empty { display: none; } .hero-in { min-height: 0; } }
@media (max-width: 600px) {
  .hide-xs { display: none; }
  .topbar-in { gap: 6px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 28px; height: 28px; }
  .ico { width: 36px; }
  .hero .btn { white-space: normal; flex: 1 1 auto; }
  .hero p { font-size: 1rem; }
  .features-in { grid-template-columns: 1fr; }
  .fan { height: 220px; } .fan > * { width: 120px; } .fan > *:nth-child(2) { width: 140px; }
  .modal-card { padding: 18px; max-height: 92vh; }
  .item { flex-wrap: wrap; }
  .art { padding: 16px; }
  .big-price { font-size: 1.8rem; }
  .detail h1 { font-size: 1.5rem !important; }
  .actions .btn, .two .btn { white-space: normal; }
  .toolbar select { flex: 1; }
  h1 { font-size: 1.4rem; }
}

/* Menú y tablas en celular */
.more-inline { display: none; }
@media (max-width: 900px) {
  #moreBtn { display: none; }
  .mainnav { gap: 2px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .mainnav a { padding: 12px 12px; font-size: 1rem; border-radius: 8px; }
  .mainnav a.active { box-shadow: inset 3px 0 0 var(--brand); }
  .more-inline { display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 6px; }
}
@media (max-width: 700px) {
  .table-wrap.stack { overflow: visible; background: none; border: 0; box-shadow: none; }
  .table-wrap.stack table, .table-wrap.stack tbody { display: block; width: 100%; }
  .table-wrap.stack tr:first-child:has(th) { display: none; }
  .table-wrap.stack tr { display: grid; grid-template-columns: 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .table-wrap.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .table-wrap.stack td.num { text-align: right; }
  .table-wrap.stack td[data-label]::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--muted); text-align: left; flex: none; }
  .table-wrap.stack td:not([data-label]) { justify-content: flex-start; text-align: left; }
  .table-wrap.stack td:empty { display: none; }
  .table-wrap.stack td:last-child:not([data-label]) { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
  .table-wrap.stack td .row { flex-wrap: wrap !important; justify-content: flex-start; }
  .table-wrap.stack td:last-child .btn { flex: 1 1 auto; }
}

/* Botón para quitar una foto elegida */
.photo-x { display: none; margin-left: auto; flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--bad); font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.drop.has .photo-x { display: inline-block; }
.photo-x:hover { background: #fef2f2; }

/* Botón opcional de IA */
.ai-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.ai-cta .btn { white-space: nowrap; }
.ai-cta .muted { flex: 1 1 200px; }

/* Formas de entrega */
.delivery-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.delivery-opts .check { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin: 0; }
.delivery-opts .check input { margin-top: 3px; flex: none; }
.delivery-opts .check:has(input:checked) { border-color: var(--brand); background: var(--surface-2); }

/* Datos del vendedor al comprar y pagar */
.seller-pay { display: grid; gap: 10px; margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.warn-box { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px; font-size: .9rem; }

/* Trades: fotos de cartas sin publicar y diferencia */
.trade-photos { display: grid; gap: 8px; }
.tphoto { display: flex; align-items: center; gap: 8px; }
.tphoto img { width: 48px; border-radius: 6px; flex: none; }
.tphoto input { flex: 1; min-width: 0; }
.tphoto-view { padding: 0; border: 0; background: none; cursor: zoom-in; }
.tphoto-view img { width: 56px; border-radius: 4px; }
.diff-box { margin-top: 10px; background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
#tAdd { cursor: pointer; }

/* Chat de la venta */
.chat-head { margin-bottom: 10px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; height: min(50vh, 380px); overflow-y: auto; padding: 10px; background: var(--surface-2); border-radius: 12px; }
.msg { align-self: flex-start; max-width: 82%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 8px 11px; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--teal); border-color: var(--teal); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg span { display: block; font-size: .68rem; opacity: .7; margin-top: 2px; }
.chat-send { display: flex; gap: 8px; margin-top: 10px; }
.chat-send input { flex: 1; min-width: 0; }
.chat-closed { margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: .9rem; }

.meet-box { margin: 4px 0 6px; padding: 12px; border: 1px dashed var(--teal); border-radius: 12px; background: var(--surface-2); }

.drop.locked { opacity: .45; pointer-events: none; filter: grayscale(1); }
.meet-box .agree { border: 0; padding: 0; }

/* En celular no se muestran las cartas decorativas del inicio */
@media (max-width: 860px) { .hero .fan { display: none; } }

/* Antifraude */
.ribbon.verified { background: #047857; }
.cert-box { margin: -4px 0 12px; font-size: .9rem; }
.checklist { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 6px; }

.gw-prize { font-weight: 800; color: var(--brand); font-size: .92rem; margin-bottom: 2px; }
.gw-rule { font-size: .75rem; opacity: .8; margin-bottom: 6px; }

/* Ranking del giveaway */
.gw-more { margin-top: 12px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.rk-hero { padding: 28px 0; }
.rk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 760px) { .rk-grid { grid-template-columns: 1fr; } }
.rk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.rk-head h2 { margin: 0 0 4px; }
.rk-prize { font-weight: 800; color: var(--brand-2); margin-bottom: 2px; }
.rk-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.rk-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.rk-list li.p1 { background: #fff7d6; } .rk-list li.p2 { background: #f1f3f6; } .rk-list li.p3 { background: #fbeee4; }
.rk-list li.me { outline: 2px solid var(--teal); }
.rk-pos { width: 28px; text-align: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.rk-list a { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.rk-n { margin-left: auto; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

.rk-rules { margin-top: 20px; }
.rk-rules h2 { margin-top: 0; }
.rk-rules ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.rk-list li.p1 { background: #fff1ec; } .rk-list li.p2 { background: #eef4f7; } .rk-list li.p3 { background: #e8f6f5; }

/* Fotos de los premios */
.gw-prize-img { width: 100%; height: 110px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.rk-prize-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--surface-2); margin-bottom: 12px; }
.gw-in { grid-template-columns: 1fr minmax(0, 1.2fr); }
@media (max-width: 900px) { .gw-in { grid-template-columns: 1fr; } }

/* Foto de perfil y portada */
.avatar.xl { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.cover { height: 200px; border-radius: 12px; background: linear-gradient(115deg, var(--navy), #13304a 55%, #0b6e70) center / cover no-repeat; position: relative; }
@media (max-width: 600px) { .cover { height: 130px; } .avatar.xl { width: 88px; height: 88px; font-size: 2rem; } }
.cover-btns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.cover-btns .btn { background: rgba(255,255,255,.92); }
.prof-edit { margin: -6px -6px 18px; }
.prof-row { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 0 16px; position: relative; flex-wrap: wrap; }
.prof-row > div { padding-top: 10px; min-width: 0; }
.avatar-edit { position: relative; display: block; cursor: pointer; margin: -52px 0 0; flex: none; }
.avatar-edit .cam { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); font-size: .9rem; }
.pub-prof .cover { border-radius: 0; }
.pub-row { padding: 0 22px 20px; align-items: flex-start; position: relative; }
.pub-row > .avatar { margin-top: -52px; }
.pub-row > div { padding-top: 12px; min-width: 0; }

.report-btn { background: none; border: 0; padding: 0; margin: 0 0 10px; cursor: pointer; color: var(--muted); font: inherit; font-size: .82rem; }
.report-btn:hover { color: var(--bad); }

/* Ver contraseña y validación de correo */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 96px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.field-err { color: var(--bad); margin-top: 4px; }
input.bad { border-color: var(--bad); }

.msg-from { display: block; font-size: .72rem; margin-bottom: 2px; color: var(--teal); }
.msg.admin { border-color: var(--brand); }
.msg.admin .msg-from { color: var(--brand-2); }

.modal.dialog { z-index: 60; }

/* Estrellas con medias */
.star-row { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; vertical-align: -1px; }
.star-bg { color: #d6dbe4; }
.star-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f59e0b; }
.star-pick { display: flex; gap: 6px; justify-content: center; margin: 10px 0 4px; user-select: none; }
.sp-star { position: relative; width: 48px; height: 48px; --fill: 0%; }
.sp-ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; line-height: 1;
  background: linear-gradient(90deg, #f59e0b var(--fill), #d6dbe4 var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; }
.sp-half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; cursor: pointer; }
.sp-half.l { left: 0; } .sp-half.r { right: 0; }
.sp-val { text-align: center; font-weight: 700; min-height: 1.4em; }

/* Páginas legales */
.legal { max-width: 860px; margin: 20px auto 0; }
.legal .tabs { flex-wrap: wrap; }
.legal-body { padding: 24px; line-height: 1.65; }
.legal-body h1 { margin-top: 0; }
.legal-body h3 { margin: 22px 0 6px; font-size: 1.02rem; }
.legal-body ul, .legal-body ol { padding-left: 20px; display: grid; gap: 6px; }
.legal-body .spec td:first-child { width: 34%; vertical-align: top; }
.rules-list { list-style: none; padding-left: 0 !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; }
.footer-links a { color: #c9d1e8; font-size: .85rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.safe-note { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.step-txt { color: var(--teal); font-weight: 600; margin-top: 2px; }

/* Comisiones */
.comm-box { margin-bottom: 14px; border-color: var(--brand); }
.comm-amt { font-size: 1.5rem; font-weight: 800; }
.comm-list { display: grid; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.comm-list > div { display: flex; justify-content: space-between; gap: 10px; }
.comm-total { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; font-size: 1rem; }

.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.earn-grid b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.earn-net b { color: var(--ok); font-size: 1.35rem; }
@media (max-width: 560px) { .earn-grid { grid-template-columns: 1fr 1fr; } .earn-net { grid-column: 1 / -1; } }
.comm-pay { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; gap: 10px; }
.ok-txt { color: var(--ok); font-weight: 700; }

/* Textos grises dentro del banner oscuro del giveaway */
.giveaway .muted, .gw-board .muted { color: #d3e2ec; }

.seen { color: var(--muted); font-weight: 500; white-space: nowrap; }
.seen.on { color: var(--ok); font-weight: 700; }

/* Fotos en el chat */
.chat-cam { padding: 8px 12px; flex: none; cursor: pointer; }
.msg-img { display: block; max-width: 220px; width: 100%; border-radius: 8px; margin-bottom: 4px; cursor: zoom-in; }
.photo-view { cursor: zoom-out; }
.photo-view img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }

/* Acceso: verificación de correo y Google */
.verify-bar { background: #fff7e0; color: #5a4300; border-bottom: 1px solid #f0d48a; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: .9rem; text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }

/* ===== Rediseño: tema oscuro premium con acentos azul/violeta y detalles holográficos ===== */
:root {
  --navy: #0b0e1f; --navy-2: #131838; --brand: #8b7bff; --brand-2: #6d5cf0; --teal: #38bdf8; --accent: #6aa8ff;
  --bg: #080b17; --surface: #11162b; --surface-2: #1a2142; --text: #e9ecfa; --muted: #98a2c4; --border: #252d52; --violet: #a78bfa;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --holo: linear-gradient(120deg, #6aa8ff, #a78bfa 35%, #f0abfc 55%, #5eead4 80%, #6aa8ff);
  color-scheme: dark;
}
body { background: radial-gradient(1200px 500px at 80% -10%, rgba(109,92,240,.18), transparent 60%), var(--bg); }
.hero, .banner { background: radial-gradient(800px 400px at 85% 0%, rgba(167,139,250,.35), transparent 60%), radial-gradient(600px 300px at 10% 100%, rgba(56,189,248,.22), transparent 60%), linear-gradient(135deg, #0b0e1f, #151a3d) !important; }
.hero h1 em, .banner h1 em { font-style: normal; background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo 6s linear infinite; }
@keyframes holo { to { background-position: 200% 0; } }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #cfc8ff; background: rgba(139,123,255,.16); border: 1px solid rgba(139,123,255,.4); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.btn.primary { background: linear-gradient(135deg, #6d5cf0, #4f8cff); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(109,92,240,.35); }
.btn.primary:hover { filter: brightness(1.1); }
.card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(139,123,255,.6); box-shadow: 0 14px 36px rgba(109,92,240,.25); }
.card .price, .big-price { color: #c4b8ff; }
.tag.ok { background: rgba(34,197,94,.16); color: #6ee7a0; } .tag.warn { background: rgba(245,158,11,.16); color: #fcd34d; }
.tag.bad { background: rgba(239,68,68,.16); color: #fca5a5; } .tag.info { background: rgba(96,165,250,.16); color: #93c5fd; } .tag.violet { background: rgba(167,139,250,.18); color: #c4b5fd; }
.c-green { background: rgba(34,197,94,.16); color: #4ade80; } .c-red { background: rgba(239,68,68,.16); color: #f87171; } .c-blue { background: rgba(96,165,250,.16); color: #60a5fa; }
.warn-box { background: rgba(245,158,11,.12); color: #fcd34d; border-color: rgba(245,158,11,.35); }
.diff-box { background: rgba(96,165,250,.12); color: #bfdbfe; border-color: rgba(96,165,250,.35); }
.pick label:has(input:checked) { background: rgba(139,123,255,.16); }
.verify-bar { background: #2a2250; color: #e9e3ff; border-bottom-color: #4a3d8f; }
.search input { background: var(--surface-2); color: var(--text); }
.holo-frame, .holo { position: relative; }
.holo-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--holo); background-size: 300% 300%; opacity: .12; mix-blend-mode: screen; animation: holo 8s linear infinite; }

/* Subastas */
.ribbon.live { background: #ef4444; animation: pulse 1.6s ease-in-out infinite; } .ribbon.soon { background: #3b82f6; }
@keyframes pulse { 50% { opacity: .65; } }
.pill-live { background: #ef4444; color: #fff; border-radius: 999px; font-size: .72rem; padding: 2px 8px; margin-left: 4px; }
.auc-meta { display: flex; justify-content: space-between; gap: 6px; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.auc-box { border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface), var(--surface-2)); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.auc-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.auc-clock { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.auc-result { margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(139,123,255,.14); font-weight: 700; }
.bid-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.bid-list > div.top { background: rgba(34,197,94,.1); }

/* Confianza */
.trust { margin: 36px 0 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.trust-item span { font-size: 1.6rem; } .trust-item b { display: block; margin: 6px 0 4px; } .trust-item p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } .cards.row5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .auc-clock { font-size: 1.3rem; } }

.mp-btn { display: flex; align-items: center; justify-content: center; background: #009ee3; color: #fff; border-color: transparent; font-weight: 800; }
.mp-btn:hover { filter: brightness(1.08); }

/* Sin zoom: la pantalla no se mueve al pellizcar ni al tocar dos veces; los campos a 16px evitan el zoom automático de iPhone */
html, body { touch-action: pan-x pan-y; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
input, select, textarea { font-size: 16px; }

/* Agotado / vendido: en gris y sin poder comprar */
.card.soldout { opacity: .55; filter: grayscale(1); }
.card.soldout:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.ribbon.sold { background: #475569; } .ribbon.stock { background: #0ea5e9; }
.sold-note { border: 1px dashed var(--border); border-radius: 12px; }

/* ===== Colores: más contraste y más claros para leer mejor ===== */
:root {
  --navy: #0f1530; --navy-2: #182046; --brand: #7c9cff; --brand-2: #5b7cfa; --teal: #2dd4bf; --accent: #60a5fa;
  --bg: #0d1226; --surface: #171e3b; --surface-2: #212a52; --text: #f3f5ff; --muted: #b4bcdc; --border: #34406f; --violet: #b69cff;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
}
body { background: radial-gradient(1100px 480px at 85% -10%, rgba(124,156,255,.22), transparent 60%), var(--bg); }
.card .price, .big-price { color: #ffd479; }
.card .title { color: #fff; }
.btn { border-color: var(--border); }
.btn.primary { background: linear-gradient(135deg, #5b7cfa, #8b5cf6); }
a.link, .link { color: #9db4ff; }
.topbar { background: #111936; border-bottom: 1px solid var(--border); }
input, select, textarea { background: #1d2547; border-color: #3a4780; }
input::placeholder, textarea::placeholder { color: #8e98c4; }
.side a.active { background: rgba(124,156,255,.2); color: #fff; }

.back-btn { margin-bottom: 8px; }

/* ===== Colores v3: azul profundo con amarillo eléctrico y detalles rojos ===== */
:root {
  --navy: #0b1233; --navy-2: #13205a; --brand: #ffcb05; --brand-2: #ffb000; --teal: #2dd4ff; --accent: #5b8cff; --red: #ff4d4d;
  --bg: #0a1130; --surface: #121c4d; --surface-2: #1b2970; --text: #ffffff; --muted: #c3cdf5; --border: #33449a; --violet: #a78bfa;
  --ok: #3ddc97; --warn: #ffcb05; --bad: #ff6b6b;
  --holo: linear-gradient(120deg, #ffcb05, #ff6b6b 30%, #a78bfa 55%, #2dd4ff 80%, #ffcb05);
}
body { background: radial-gradient(1100px 520px at 85% -10%, rgba(255,203,5,.14), transparent 60%), radial-gradient(900px 480px at 0% 20%, rgba(91,140,255,.22), transparent 60%), var(--bg); }
.hero, .banner { background: radial-gradient(800px 400px at 85% 0%, rgba(255,203,5,.28), transparent 60%), radial-gradient(700px 380px at 5% 100%, rgba(255,77,77,.22), transparent 60%), linear-gradient(135deg, #0b1233, #1a2a7a) !important; }
.topbar { background: #0b1233; border-bottom: 3px solid #ffcb05; }
.btn.primary { background: linear-gradient(135deg, #ffcb05, #ff9f1a); color: #14205a; border-color: transparent; font-weight: 800; box-shadow: 0 6px 20px rgba(255,176,0,.3); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.mp-btn { color: #fff; }
.card .price, .big-price { color: #ffd23f; }
.card:hover { border-color: #ffcb05; box-shadow: 0 14px 36px rgba(255,203,5,.18); }
.kicker { color: #14205a; background: #ffcb05; border-color: #ffcb05; }
.hero h1 em { background: linear-gradient(120deg, #ffcb05, #ff9f1a, #ff6b6b); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.side a.active { background: rgba(255,203,5,.16); color: #ffd23f; }
a.link, .link { color: #8fb0ff; }
.ribbon.stock { background: #2563eb; }
.verify-bar { background: #3a2f00; color: #ffe28a; border-bottom-color: #8a6d00; }
input, select, textarea { background: #182464; border-color: #3b4db0; }

/* Pantalla de entrar: centrada, legible y respetando la parte de arriba del celular */
body { padding-top: env(safe-area-inset-top); }
.auth { margin: 6vh auto 48px; }
.auth .brand { color: var(--text); }
.auth.panel { padding: 28px 22px !important; }
@media (max-width: 520px) { .auth { margin-top: 4vh; } }

/* Pantalla de carga con logo */
#splash { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 20px; background: #0b1233; }
#splash img { width: 96px; height: 96px; border-radius: 22px; animation: splashPulse 1.4s ease-in-out infinite; }
#splash .spin { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.2); border-top-color: #ffcb05; border-radius: 50%; animation: spinR .8s linear infinite; }
@keyframes spinR { to { transform: rotate(360deg); } } @keyframes splashPulse { 50% { transform: scale(1.06); } }

/* Franjas de promoción, cupón y live */
.promo-bar { display: block; text-align: center; padding: 9px 14px; font-size: .9rem; font-weight: 700; background: #ffcb05; color: #14205a; }
.promo-bar a { color: inherit; }
.coupon-bar { background: #3ddc97; color: #08301f; }
.live-bar { background: #e03131; color: #fff; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { filter: brightness(1.15); } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* Etiquetas nuevas */
.ribbon.new { background: #ff4d4d; } .ribbon.pre { background: #8b5cf6; }

/* Brillo holográfico al pasar sobre una tarjeta */
.card .img { position: relative; overflow: hidden; }
.card:not(.soldout) .img::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(255,203,5,.18) 52%, transparent 66%); transform: translateX(-60%); transition: opacity .25s, transform .7s; }
.card:not(.soldout):hover .img::after { opacity: 1; transform: translateX(60%); }
.detail .art { cursor: zoom-in; }

/* Ver foto en grande */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(4,8,24,.94); display: grid; grid-template-rows: 1fr auto; }
.lightbox .lb-scroll { overflow: auto; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; cursor: zoom-in; transition: all .2s; }
.lightbox.zoomed .lb-scroll { place-items: start; }
.lightbox.zoomed img { max-width: none; max-height: none; width: 190%; cursor: zoom-out; }
.lb-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.1rem; }
.lb-hint { text-align: center; color: #c3cdf5; font-size: .8rem; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }

/* Reseñas */
.reviews { margin: 32px 0 8px; }
.rev-sum { margin: -4px 0 14px; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rev-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.rev-card p { margin: 8px 0; } .rev-card b { color: #ffd23f; }

/* En vivo */
.live-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }

/* Ruleta */
.wheel-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 16px 0; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, #1b2970, #3a1b70); border: 1px solid #ffcb05; }
.wheel-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 12px auto 16px; }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 4px #ffcb05, 0 10px 30px rgba(0,0,0,.5); }
.wheel .wl { position: absolute; inset: 0; display: flex; justify-content: center; padding-top: 12%; font-weight: 900; font-size: 1.15rem; color: #14205a; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #0b1233; color: #ffcb05; display: grid; place-items: center; font-weight: 900; border: 3px solid #fff; }
.wheel-pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 3; font-size: 1.8rem; color: #ff4d4d; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.wheel-msg { text-align: center; min-height: 48px; margin-bottom: 10px; }

/* Anuncios con fotos en el inicio */
.ad-carousel { position: relative; margin: 16px 0 6px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.4); border: 1px solid var(--border); }
.ad-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ad-track::-webkit-scrollbar { display: none; }
.ad-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 6; display: block; background: #0b1233; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.ad-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.ad-dots span.on { width: 22px; border-radius: 6px; background: #ffcb05; }
@media (max-width: 600px) { .ad-slide { aspect-ratio: 16 / 8; } .ad-carousel { border-radius: 14px; } }
.bn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bn-item { background: var(--surface-2); border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.bn-item img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
.push-bar { background: #3a2f00; color: #ffe28a; }
.push-bar .btn { margin-left: 6px; }

/* Título del banner y pie de la imagen ampliada */
.ad-slide { position: relative; }
.ad-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 30px; display: grid; gap: 2px; color: #fff; background: linear-gradient(to top, rgba(4,8,24,.88), rgba(4,8,24,0)); }
.ad-cap b { font-size: clamp(1.05rem, 3.4vw, 1.7rem); font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.6); color: #ffd23f; }
.ad-cap span { font-size: clamp(.82rem, 2.4vw, 1rem); }
.lb-cap { text-align: center; color: #fff; padding: 6px 16px 0; }
.lb-cap b { color: #ffd23f; font-size: 1.05rem; }

/* Consíguemelo, ayuda y compartir */
.ask-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(135deg, #1b2970, #5b2a86); border: 1px solid #ffcb05; }
.how-list { padding-left: 20px; display: grid; gap: 4px; margin: 0 0 14px; }
.req-card { margin-bottom: 12px; }
.req-thumb { border: 0; background: none; padding: 0; cursor: zoom-in; } .req-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.quote-box { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(91,140,255,.16); border: 1px solid #5b8cff; }
.steps-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.step-big { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.step-big span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffcb05; color: #14205a; font-weight: 900; margin-bottom: 8px; }
.step-big p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.faq { display: grid; gap: 10px; } .faq details { padding: 12px 16px; } .faq summary { cursor: pointer; } .faq p { margin: 8px 0 0; color: var(--muted); }
#splash img { width: 64px; height: 64px; border-radius: 16px; }

/* Con una ventana o foto abierta, la página de atrás no se desliza */
body.no-scroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.modal, .modal-card, .lightbox, .lb-scroll { overscroll-behavior: contain; }
.lightbox { touch-action: none; }
.lightbox.zoomed .lb-scroll { touch-action: pan-x pan-y; }
.modal-card { touch-action: pan-y; }

/* Esqueleto mientras cargan las cartas */
.card.skel { aspect-ratio: 5 / 7; border-radius: var(--radius); background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: skel 1.3s linear infinite; border: 1px solid var(--border); }
@keyframes skel { to { background-position: -200% 0; } }

.facebook-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #1877f2; color: #fff; border: 1px solid #1877f2; }

/* ===== Colores v4: Holo Vivo (morado intenso + amarillo Pokémon + rosa, brillo holográfico). El logo no se toca ===== */
:root {
  --navy: #12063a; --navy-2: #1d0b57; --brand: #ffd400; --brand-2: #ffb800; --teal: #2ee6ff; --accent: #ff3d9a; --red: #ff3d6e;
  --bg: #130644; --surface: #231063; --surface-2: #2f1783; --text: #ffffff; --muted: #cdbff5; --border: #5a34c4; --violet: #b18cff;
  --ok: #3df0a5; --warn: #ffd400; --bad: #ff6b8a;
  --holo: linear-gradient(120deg, #ff3d9a, #ff8a00, #ffd400, #2ee6ff, #ff3d9a);
}
body { background: radial-gradient(1000px 520px at 85% -10%, rgba(255,61,154,.28), transparent 60%), radial-gradient(900px 520px at 0% 15%, rgba(90,34,200,.55), transparent 60%), var(--bg); }
h1, h2, .hero h1, .section-head h2 { font-family: Orbitron, Inter, system-ui, sans-serif; letter-spacing: 0; }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); font-weight: 900; line-height: 1.12; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.1rem; }
.hero, .banner { background: radial-gradient(800px 420px at 85% 0%, rgba(255,61,154,.45), transparent 60%), radial-gradient(700px 380px at 5% 100%, rgba(255,212,0,.22), transparent 60%), linear-gradient(135deg, #1a0a52, #3c17a0) !important; }
.hero h1 em, .banner h1 em { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holo 6s linear infinite; }
.topbar { background: #12063a; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #ff3d9a, #ff8a00, #ffd400, #2ee6ff) 1; }
.searchbar { background: #1d0b57; }
.btn.primary { background: var(--holo); background-size: 250% 250%; color: #14063a; border-color: transparent; font-weight: 800; box-shadow: 0 6px 22px rgba(255,61,154,.38); animation: holo 7s linear infinite; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.mp-btn { background: #009ee3; color: #fff; animation: none; box-shadow: none; }
.card { border-color: rgba(255,61,154,.45); }
.card:hover { border-color: #ffd400; box-shadow: 0 14px 36px rgba(255,61,154,.3); }
.card .price, .big-price { color: #ffd400; font-family: Orbitron, Inter, system-ui, sans-serif; font-weight: 800; }
.kicker { color: #14063a; background: #ffd400; border-color: #ffd400; }
.side a.active { background: rgba(255,212,0,.16); color: #ffd400; }
a.link, .link { color: #ffd400; }
.mainnav a.active { box-shadow: inset 0 -2px 0 #ffd400; }
.ribbon.stock { background: #7b3cff; } .ribbon.new { background: #ff3d9a; } .ribbon.pre { background: #7b3cff; }
.promo-bar { background: linear-gradient(90deg, #ff3d9a, #ffd400); color: #14063a; }
.verify-bar { background: #3a2000; color: #ffe28a; border-bottom-color: #8a6d00; }
input, select, textarea { background: #2a1478; border-color: #6b3fd6; }
input::placeholder, textarea::placeholder { color: #a996e8; }
.panel, .auc-box, .trust-item { border-color: #5a34c4; }
#splash { background: #12063a; }
#splash .spin { border-top-color: #ffd400; }
.card:not(.soldout) .img::after { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(255,61,154,.22) 52%, transparent 66%); }

.more-wrap { display: flex; justify-content: center; margin: 26px 0 8px; }
.pager a { color: var(--text); } .pager a.on { background: #ffd400; color: #14063a; border-color: #ffd400; }

/* Precios: letra compacta y sin cortarse (si no caben en una línea, bajan de renglón) */
.card .price, .big-price, .auc-clock { font-family: Inter, system-ui, sans-serif; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card .price { font-size: clamp(.95rem, 4.2vw, 1.2rem); white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.card .body, .card .title, .card .sub { min-width: 0; }
.big-price { font-size: clamp(1.6rem, 8vw, 2.3rem); overflow-wrap: anywhere; line-height: 1.1; }
@media (max-width: 480px) { .card .body { padding: 10px 10px 12px; } }
