/* =====================================================================================================
   FP Auto Hunter — due interfacce in un'app: ITALIA (nero + smeraldo) ed ESTERO (blu notte + oro).
   Il tema cambia con  <html data-mode="it|ex">.
   ===================================================================================================== */
:root {
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px; --top-h: 54px; --radius: 18px; --ease: cubic-bezier(.22,.8,.3,1);
  --text: #eef2f7; --muted: #8e99a8; --danger: #ff6b6b; --warn: #ffb84d;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9ced6 45%, #8b929d 60%, #e6e9ee 100%);
}
:root, :root[data-mode="it"] {
  --bg: #050607; --bg2: #0a0d10; --surface: #11161b; --surface2: #181f26; --surface3: #212a33; --line: #242d37;
  --accent: #27e08c; --accent-ink: #03150c; --accent2: #cfd7e1; --glow: rgba(39,224,140,.16);
  --accent-grad: linear-gradient(135deg, #2cf09a 0%, #14b86e 100%);
  --stripe: linear-gradient(90deg, #009246 0 33.3%, #f1f2f1 33.3% 66.6%, #ce2b37 66.6% 100%);
  --good: #27e08c; --blue: #6cb4ff;
}
:root[data-mode="ex"] {
  --bg: #04070f; --bg2: #080d1a; --surface: #0d1424; --surface2: #131c32; --surface3: #1b2644; --line: #1f2b48;
  --accent: #4aa3ff; --accent-ink: #020b1c; --accent2: #ffc552; --glow: rgba(74,163,255,.2);
  --accent-grad: linear-gradient(135deg, #63b4ff 0%, #2f7de0 100%);
  --stripe: linear-gradient(90deg, #2f7de0 0 50%, #ffc552 50% 100%);
  --good: #5fd0a2; --blue: #4aa3ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); transition: background .35s var(--ease); }
body {
  margin: 0; color: var(--text); font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: radial-gradient(130% 55% at 50% -8%, var(--glow) 0%, transparent 62%), linear-gradient(180deg, var(--bg2), var(--bg) 40%);
  background-attachment: fixed; min-height: 100dvh; overscroll-behavior-y: contain; font-variant-numeric: tabular-nums;
  transition: background .35s var(--ease);
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 11.5px; } .hide { display: none !important; }
.grow { flex: 1; } .gap { gap: 10px; } .row { display: flex; align-items: center; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; } .center { text-align: center; }
.tap { cursor: pointer; touch-action: manipulation; }
.ico { flex: none; }

/* ---------------------------------------------------------------- struttura */
#app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 40; padding: calc(8px + var(--sat)) 14px 8px; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--stripe); opacity: .85; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.brand img { height: 28px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(255,255,255,.12)); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-size: 15px; letter-spacing: .22em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand .wm span { font-size: 9.5px; letter-spacing: .32em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.icon-btn { background: none; border: 0; padding: 8px; min-width: 40px; min-height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); position: relative; cursor: pointer; }
.icon-btn:active { background: var(--surface2); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }

.modes { position: sticky; top: calc(var(--top-h) + var(--sat)); z-index: 35; padding: 10px 14px 6px; }
.modes-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.modes .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--accent-grad); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .35s var(--ease), background .35s; }
:root[data-mode="ex"] .modes .thumb { transform: translateX(100%); }
.modes button { position: relative; z-index: 1; background: none; border: 0; padding: 11px 6px; font-weight: 700; font-size: 15px; color: var(--muted); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: color .25s; }
.modes button.on { color: var(--accent-ink); }
.modes button .fl { font-size: 18px; }

.pausebar { margin: 4px 14px 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); display: flex; align-items: center; gap: 10px; color: var(--warn); font-weight: 600; }
.pausebar .btn { margin-left: auto; }

main.view { padding: 10px 14px calc(var(--nav-h) + var(--sab) + 28px); max-width: 760px; margin: 0 auto; animation: viewin .35s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--nav-h) + var(--sab)); padding-bottom: var(--sab);
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; transition: color .2s; }
.nav a.on { color: var(--accent); }
.nav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent-grad); }
.nav .badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* ---------------------------------------------------------------- schede e pulsanti */
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, #fff 2%), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,.32); transition: background .35s, border-color .35s; }
.card.pad { padding: 15px; }
.card-title { font-size: 14px; letter-spacing: .02em; color: var(--muted); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; font-weight: 800; font-size: 16px; }
.sec-title a { font-size: 13px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-weight: 700; cursor: pointer; text-align: center; transition: transform .12s, background .2s; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: transparent; }
.btn.danger { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn.gold { background: linear-gradient(135deg, #ffd777, #e9a92c); color: #2a1a00; border-color: transparent; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; border-radius: 12px; }
.btn.lg { min-height: 56px; font-size: 17px; border-radius: 18px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface2); border: 1px solid var(--line); white-space: nowrap; }
.pill.good { background: color-mix(in srgb, var(--good) 17%, transparent); color: var(--good); border-color: transparent; }
.pill.warn { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); border-color: transparent; }
.pill.bad { background: color-mix(in srgb, var(--danger) 17%, transparent); color: var(--danger); border-color: transparent; }
.pill.blue { background: color-mix(in srgb, var(--blue) 17%, transparent); color: var(--blue); border-color: transparent; }
.pill.gold { background: color-mix(in srgb, #ffc552 18%, transparent); color: #ffc552; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: background .15s, color .15s; }
.chip.on { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 2px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 8px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.seg .n { color: var(--accent); margin-left: 5px; font-weight: 800; }

/* moduli */
.field { display: block; margin-bottom: 14px; }
.field .lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea.input { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-text { display: flex; flex-direction: column; min-width: 0; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: var(--surface3); border: 1px solid var(--line); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #cfd6df; transition: transform .25s var(--ease), background .25s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + i { background: var(--accent-grad); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(22px); background: #fff; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 34px; }

.bar { height: 8px; background: var(--surface3); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent-grad); border-radius: 6px; transition: width .6s var(--ease); }
.bar.bad i { background: linear-gradient(90deg, #ff9b6b, #ff5f5f); }
.bar.warn i { background: linear-gradient(90deg, #ffd777, #ffb84d); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.info-row:last-child { border-bottom: 0; }
.backlink { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px 4px 0; margin: 2px 0 8px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- HOME */
.hero { position: relative; overflow: hidden; padding: 16px 14px 14px; margin-bottom: 12px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(90% 70% at 50% 0%, var(--glow), transparent 70%), linear-gradient(180deg, var(--surface), var(--bg2)); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hero h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hero .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 transparent; flex: none; }
.status-dot.on { background: var(--accent); animation: ping 2.2s infinite; }
.status-dot.searching { background: var(--accent2); animation: ping 1s infinite; }
.status-dot.paused { background: var(--warn); }
.status-dot.off { background: var(--muted); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 11px transparent; } }
.power { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: all .3s var(--ease); }
.power.on { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.power.paused { color: var(--warn); border-color: var(--warn); }
.power:active { transform: scale(.94); }
.radar-wrap { display: grid; place-items: center; margin: 4px 0 2px; }
.radar { width: min(100%, 340px); height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.radar .ring.outer { stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); stroke-dasharray: none; }
.radar .ring-lbl, .radar .city-lbl { fill: var(--muted); font-size: 8.5px; }
.radar .ring-lbl { opacity: .8; }
.radar .city-dot { fill: var(--muted); opacity: .7; }
.radar .city-lbl { opacity: .75; paint-order: stroke; stroke: var(--bg2); stroke-width: 2.5px; }
.radar .axis { stroke: var(--line); stroke-width: .8; opacity: .7; }
.radar .sweep { animation: sweep 6s linear infinite; }
.radar.scanning .sweep { animation-duration: 1.8s; }
.radar .sweep-wedge { opacity: .9; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .home-dot { fill: #fff; } .radar .home-halo { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .7; }
.radar .home-lbl { fill: var(--text); font-size: 9.5px; font-weight: 700; paint-order: stroke; stroke: var(--bg2); stroke-width: 3px; }
.radar .pt { cursor: pointer; outline: none; }
.radar .pt .core { fill: var(--accent2); stroke: var(--bg); stroke-width: 1.5; }
.radar .pt.deal .core { fill: var(--accent); }
.radar .pt.near .core { fill: var(--warn); }
.radar .pt .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.hero-actions { display: flex; gap: 10px; margin-top: 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: 11.5px; }
.kpi.hot b { color: var(--accent); }
.task { padding: 11px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); margin-top: 9px; }
.task .t-top { display: flex; align-items: center; gap: 10px; }
.task b { font-size: 14px; } .task .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.warn-item { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; margin-bottom: 9px; background: color-mix(in srgb, var(--warn) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 38%, transparent); }
.warn-item.bad { background: color-mix(in srgb, var(--danger) 11%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.warn-item.info { background: var(--surface); border-color: var(--line); }
.warn-item .ico { color: var(--warn); } .warn-item.bad .ico { color: var(--danger); } .warn-item.info .ico { color: var(--accent); }
.warn-item .txt { flex: 1; font-size: 13.5px; }
.feed { position: relative; }
.feed-item { display: flex; gap: 11px; padding: 10px 2px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); align-items: flex-start; }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--accent2); flex: none; }
.feed-item.success .feed-ico { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.feed-item.warn .feed-ico { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.feed-item.error .feed-ico { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.feed-msg { font-size: 14px; line-height: 1.35; } .feed-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
a.feed-item { color: inherit; }

/* Estero spento: globo e spiegazioni */
.globe-wrap { display: grid; place-items: center; margin: 6px 0 4px; }
.globe { width: 230px; height: 230px; }
.globe-rim { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .7; }
.globe-line { fill: none; stroke: var(--accent); stroke-width: .9; opacity: .32; }
.globe-dot { fill: var(--accent2); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.globe .spin-a { animation: globespin 14s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes globespin { from { transform: scaleX(1); } 50% { transform: scaleX(.4); } to { transform: scaleX(1); } }
.steps { counter-reset: s; display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-grad); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.step b { display: block; } .step span { color: var(--muted); font-size: 13.5px; }
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.country { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; }
.country .fl { font-size: 28px; display: block; } .country b { font-size: 13px; display: block; margin-top: 3px; }
.country .n { font-size: 12px; color: var(--muted); } .country.off { opacity: .45; }
.country .gain { color: var(--accent); font-weight: 800; }

/* ---------------------------------------------------------------- annunci */
.deal { display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.34); transition: transform .15s; }
.deal:active { transform: scale(.985); }
.deal .ph { position: relative; aspect-ratio: 16/10; background: var(--surface2); }
.deal .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); pointer-events: none; }
.deal .nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.score { position: absolute; left: 10px; top: 10px; z-index: 2; width: 48px; height: 48px; }
.score svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.score .bg { fill: rgba(0,0,0,.55); stroke: rgba(255,255,255,.18); stroke-width: 4; }
.score .fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.score.mid .fg { stroke: var(--warn); } .score.low .fg { stroke: #9aa5b3; }
.score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff; }
.deal .tags { position: absolute; z-index: 2; right: 10px; top: 10px; display: flex; gap: 6px; }
.deal .tag { background: rgba(0,0,0,.62); backdrop-filter: blur(6px); color: #fff; border-radius: 9px; padding: 3px 8px; font-size: 11.5px; font-weight: 700; }
.deal .ph-price { position: absolute; z-index: 2; left: 12px; bottom: 10px; color: #fff; }
.deal .ph-price b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.deal .ph-price s { opacity: .75; margin-left: 8px; font-size: 14px; }
.deal .ph-age { position: absolute; z-index: 2; right: 10px; bottom: 11px; color: #fff; font-size: 11.5px; background: rgba(0,0,0,.5); border-radius: 8px; padding: 2px 8px; }
.deal .body { padding: 12px 14px 14px; }
.deal .t { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.deal .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.gain-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; flex-wrap: wrap; }
.gain { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 12px; background: var(--accent-grad); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.deal .why { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.deal .chips { margin-top: 10px; gap: 6px; }
.deal.done { opacity: .6; }
.empty { text-align: center; color: var(--muted); padding: 38px 14px; }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty p { margin: 0 auto 14px; max-width: 340px; font-size: 14px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); margin-bottom: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface3); border-top-color: var(--accent); animation: rot .8s linear infinite; margin: 20px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.toolbar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.toolbar .input { min-height: 44px; }

/* ---------------------------------------------------------------- scheda */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -14px 12px; padding: 0 14px; scrollbar-width: none; }
.gallery img { scroll-snap-align: center; flex: 0 0 92%; max-height: 300px; object-fit: cover; border-radius: 20px; background: var(--surface2); }
.title-block h2 { font-size: 23px; font-weight: 800; }
.verdict { padding: 14px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.verdict.near { background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 18%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.verdict.bad { background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.verdict .big { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.verdict.near .big { color: var(--warn); } .verdict.bad .big { color: var(--danger); }
.verdict p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.kpi-grid .kpi b { font-size: 18px; } .kpi.good b { color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; }
.flag { padding: 8px 12px; border-radius: 12px; margin-bottom: 7px; font-size: 13.5px; background: var(--surface2); }
.flag.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.flag.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.desc { white-space: pre-wrap; word-break: break-word; font-size: 14px; max-height: 9.5em; overflow: hidden; }
.desc.open { max-height: none; }
.actions { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--sab)); z-index: 45; display: flex; gap: 8px; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.actions .btn { flex: 1; padding: 10px 6px; min-height: 48px; }
.actions .btn.wa { background: #25d366; color: #052e14; border-color: transparent; }
.chart { width: 100%; height: auto; } .chart .grid { stroke: var(--line); } .chart .ax { fill: var(--muted); font-size: 9.5px; }
.chart .dot { fill: var(--blue); opacity: .65; } .chart .me { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart .mel { fill: var(--accent); font-weight: 700; } .chart .mkt { stroke: var(--warn); stroke-dasharray: 5 4; stroke-width: 1.5; } .chart .mktl { fill: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); } th:first-child, td:first-child { text-align: left; } th { color: var(--muted); font-weight: 600; }
.ai { border-left: 3px solid var(--accent); } ul.clean { margin: 6px 0; padding-left: 18px; } ul.clean li { margin: 3px 0; }
.cost-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; } .cost-line.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 800; font-size: 15px; }
.cost-line .minus { color: var(--danger); }
.cost-line > span:last-child { white-space: nowrap; margin-left: 12px; }  /* la cifra non va mai a capo */

/* ---------------------------------------------------------------- finestre, avvisi, onboarding */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .22s; }
.sheet-backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: var(--sab); max-width: 760px; margin: 0 auto; }
.sheet.show { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--surface3); margin: 9px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 0 18px; } .sheet-head h3 { font-size: 18px; }
.sheet-body { padding: 8px 18px 18px; overflow-y: auto; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--sab) + 74px); transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--surface3); border: 1px solid var(--line); padding: 11px 18px; border-radius: 14px; z-index: 99; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { border-color: var(--danger); } .toast.good { border-color: var(--accent); }
.onboard { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; padding: calc(24px + var(--sat)) 22px calc(24px + var(--sab)); animation: viewin .4s var(--ease); }
.onboard .art { flex: 1; display: grid; place-items: center; min-height: 0; } .onboard .art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.onboard h1 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; } .onboard p { text-align: center; color: var(--muted); margin: 0 auto 18px; max-width: 360px; font-size: 15.5px; }
.onboard .dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; } .onboard .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface3); } .onboard .dots i.on { background: var(--accent); width: 22px; border-radius: 5px; }
.preset-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.preset { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; align-items: center; gap: 12px; }
.preset.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.preset b { display: block; font-size: 16px; } .preset span { color: var(--muted); font-size: 13px; }
.preset .rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; } .preset.on .rad { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #000; }
.login .box { width: 100%; max-width: 380px; } .login .logo { width: 100%; max-width: 330px; display: block; margin: 0 auto 6px; }
.login h1 { text-align: center; font-size: 20px; margin-bottom: 18px; color: var(--muted); font-weight: 600; letter-spacing: .02em; } .err { color: var(--danger); font-size: 13.5px; margin: 8px 0; min-height: 20px; }
.menu-list { display: grid; gap: 9px; }
.menu-item { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.menu-item .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); flex: none; }
.menu-item b { display: block; font-size: 15.5px; } .menu-item span { color: var(--muted); font-size: 12.5px; } .menu-item .go { margin-left: auto; color: var(--muted); }
.credit { text-align: center; padding: 6px 0 2px; } .credit .amt { font-size: 38px; font-weight: 800; letter-spacing: -.02em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.model-card { padding: 13px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 9px; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.model-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); } .model-card b { display: block; } .model-card span { font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.flag-svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.22); flex: none; display: block; }
.modes button .fl { display: inline-flex; align-items: center; }

/* avanzamento della costruzione dei prezzi di mercato */
.bar.ind i { width: 38% !important; animation: indbar 1.5s ease-in-out infinite; }
@keyframes indbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(270%); } }
.mkt-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.mkt-pct { font-size: 34px; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.mkt-src { margin-top: 11px; } .mkt-src .row { margin-bottom: 5px; }
.task .bar { margin-top: 9px; height: 6px; }

/* utente in sola lettura: via i comandi che cambiano il sistema */
body[data-role="viewer"] .admin-only, body[data-role="viewer"] .power, body[data-role="viewer"] .hero-actions,
body[data-role="viewer"] .task .btn.danger { display: none !important; }
.viewerbar { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); }
.viewerbar svg { flex: none; color: var(--accent); }

.fb-recent { margin-top: 10px; display: grid; gap: 5px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fb-recent .row { color: var(--muted); } .fb-recent b { color: var(--text); font-weight: 700; }

/* schermi larghi (PC, mini PC via AnyDesk): barra in alto, selettore e menu in basso restano allineati alla colonna centrale */
@media (min-width: 820px) {
  .topbar { padding-left: max(14px, calc((100vw - 760px) / 2 + 14px)); padding-right: max(14px, calc((100vw - 760px) / 2 + 14px)); }
  .modes { max-width: 760px; margin: 0 auto; }
  .pausebar, .viewerbar { box-sizing: border-box; width: calc(100% - 28px); max-width: 732px; margin-left: auto; margin-right: auto; }
  .nav { left: 50%; right: auto; width: 760px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; }
}

/* scartare annunci: pulsante sulla scheda e striscia "Annulla" */
.card-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.undo-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px;
  background: var(--surface); border: 1px dashed var(--line); color: var(--muted); font-size: 13.5px; animation: viewin .25s var(--ease); }
.undo-strip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tasto Ordina */
.sort-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--surface2);
  border: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: 14px; white-space: nowrap; cursor: pointer; }
.sort-btn .ico { color: var(--accent); }
.menu-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.menu-item.on .mi { background: var(--accent); color: #fff; }
.menu-item.on .go { color: var(--accent); }

/* occasioni */
.pill.hot { background: linear-gradient(135deg, #f7c948, #f59e0b); color: #1a1405; border-color: transparent; font-weight: 800; }

/* =====================================================================================================
   Versione servizio (SaaS): accesso e iscrizione, area cliente, account, profilo, pannello Business, schede a colpo d'occhio
   ===================================================================================================== */
:root { --gold: #f5b942; --gold-grad: linear-gradient(135deg, #ffd777, #e29b1f); }
.nav.n4 { grid-template-columns: repeat(4, 1fr); }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
.kpi { position: relative; }
.kpi .kpi-sub { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi.gold b { color: var(--gold); }
@media (max-width: 460px) { .kpis.four { grid-template-columns: 1fr 1fr; } }
.mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); flex: none; }
.mi.big { width: 52px; height: 52px; border-radius: 16px; }
.cta-card { display: block; color: inherit; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); }
.cta-card .mi { color: var(--gold); }
.menu-card { display: block; color: inherit; }
.menu-card:active { transform: scale(.99); }

/* ---------------------------------------------------------------- accesso / iscrizione */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: #000; }
.auth-art { position: relative; overflow: hidden; padding: 38px 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center;
  background: radial-gradient(90% 70% at 30% 20%, rgba(39, 224, 140, .14), transparent 65%), linear-gradient(180deg, #080b0e, #020304); border-right: 1px solid var(--line); }
.auth-brand { display: flex; align-items: center; gap: 11px; color: var(--text); position: absolute; top: 34px; left: 44px; }
.auth-brand img { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .14)); }
.auth-brand .wm { display: flex; flex-direction: column; line-height: 1; }
.auth-brand .wm b { font-size: 17px; letter-spacing: .24em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.auth-brand .wm span { font-size: 10px; letter-spacing: .34em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.auth-brand.sm { display: none; position: static; justify-content: center; margin-bottom: 22px; }
.auth-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1 / .78; margin: 40px auto 6px; }
.auth-stage .rd { position: absolute; inset: -14% -8%; width: 116%; height: 128%; object-fit: contain; opacity: .85; animation: rot 30s linear infinite; }
.auth-stage .car { position: absolute; left: 0; right: 0; top: 26%; width: 100%; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .6)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.auth-art h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.025em; max-width: 18ch; }
.auth-art h2 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.auth-points li { display: flex; gap: 10px; align-items: center; } .auth-points svg { color: var(--accent); }
.auth-main { display: grid; align-content: center; padding: 40px 28px; background: radial-gradient(70% 50% at 50% 0%, rgba(39, 224, 140, .07), transparent 70%), #050607; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 30px 28px 26px; border-radius: 26px; background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: viewin .5s var(--ease); }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.auth-done { text-align: center; padding: 8px 0 4px; display: grid; gap: 8px; justify-items: center; } .auth-done svg { color: var(--accent); } .auth-done p { margin: 0; color: var(--muted); }
.pw { position: relative; } .pw .input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 12px; display: grid; place-items: center; }
.eye:active { background: var(--surface2); }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 8px; font-size: 13.5px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-brand.sm { display: flex; }
  .auth-main { padding: 28px 16px calc(28px + var(--sab)); min-height: 100dvh; }
}

/* ---------------------------------------------------------------- account */
.plan { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.plan.none, .plan.expired { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.plan-body { margin: 10px 0 14px; }
.plan-price b { font-size: 38px; letter-spacing: -.03em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price span { color: var(--muted); font-weight: 600; }
.helpbox { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: 13.5px; }
.helpbox ol, .install ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); } .helpbox li, .install li { margin: 4px 0; }
.install { padding: 14px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); margin-bottom: 10px; }
.install.hl { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface2)); }
.install .mi { width: 34px; height: 34px; border-radius: 10px; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
details.mini { margin-top: 10px; } details.mini summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--accent); list-style: none; } details.mini summary::-webkit-details-marker { display: none; }
.chips-scroll { max-height: 190px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }

/* ---------------------------------------------------------------- Business (owner) */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; } .two .card { margin-bottom: 0; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }
.blist, .funnel { display: grid; gap: 9px; }
.brow, .frow { display: grid; grid-template-columns: minmax(84px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.frow { grid-template-columns: minmax(130px, 38%) 1fr auto; }
.brow .bl, .frow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.brow .bar, .frow .bar { height: 7px; }
.ulist { display: grid; }
.urow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.urow:last-child { border-bottom: 0; } .ustat { display: grid; justify-items: end; gap: 3px; flex: none; }

/* ---------------------------------------------------------------- schede: tutto a colpo d'occhio */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.glance div { padding: 7px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); min-width: 0; }
.glance small { display: block; font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.glance b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glance .g b { color: var(--good); } .glance .w b { color: var(--warn); } .glance .r b { color: var(--danger); } .glance .y b { color: var(--gold); }
.deal-grid { display: block; }

/* ---------------------------------------------------------------- movimento e rifiniture */
@media (hover: hover) {
  .deal { transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
  .deal:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 22px 46px rgba(0, 0, 0, .46); }
  .btn.primary:hover, .btn.gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .menu-item:hover, .card.menu-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
}
.deal { animation: dealin .45s var(--ease) both; }
.deal-grid .deal:nth-child(2) { animation-delay: .04s; } .deal-grid .deal:nth-child(3) { animation-delay: .08s; } .deal-grid .deal:nth-child(4) { animation-delay: .12s; }
@keyframes dealin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 80%, #fff); outline-offset: 2px; }
.input:focus-visible { outline: none; }
.btn.gold { box-shadow: 0 8px 24px rgba(245, 185, 66, .22); }
.ph-age.fresh { background: color-mix(in srgb, var(--accent) 80%, #000); color: var(--accent-ink); font-weight: 800; }

/* schermi larghi: contenuto piu' ampio e affari su due colonne */
@media (min-width: 1100px) {
  main.view { max-width: 1040px; }
  .topbar { padding-left: max(14px, calc((100vw - 1040px) / 2 + 14px)); padding-right: max(14px, calc((100vw - 1040px) / 2 + 14px)); }
  .modes { max-width: 1040px; }
  .pausebar, .viewerbar { max-width: 1012px; }
  .nav { width: 1040px; }
  .deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  .two { gap: 16px; }
}
