:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #0e0e0e;
  --muted: #74716b;
  --line: #e7e4de;
  --drop: #00a862;
  --drop-soft: #e3f7ec;
  --hot: #ff4d2e;
  --hot-soft: #fff0ec;
  --dark: #0e0e0e;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- header + ticker ---------- */
header.top { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.5px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { display: inline-block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--drop); }
header.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a:hover { color: var(--ink); }
.livepill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff !important; font-weight: 600; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@media (max-width: 640px) { header.top nav a.hide-sm { display: none; } }

.ticker { background: var(--dark); color: #fff; overflow: hidden; white-space: nowrap; font-size: 13px; height: 34px; display: flex; align-items: center; }
.ticker-track { display: inline-flex; gap: 36px; padding-left: 100%; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.ticker b { font-weight: 700; letter-spacing: .4px; }
.ticker .down { color: #3ee08f; }
.ticker .muted { color: #9a9a9a; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- home ---------- */
.hero { padding: 36px 0 12px; display: grid; gap: 20px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1.02; letter-spacing: -1px; margin: 0; }
.hero h1 em { font-style: normal; color: var(--drop); }
.hero p { color: var(--muted); margin: 12px 0 0; max-width: 520px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; }
.kpi span { font-size: 12px; color: var(--muted); }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }

h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 32px rgba(0,0,0,.09); }
.card .media { position: relative; aspect-ratio: 1 / 1; background: #eee; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card.closed .media img { filter: grayscale(1); opacity: .6; }
.tag { position: absolute; top: 10px; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 99px; }
.tag.off { left: 10px; background: var(--drop); color: #fff; }
.tag.eye { right: 10px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); color: var(--ink); font-weight: 600; }
.tag.last { left: 10px; top: auto; bottom: 10px; background: var(--hot); color: #fff; }
.band { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(14,14,14,.82); color: #fff; padding: 9px 12px; font-size: 13px; display: flex; justify-content: space-between; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; pointer-events: none; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.brand { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.pname { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pricerow { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.retail { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); padding: 12px 0 4px; font-size: 14px; }

/* ---------- pagina asta ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { text-decoration: none; }
.auction { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 12px 0 120px; }
@media (min-width: 900px) { .auction { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 48px; } .stickycol { position: sticky; top: 80px; align-self: start; } }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #eee; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.auction h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); margin: 0; letter-spacing: -.5px; line-height: 1.05; }
.auction .pname { font-size: 16px; white-space: normal; margin-top: 4px; }

.pricebox { background: var(--surface); border-radius: var(--radius); padding: 18px 18px 14px; margin-top: 16px; box-shadow: var(--shadow); }
.pricebox .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bigprice { font-size: clamp(44px, 9vw, 64px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-top: 4px; transition: color .25s; }
.bigprice.tick { color: var(--drop); }
.delta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-top: 4px; }
.delta .chg { color: var(--drop); font-weight: 700; background: var(--drop-soft); padding: 3px 8px; border-radius: 8px; }
.delta .muted { color: var(--muted); }

.chartbox { position: relative; margin-top: 14px; height: 170px; }
.chartbox canvas { width: 100%; height: 100%; display: block; }
.chartmeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.hot b { color: var(--hot); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--hot); border-radius: 99px; transition: width .4s; }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.sizes button { min-width: 56px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.sizes button.sel { border-color: var(--ink); background: var(--ink); color: #fff; }
.sizes button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.drop { background: var(--drop); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.closedbox { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-top: 16px; box-shadow: var(--shadow); }
.closedbox .big { font-family: var(--serif); font-size: 30px; font-weight: 700; }

.trades { margin-top: 18px; }
.trades h3, .info h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 8px; }
.trade { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trade .p { font-weight: 700; color: var(--drop); }
.trade .t { color: var(--muted); font-size: 13px; }

.info { margin-top: 18px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p, details ol { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
details ol { padding-left: 18px; }

.stepline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 14px; }
.stepline div { font-size: 11px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.stepline div.on { border-color: var(--drop); color: var(--ink); font-weight: 600; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.buybar .p { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.buybar .s { font-size: 12px; color: var(--muted); }
.buybar .btn { width: auto; flex: 1; padding: 14px; }
@media (min-width: 900px) { .buybar { display: none; } }

.msg { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: var(--hot-soft); color: #b42318; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { background: var(--drop-soft); color: #067647; }

/* ---------- checkout ---------- */
.checkout { max-width: 560px; margin: 24px auto 48px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary { display: flex; gap: 14px; align-items: center; }
.summary img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
form label { font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.notice { font-size: 13px; color: var(--muted); margin: 10px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; margin-top: 48px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.admin th, .admin td { text-align: left; padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.admin .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tabs button.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eee; white-space: nowrap; }
.pill.paid { background: #fef9c3; }
.pill.forwarded { background: #dbeafe; }
.pill.shipped { background: #dcfce7; }
.pill.refunded { background: #fee2e2; }
.warn { color: #b45309; }
.good { color: var(--drop); }
.small { font-size: 12px; color: var(--muted); }
.admin .actions button { font-size: 12px; padding: 4px 8px; margin: 2px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.admin .btn { padding: 13px; font-size: 15px; }

/* ================= v3: social + mercato + pulizia ================= */
:root { --down: #e5484d; --down-soft: #fdecec; --buy: #00a862; --bg: #ffffff; --soft: #f5f5f7; }
body { background: var(--bg); }
.card, .pricebox, .panel, .closedbox, .gallery { box-shadow: none; }

/* storie dei marchi */
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; background: none; border: 0; cursor: pointer; padding: 0; }
.story .ring-o { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: #e5e5ea; display: grid; place-items: center; }
.story.live .ring-o { background: conic-gradient(from 200deg, #ff7a00, #ff2d55, #af52de, #ff7a00); }
.story.sel .ring-o { background: var(--ink); }
.story .in { width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 3px solid #fff; display: grid; place-items: center; overflow: hidden; }
.story .in span { font-family: var(--serif); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.05; padding: 0 4px; }
.story small { font-size: 12px; color: var(--muted); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.sel small { color: var(--ink); font-weight: 600; }

/* indice di mercato */
.index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0 4px; }
@media (min-width: 760px) { .index { grid-template-columns: repeat(4, 1fr); } }
.index > div { background: #fff; padding: 12px 14px; }
.index small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.index b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.index .down { color: var(--down); font-size: 13px; font-weight: 700; margin-left: 6px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 12px; }
.toolbar h2 { margin: 0; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.sel { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* card stile social */
.card { box-shadow: none; border-radius: 0; background: transparent; }
.card:hover { transform: none; box-shadow: none; }
.card .media { border-radius: 18px; overflow: hidden; background: var(--soft); }
.card:hover .media img { transform: scale(1.03); }
.card .media img { transition: transform .4s; }
.watch { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 99px; padding: 6px 11px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card .ring { position: absolute; top: 8px; right: 8px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.12)); }
.card .body { padding: 10px 2px 4px; }
.brand { font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.sym { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; letter-spacing: .5px; }
.now { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.was { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.chg { color: var(--down); font-size: 12px; font-weight: 700; }
.minispark { height: 34px; width: 100%; display: block; margin-top: 6px; }
.lastsale { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lastsale b { color: var(--ink); }

/* tabella mercato */
.market { width: 100%; border-collapse: collapse; font-size: 14px; }
.market th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.market th:first-child, .market td:first-child { text-align: left; }
.market td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.market tr { cursor: pointer; }
.market tr:hover td { background: #fafafa; }
.market .prod { display: flex; gap: 10px; align-items: center; }
.market .prod img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.market .prod b { display: block; }
.market .prod span { font-size: 12px; color: var(--muted); }
.market canvas { width: 90px; height: 30px; display: block; margin-left: auto; }
.market .buy { background: var(--buy); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; }
.marketwrap { overflow-x: auto; }
@media (max-width: 720px) { .market .hide-sm { display: none; } }

/* movimenti */
.movers { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
@media (min-width: 760px) { .movers { grid-template-columns: repeat(3, 1fr); } }
.mover { background: var(--soft); border-radius: 16px; padding: 14px; }
.mover h4 { margin: 0 0 8px; font-size: 13px; }
.mover a { display: flex; justify-content: space-between; text-decoration: none; padding: 6px 0; font-size: 14px; border-top: 1px solid #e8e8ed; }
.mover a:first-of-type { border-top: 0; }

/* pagina asta v3 */
.gallery { background: var(--soft); border-radius: 22px; }
.gallery .ring { position: absolute; top: 14px; right: 14px; }
.gallery .watch { top: 16px; left: 16px; }
.symrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.symrow .sym { margin: 0; font-size: 12px; }
.pricebox { border: 1px solid var(--line); background: #fff; }
.bigprice.tick { color: var(--down); }
.strike { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 15px; }
.strike .was { font-size: 16px; }
.strike .off { background: var(--down); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 8px; }
.strike .c1m { color: var(--down); font-weight: 700; font-size: 14px; }
.source { font-size: 12px; color: var(--muted); margin-top: 6px; display: inline-flex; gap: 4px; }
.source a { color: var(--muted); }
.charthead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.chartbox { height: 220px; margin-top: 8px; }
.speed { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.speed .meter { flex: 1; height: 6px; background: #e5e5ea; border-radius: 99px; overflow: hidden; }
.speed .meter i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a00, #ff2d55); border-radius: 99px; transition: width .5s; }
.speed b { white-space: nowrap; }
.refbox { display: flex; justify-content: space-between; align-items: center; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.refbox b { font-size: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin: 16px 0; }
@media (min-width: 560px) { .kv { grid-template-columns: repeat(3, 1fr); } }
.kv div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.btn.drop { background: var(--buy); }
.ship { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; line-height: 1.35; }
.ship .truck { font-size: 22px; }
.ship span { color: var(--muted); }
.ship span b { color: var(--ink); }
.trade .p { color: var(--ink); }

.save { color: var(--buy); font-size: 12px; font-weight: 700; }
.save-big { color: var(--buy); font-weight: 700; font-size: 15px; text-align: center; margin: 10px 0 0; }
.receipt { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; }
.receipt div { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt div:last-child { border-bottom: 0; }
.receipt span { color: var(--muted); }
.receipt .gain b { color: var(--buy); }
.locked { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0; }

.quote { display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; padding: 5px 9px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.quote.neg { background: var(--down); color: #fff; }
.qpos { position: absolute; top: 10px; right: 10px; }
.gallery #ringTag { position: absolute; top: 16px; right: 16px; }
.gallery #ringTag .quote { font-size: 15px; padding: 7px 11px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

@media (min-width: 760px) { .index { grid-template-columns: repeat(3, 1fr); } }

/* ================= v4: pulizia stile Apple ================= */
:root { --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif; --ink: #1d1d1f; --muted: #6e6e73; --line: #e8e8ed; }
body { letter-spacing: -.01em; }
.logo { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; font-size: 22px; }
header.top { border-bottom: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
header.top .wrap { height: 52px; }
.wrap { max-width: 1180px; padding: 0 22px; }

.intro { text-align: center; padding: 56px 0 8px; }
.intro h1 { font-size: clamp(32px, 5.6vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.intro h1 span { color: var(--muted); }
.intro p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 14px auto 0; }

.brandnav { display: flex; gap: 6px; overflow-x: auto; padding: 28px 0 0; justify-content: flex-start; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.brandnav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .brandnav { justify-content: center; flex-wrap: wrap; } }
.brandnav button { flex: none; background: none; border: 0; padding: 10px 10px 12px; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; white-space: nowrap; }
.brandnav button:hover { color: var(--ink); }
.brandnav button.sel { color: var(--ink); font-weight: 600; }
.brandnav button.sel::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.brandnav button i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--down); margin-left: 5px; vertical-align: 2px; }

.index { border: 0; background: transparent; gap: 12px; margin: 22px 0 0; }
.index > div { background: var(--soft); border-radius: 16px; padding: 14px 16px; }

.filters { justify-content: center; padding-top: 16px; }
@media (max-width: 899px) { .filters { justify-content: flex-start; } }
.chip { border: 0; background: var(--soft); color: var(--ink); font-weight: 500; }
.chip.sel { background: var(--ink); color: #fff; }

.headline { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 52px 0 18px; }
.headline span { color: var(--muted); font-weight: 700; }
.toolbar { margin: 0; align-items: flex-end; }
.toolbar .headline { margin-top: 52px; }

.grid { gap: 28px 18px; }
.card .media { border-radius: 20px; }
.card .body { padding: 12px 4px 0; gap: 3px; }
.watch { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: none; font-weight: 500; font-size: 12px; }
.quote { box-shadow: none; border-radius: 99px; padding: 5px 10px; }
.mover { border-radius: 20px; padding: 18px; }
.ticker { height: 32px; font-size: 12px; }
footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 72px; }
.pricebox, .kv div, .refbox { border-color: var(--line); }
.auction h1 { font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; }
.btn { border-radius: 980px; }
.sizes button { border-radius: 980px; }

/* ================= telefono ================= */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header.top .wrap { height: 50px; }
  .logo { font-size: 20px; }
  .livepill { padding: 5px 10px; font-size: 12px; }
  .intro { padding: 32px 0 0; }
  .intro p { font-size: 15px; }
  .brandnav { padding-top: 18px; margin: 0 -16px; padding-left: 10px; padding-right: 10px; }
  .index { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .index > div { padding: 10px; border-radius: 14px; }
  .index small { font-size: 9px; letter-spacing: .5px; }
  .index b { font-size: 16px; }
  .index .down { display: block; margin: 2px 0 0; font-size: 11px; }
  .filters { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .headline, .headline { margin: 36px 0 12px; font-size: 24px; }
  .toolbar .seg { margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card .media { border-radius: 16px; }
  .watch { top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; }
  .qpos { top: 8px; right: 8px; }
  .quote { font-size: 11px; padding: 4px 7px; }
  .brand { font-size: 14px; }
  .sym { display: none; }
  .pname { font-size: 12px; }
  .now { font-size: 16px; }
  .was { font-size: 12px; }
  .minispark { height: 26px; }
  .band { font-size: 12px; padding: 7px 10px; }
  .movers { gap: 10px; }
  .market td, .market th { padding: 9px 6px; }
  .market .prod img { width: 34px; height: 34px; }
  .market .prod span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; display: block; }
  .market .buy { padding: 6px 10px; font-size: 13px; }

  .crumbs { padding-top: 12px; }
  .auction { gap: 16px; padding-top: 8px; }
  .gallery { border-radius: 18px; }
  .gallery #ringTag .quote { font-size: 13px; }
  .auction h1 { font-size: 28px; }
  .pricebox { padding: 14px; border-radius: 18px; }
  .bigprice { font-size: 46px; letter-spacing: -1.5px; }
  .strike { font-size: 13px; gap: 8px; }
  .charthead { flex-wrap: wrap; }
  .chartbox { height: 190px; }
  .kv { grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .speed { font-size: 12px; }
  .legend { gap: 10px; }
  .info details { padding: 0 14px; }
  .checkout { margin-top: 12px; }
  .panel { padding: 16px; border-radius: 18px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .receipt div { font-size: 13px; padding: 9px 12px; }
  footer .wrap { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) {
  .grid { gap: 18px 10px; }
  .bigprice { font-size: 40px; }
  .index small { font-size: 8px; }
}

/* marchi scritti in stile logo */
.mark { display: inline-block; line-height: 1; color: var(--ink); white-space: nowrap; }
.mark-serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: .06em; }
.mark-wide { font-family: 'Montserrat', var(--sans); font-weight: 700; letter-spacing: .22em; }
.mark-roman { font-family: 'Cinzel', Georgia, serif; font-weight: 600; letter-spacing: .14em; }
.mark-didone { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 600; letter-spacing: .08em; }
.brand .mark { font-size: 13px; }
.brandnav button .mark { font-size: 12px; color: var(--muted); }
.brandnav button.sel .mark, .brandnav button:hover .mark { color: var(--ink); }
.brandnav button { padding: 12px 12px 14px; }
.auction h1 .mark { font-size: clamp(22px, 3.4vw, 32px); }
@media (max-width: 640px) { .brand .mark { font-size: 11px; } .brandnav button .mark { font-size: 11px; } }

/* ================= admin ================= */
.admin main { padding-bottom: 60px; }
.adm-login { max-width: 420px; margin: 48px auto; }
.adm-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 18px 0 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 52px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); z-index: 5; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; background: none; border: 0; padding: 12px 12px; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; white-space: nowrap; font-family: inherit; }
.adm-tabs button.sel { color: var(--ink); font-weight: 600; }
.adm-tabs button.sel::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.adm-tabs .count { background: var(--down); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 6px; margin-left: 4px; }
.adm-tabs .count:empty { display: none; }
.adm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 760px) { .adm-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .adm-kpis { grid-template-columns: repeat(6, 1fr); } }
.adm-kpi { background: var(--soft); border-radius: 18px; padding: 14px 16px; }
.adm-kpi small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.adm-kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; }
.adm-kpi span { font-size: 12px; color: var(--muted); }
.adm-filter { justify-content: flex-start !important; margin: 0 0 6px; }
.adm-card { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adm-card-main { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 260px; }
.adm-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-card-txt .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.adm-card-txt .row b { font-size: 15px; }
.adm-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--soft); flex: none; }
.adm-thumb.big { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; }
.adm-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.adm-nums b { color: var(--ink); }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-s { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 980px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-s:hover { border-color: var(--ink); }
.btn-s.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.adm-search input { margin: 8px 0 14px; max-width: 420px; border-radius: 980px; background: var(--soft); border-color: transparent; }
.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
@media (min-width: 760px) { .adm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .adm-grid { grid-template-columns: repeat(4, 1fr); } }
.adm-prod { display: flex; flex-direction: column; gap: 8px; }
.adm-prod-txt { display: flex; flex-direction: column; gap: 3px; }
.adm-prod-txt b { font-size: 14px; }
.adm-prod .adm-nums { font-size: 12px; gap: 2px 10px; }
.adm-prod .btn-s { padding: 6px 11px; font-size: 12px; }
.adm-mail { white-space: pre-wrap; font: 13px/1.5 var(--sans); background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0 0; color: var(--ink); }
.adm-dialog { border: 0; border-radius: 22px; padding: 22px; width: min(640px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.adm-dialog::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.admin .panel { border: 1px solid var(--line); }
@media (max-width: 640px) {
  .adm-tabs { top: 50px; margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .adm-kpi b { font-size: 18px; }
  .adm-card-main { min-width: 0; }
  .adm-thumb { width: 52px; height: 52px; }
  .adm-actions { width: 100%; }
  .adm-actions .btn-s { flex: 1; text-align: center; }
  .adm-prod .adm-actions .btn-s { flex: 1 1 100%; }
}

/* ordine limite */
.limitbox { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 14px; }
.limitbox .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.limitform { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.limitform input { border-radius: 980px; padding: 10px 14px; }
.limitbox .mine { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.limitbox .mine.ok { background: var(--drop-soft); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
@media (max-width: 640px) { .limitform { grid-template-columns: 1fr; } .limitform .btn-s { padding: 11px; } }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--soft); cursor: pointer; opacity: .6; flex: none; border: 2px solid transparent; }
.thumbs img.sel { opacity: 1; border-color: var(--ink); }
.gallery img, .card .media img { object-fit: contain; background: var(--soft); }

/* ================= v5: palette Apple (blu, grigi, bianco, azzurro) ================= */
:root {
  --ink: #1d1d1f; --muted: #6e6e73; --soft: #f5f5f7; --line: #e5e5ea;
  --blue: #0071e3; --blue-hover: #0077ed; --blue-soft: #e8f1fb; --slate: #3a4a5f; --sky: #64b5f6;
  --down: var(--blue); --down-soft: var(--blue-soft); --drop: var(--blue); --drop-soft: var(--blue-soft);
  --buy: var(--blue); --hot: var(--blue); --hot-soft: var(--blue-soft);
}
.ticker { display: none; }
.logo i { border-top-color: var(--blue); }
.dot { background: var(--blue); }
.livepill { background: var(--blue-soft); color: var(--blue) !important; }
.btn, .btn.drop { background: var(--blue); color: #fff; }
.btn:hover:not(:disabled) { background: var(--blue-hover); }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-s.dark, .market .buy { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.sel, .sizes button.sel { background: var(--ink); border-color: var(--ink); }
.quote.neg { background: var(--blue); }
.chg, .c1m, .strike .c1m, .index .down { color: var(--blue); }
.strike .off { background: var(--blue-soft); color: var(--blue); }
.save, .save-big { color: var(--slate); }
.bigprice.tick { color: var(--blue); }
.brandnav button i { background: var(--blue); }
.adm-tabs .count { background: var(--blue); }
.msg { background: #fdf3f2; color: #b3261e; }
.msg.ok { background: var(--blue-soft); color: var(--blue); }
.receipt .gain b, .good { color: var(--blue); }
.pill.paid { background: #fff4d6; } .pill.forwarded { background: var(--blue-soft); } .pill.shipped { background: #e7eef7; }
.limitbox .mine.ok { background: var(--blue-soft); }

/* ================= barra marchi: logo + nome, ricerca, scorrimento ================= */
.brandnav { display: none; }
.brandbar { margin-top: 28px; }
.brandsearch input { width: 100%; max-width: 360px; display: block; margin: 0 auto 14px; border-radius: 980px; background: var(--soft); border: 1px solid transparent; padding: 11px 18px; font-size: 15px; text-align: center; }
.brandsearch input:focus { background: #fff; border-color: var(--blue); outline: none; text-align: left; }
.brandrow-wrap { position: relative; }
.brandrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; }
.brandrow::-webkit-scrollbar { display: none; }
.btile { flex: none; width: 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.btile .blogo { width: 132px; height: 84px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; border: 2px solid transparent; transition: border-color .2s, background .2s; padding: 0 10px; overflow: hidden; }
.btile .blogo .mark { font-size: 13px; color: var(--ink); white-space: normal; text-align: center; line-height: 1.25; }
.btile.all .blogo { font-size: 26px; color: var(--muted); }
.btile:hover .blogo { background: #ececf0; }
.btile.sel .blogo { border-color: var(--blue); background: #fff; }
.btile .bname { font-size: 13px; font-weight: 600; color: var(--ink); }
.btile .bcount { font-size: 11px; color: var(--muted); margin-top: -4px; }
.btile.live .bcount { color: var(--blue); font-weight: 600; }
.btile.live .bcount::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 5px; vertical-align: 1px; }
.bscroll { position: absolute; top: 30px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; z-index: 2; display: none; }
.bscroll.l { left: -10px; } .bscroll.r { right: -10px; }
@media (min-width: 760px) { .bscroll { display: block; } }
@media (max-width: 640px) {
  .brandbar { margin-top: 18px; }
  .brandrow { margin: 0 -16px; padding-left: 16px; padding-right: 16px; gap: 10px; scroll-padding-left: 16px; }
  .btile { width: 104px; }
  .btile .blogo { width: 104px; height: 68px; border-radius: 16px; }
  .btile .blogo .mark { font-size: 11px; }
  .btile .bname { font-size: 12px; }
}

/* ================= PC: più spazio ================= */
@media (min-width: 900px) {
  .wrap { max-width: 1480px; padding: 0 28px; }
  .brandrow-wrap { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .brandrow { padding-left: max(28px, calc(50vw - 712px)); padding-right: 28px; scroll-padding-left: max(28px, calc(50vw - 712px)); }
  .bscroll.l { left: 14px; } .bscroll.r { right: 14px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
  .auction { gap: 48px; }
}
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(5, 1fr); } .adm-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(6, 1fr); } }

/* niente scorrimento orizzontale della pagina: la barra marchi a tutta larghezza resta dentro lo schermo */
html, body { overflow-x: clip; max-width: 100%; }
@media (min-width: 900px) {
  .brandrow-wrap { margin-left: 0; margin-right: 0; }
  .brandrow { padding-left: 2px; padding-right: 2px; scroll-padding-left: 0; }
  .bscroll.l { left: -14px; } .bscroll.r { right: -14px; }
}
.standby { margin-top: 12px; background: var(--blue-soft); color: var(--slate); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.standby b { color: var(--ink); }

/* sfondo bianco puro; loghi e ricerca bianchi con contorno sottile */
:root { --bg: #ffffff; }
body { background: #ffffff; }
.brandsearch input { background: #fff; border: 1px solid var(--line); }
.brandsearch input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.btile .blogo { background: #fff; border: 1px solid var(--line); }
.btile:hover .blogo { background: #fff; border-color: #c7c7cc; }
.btile.sel .blogo { border: 2px solid var(--blue); }
.reasons { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.reasons label { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.reasons input { width: auto; accent-color: var(--blue); }
.reasons label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.switch { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--blue); }

/* v6: foto reali del fornitore su fondo bianco, senza bande ai lati */
.card .media, .gallery, .thumbs img, .market .prod img { background: #fff; }
.gallery img, .card .media img { background: #fff; object-fit: contain; padding: 6%; box-sizing: border-box; }
.card .media { border: 1px solid #e8e8ed; }
[hidden] { display: none !important; }

/* avviso di apertura */
.notifybtn { margin-top: 10px; width: 100%; border: 1px solid #d2d2d7; background: #fff; color: #0071e3; font: 600 14px/1 Inter, sans-serif;
  padding: 11px 12px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.notifybtn:hover { background: #f0f6ff; }
.notifybtn.on { color: #1d1d1f; background: #f5f5f7; border-color: #f5f5f7; cursor: default; }
.alertbox { margin-top: 14px; border: 1px solid #e8e8ed; border-radius: 18px; padding: 16px; background: #fff; }
.alertbox b { display: block; margin-bottom: 4px; }
.alertform { display: flex; gap: 8px; margin-top: 10px; }
.alertform input { flex: 1; min-width: 0; border: 1px solid #d2d2d7; border-radius: 999px; padding: 12px 16px; font: 16px Inter, sans-serif; }
.alertform button { border: 0; background: #0071e3; color: #fff; border-radius: 999px; padding: 0 18px; font: 600 15px Inter, sans-serif; cursor: pointer; }
.alertdlg { border: 0; border-radius: 22px; padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.alertdlg::backdrop { background: rgba(0,0,0,.35); }

/* piè di pagina legale e link account */
.acclink { display: inline-flex; align-items: center; gap: 6px; }
footer .legal { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; align-items: center; }
footer .legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .legal a { color: var(--muted); text-decoration: none; }
footer .legal a:hover { color: var(--text, #1d1d1f); text-decoration: underline; }
footer .legal .seller { font-size: 12px; }

/* pagine di testo (legali, aiuto) */
.doc { max-width: 760px; margin: 0 auto; padding-top: 40px; padding-bottom: 20px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: #1d1d1f; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .box { background: var(--soft); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.doc .box p { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.doc .toc a { background: var(--soft); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: #1d1d1f; text-decoration: none; }
.doc details { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; background: #fff; }
.doc details summary { font-weight: 600; cursor: pointer; }
.doc details p { margin: 10px 0 0; }
.formcard { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fff; margin: 18px 0; }
.formcard label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.formcard input, .formcard select, .formcard textarea { width: 100%; box-sizing: border-box; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; font: 16px Inter, sans-serif; background: #fff; }
.formcard textarea { min-height: 110px; resize: vertical; }
.formcard .btn { margin-top: 14px; }
.okmsg { background: #e9f7ef; color: #146c2e; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.errmsg { color: #d70015; font-size: 14px; margin-top: 10px; }
.acc-orders { display: grid; gap: 12px; }
.acc-order { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.acc-order img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid #f0f0f2; }
.acc-order .st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); margin-top: 4px; }
.acc-order .st.ship { background: #e8f1fd; color: #0071e3; }
.acc-order .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: 14px; }
.acc-list { list-style: none; padding: 0; margin: 0; }
.acc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 640px) { .doc { padding-top: 28px; } .doc table { font-size: 14px; } }
.adm-sup { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }

/* cross-sell in fondo alla scheda prodotto */
.more { margin-top: 56px; }
.more .headline { margin-bottom: 18px; }
.morebrands { display: flex; flex-wrap: wrap; gap: 14px; }
.morebrands .btile { text-decoration: none; color: inherit; }
.morebrands .btile .blogo { background: #fff; border: 1px solid #e8e8ed; }
.morebrands .btile:hover .blogo { border-color: #0071e3; }
@media (max-width: 640px) {
  .more { margin-top: 40px; }
  .morebrands { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .morebrands .btile { width: 112px; } .morebrands .btile .blogo { width: 112px; height: 72px; }
}

/* v7: pagine di testo più ariose e raffinate (account, aiuto, legali) */
.doc { padding-left: 22px; padding-right: 22px; box-sizing: content-box; }
.doc h1 { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.doc .updated { font-size: 15px; }
.doc h2 { font-weight: 700; margin-top: 44px; }
.doc p, .doc li { color: #424245; line-height: 1.72; }
.doc b, .doc strong { color: #1d1d1f; }
.doc a { color: #0071e3; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .box { background: #f5f5f7; border-radius: 20px; padding: 20px 22px; }
.doc table { border-radius: 16px; overflow: hidden; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6e6e73; font-weight: 600; }
.doc details { border-color: #e8e8ed; border-radius: 18px; padding: 16px 20px; transition: background .2s; }
.doc details[open] { background: #fbfbfd; }
.doc details summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; color: #1d1d1f; }
.doc details summary::-webkit-details-marker { display: none; }
.doc details summary::after { content: '+'; color: #86868b; font-weight: 400; font-size: 20px; line-height: 1; }
.doc details[open] summary::after { content: '−'; }
.doc .toc a { background: #f5f5f7; transition: background .2s; }
.doc .toc a:hover { background: #e8e8ed; text-decoration: none; }
.formcard { border-color: #e8e8ed; border-radius: 22px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.formcard input:focus, .formcard select:focus, .formcard textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.formcard .btn { width: 100%; }
.acc-order { border-color: #e8e8ed; border-radius: 20px; padding: 14px; }
@media (max-width: 640px) {
  .doc { padding-left: 20px; padding-right: 20px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 20px; margin-top: 36px; }
  .doc p, .doc li { font-size: 15.5px; }
  .doc .box { padding: 18px; border-radius: 18px; }
  .doc table { display: block; overflow-x: auto; }
  .formcard { padding: 20px 18px; }
  .acc-order { grid-template-columns: 64px 1fr; }
  .acc-order img { width: 64px; height: 64px; }
}

/* v8: scheda prodotto senza vuoti, cross-sell più vivo, piè di pagina ricco */
.auction { padding-bottom: 8px; }
@media (min-width: 900px) { .auction { padding-bottom: 8px; } }
.more { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e8e8ed; }
.more + .more { border-top: 0; }
/* lo spazio per la barra "Chiudi l'affare" su telefono si lascia in fondo alla pagina, non sotto la scheda */
@media (max-width: 899px) { body:has(#buybar:not([hidden])) .sitefoot { padding-bottom: 120px; } }

#brandsSec { margin-top: 28px; padding: 26px 24px 22px; border: 0; border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, #eaf3ff 0%, #f5f5f7 55%, #fbfbfd 100%); }
.morehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.morehead .headline { margin: 0; }
.morebrands { gap: 12px; }
.morebrands .btile.mb { width: 140px; transition: transform .25s ease; }
.morebrands .btile.mb .blogo { width: 140px; height: 88px; background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(0,40,100,.06); position: relative; }
.morebrands .btile.mb .blogo::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: #0071e3; box-shadow: 0 0 0 0 rgba(0,113,227,.5); animation: livepulse 1.8s infinite; }
.morebrands .btile.mb .bcount { color: #0071e3; font-weight: 600; }
.morebrands .btile.mb:hover { transform: translateY(-3px); }
.morebrands .btile.mb:hover .blogo { border-color: #0071e3; box-shadow: 0 10px 26px rgba(0,113,227,.16); }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(0,113,227,.45); } 70% { box-shadow: 0 0 0 9px rgba(0,113,227,0); } 100% { box-shadow: 0 0 0 0 rgba(0,113,227,0); } }

.sitefoot { margin-top: 64px; background: #f5f5f7; border-top: 0; padding: 0 0 28px; color: #6e6e73; font-size: 14px; }
.sitefoot .wrap { display: block; }
.sitefoot .trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 28px 0; border-bottom: 1px solid #e3e3e8; }
.sitefoot .trust > div { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  background: #fff; border-radius: 18px; padding: 14px 16px; }
.sitefoot .trust .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: #eaf3ff; color: #0071e3;
  display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.sitefoot .trust b { color: #1d1d1f; font-size: 14px; }
.sitefoot .trust small { color: #6e6e73; font-size: 12.5px; }
.sitefoot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 32px 0 24px; }
.sitefoot .brandcol .logo { font-size: 20px; }
.sitefoot .brandcol p { margin: 10px 0 0; line-height: 1.6; color: #6e6e73; max-width: 300px; }
.sitefoot h4 { margin: 4px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #1d1d1f; }
.sitefoot .cols a:not(.logo) { display: block; color: #6e6e73; text-decoration: none; padding: 5px 0; }
.sitefoot .cols a:not(.logo):hover { color: #0071e3; }
.sitefoot .bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #e3e3e8; font-size: 12.5px; }
@media (max-width: 899px) {
  .sitefoot .trust { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 22px 0; }
  .sitefoot .trust > div { grid-template-columns: 34px 1fr; padding: 12px; column-gap: 10px; }
  .sitefoot .trust .ic { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
  .sitefoot .trust small { font-size: 11.5px; }
  .sitefoot .cols { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 26px 0 18px; }
  .sitefoot .brandcol { grid-column: 1 / -1; }
  .more { margin-top: 28px; padding-top: 24px; }
  #brandsSec { padding: 22px 16px 18px; border-radius: 24px; margin-left: -4px; margin-right: -4px; }
  .morehead .livepill { display: none; }
  .morebrands { margin: 0 -16px; padding: 4px 16px 8px; }
  .morebrands .btile.mb { width: 118px; } .morebrands .btile.mb .blogo { width: 118px; height: 76px; }
}

/* v9: card allineate (niente gradini) e "Avvisami" spento che si accende */
.card .body { flex: 1; }
.pricerow { flex-wrap: wrap; row-gap: 2px; }
.pricerow .retail { flex-basis: 100%; order: 2; margin: 0; }
.notifybtn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  border: 1px solid #e1e6ee; background: #f6f8fb; color: #7b8aa3; font: 600 14px/1 Inter, sans-serif; padding: 11px 14px; border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.card .body .notifybtn { margin-top: 12px; }
.card .body > .pricerow + .notifybtn, .card .body .notifybtn:last-child { margin-top: auto; }
.card .body { gap: 3px; }
.card .body::after { content: none; }
.notifybtn:hover { background: #eef4fd; color: #0071e3; border-color: #cfe0f7; }
.notifybtn.on { background: #0071e3; color: #fff; border-color: #0071e3; cursor: default; box-shadow: 0 6px 16px rgba(0,113,227,.25); }
.notifybtn.on svg { animation: bellring 1.2s ease 1; transform-origin: 50% 0; }
@keyframes bellring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.card .body .pricerow { margin-bottom: 12px; }

/* v10: il gradiente azzurro anche sull'indice di mercato e sul box ordine limite */
.index { padding: 10px; border-radius: 26px; background: radial-gradient(120% 160% at 0% 0%, #eaf3ff 0%, #f5f5f7 55%, #fbfbfd 100%); }
.index > div { background: rgba(255,255,255,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,40,100,.05); }
.limitbox { background: radial-gradient(130% 160% at 100% 0%, #eaf3ff 0%, #f5f5f7 60%, #fbfbfd 100%) !important; border-color: transparent !important; }
.limitbox input { background: #fff; }
@media (max-width: 640px) { .index { padding: 8px; border-radius: 20px; } }

/* banner cookie: Accetta e Rifiuta con lo stesso peso, come chiede il Garante */
.cookiebar { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); box-sizing: border-box;
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(0,0,0,.06); border-radius: 24px; padding: 20px 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.16); animation: cbin .35s ease; }
@keyframes cbin { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookiebar > b { font-size: 16px; color: #1d1d1f; }
.cookiebar p { margin: 6px 0 14px; font-size: 13.5px; line-height: 1.55; color: #424245; }
.cookiebar a { color: #0071e3; text-decoration: none; }
.cookiebar .cb-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; color: #86868b; cursor: pointer; line-height: 1; padding: 4px; }
.cookiebar .cb-prefs { border-top: 1px solid #e8e8ed; margin-bottom: 12px; }
.cookiebar .cb-prefs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8e8ed; cursor: pointer; }
.cookiebar .cb-prefs b { display: block; font-size: 14px; color: #1d1d1f; }
.cookiebar .cb-prefs small { color: #6e6e73; font-size: 12px; }
.cookiebar .cb-prefs input { width: 20px; height: 20px; accent-color: #0071e3; flex: none; }
.cookiebar .cb-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cookiebar .cb-btn { border: 1px solid #d2d2d7; background: #fff; color: #1d1d1f; font: 600 14px Inter, sans-serif; padding: 12px 8px; border-radius: 999px; cursor: pointer; }
.cookiebar .cb-btn[data-cb="reject"], .cookiebar .cb-btn[data-cb="accept"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.cookiebar .cb-btn:hover { filter: brightness(1.08); }
.sitefoot .bottom .linkbtn { color: #6e6e73; font-size: 12.5px; }
@media (max-width: 640px) {
  .cookiebar { bottom: 10px; padding: 18px 16px 14px; border-radius: 22px; }
  .cookiebar .cb-actions { grid-template-columns: 1fr 1fr; }
  .cookiebar .cb-btn[data-cb="custom"] { grid-column: 1 / -1; order: 3; background: transparent; border-color: transparent; color: #0071e3; padding: 6px; }
}
/* sopra la barra "Chiudi l'affare" su telefono */
@media (max-width: 899px) { body:has(#buybar:not([hidden])) .cookiebar { bottom: 96px; } }
