/* ============================================================
   TRACE — design system
   ============================================================ */
:root {
  --bg: #070605;
  --bg-2: #0e0b09;
  --panel: rgba(20, 16, 13, 0.66);
  --panel-solid: #16120f;
  --line: rgba(255, 122, 40, 0.13);
  --line-2: rgba(255, 122, 40, 0.3);
  --fg: #f4efe8;
  --fg-dim: #bdb3a8;
  --fg-mute: #7a6f64;
  --cream: #f4efe8;
  --accent: #ff5b0d;
  --accent-2: #ffa040;
  --accent-3: #ff3d00;
  --ok: #2ee6a6;
  --warn: #ffb020;
  --bad: #ff3b5c;
  --radius: 18px;
  --radius-sm: 10px;
  --glow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(255, 91, 13, .45);
  --grad: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 40%, var(--accent-2) 100%);
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2617; border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- 3D background canvas ---------- */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body[data-scene="calm"] #scene { opacity: .42; }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75) 100%); }
main, header.nav, footer { position: relative; z-index: 2; }

/* ---------- intro loader ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
#intro.gone { opacity: 0; visibility: hidden; }
/* logo: la lente passa sopra la scritta e la "rivela" mentre scansiona */
#intro .intro-logo { position: relative; width: min(620px, 82vw); aspect-ratio: 760 / 220; perspective: 900px; }
#intro .i-word { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
#intro .i-word img, #intro .i-word-ghost { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .i-word-ghost { opacity: .06; filter: grayscale(1); }
#intro .i-lens { position: absolute; width: 30%; top: -8%; left: -18%; filter: drop-shadow(0 0 28px rgba(255,106,19,.75)); transform-origin: 40% 40%; }
#intro .i-flash { position: absolute; inset: -20% -10%; background: radial-gradient(closest-side, rgba(255,120,30,.55), transparent); opacity: 0; mix-blend-mode: screen; pointer-events: none; }
#intro .tagline { margin-top: 26px; text-align: center; font-size: clamp(15px, 2vw, 20px); font-weight: 600; letter-spacing: .02em; opacity: 0; }
#intro .tagline b { color: var(--accent); }

/* fiamme sfocate del brand (nero + arancione) */
.flames { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.flames i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; animation: flame 18s ease-in-out infinite alternate; }
.flames i:nth-child(1) { width: 46vw; height: 36vw; left: -12vw; bottom: -18vw; background: radial-gradient(circle at 60% 40%, #ff5b0d, #ff3d00 40%, transparent 70%); }
.flames i:nth-child(2) { width: 40vw; height: 32vw; right: -10vw; top: -14vw; background: radial-gradient(circle at 40% 60%, #ff8a2a, #b83200 45%, transparent 70%); animation-duration: 23s; animation-delay: -6s; }
.flames i:nth-child(3) { width: 30vw; height: 26vw; right: 8vw; bottom: -16vw; background: radial-gradient(circle, #ffa040, #ff5a00 40%, transparent 70%); animation-duration: 27s; animation-delay: -12s; opacity: .35; }
@keyframes flame { 0% { transform: translate(0,0) scale(1) rotate(0); } 50% { transform: translate(4vw,-3vw) scale(1.15) rotate(20deg); } 100% { transform: translate(-3vw,2vw) scale(.92) rotate(-15deg); } }
#intro .flames i { opacity: .7; }
body[data-scene="calm"] .flames i { opacity: .22; }

/* brand nel menu */
.brand .lens { width: 28px; height: auto; filter: drop-shadow(0 0 10px rgba(255,106,19,.55)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.brand .word { height: 22px; width: auto; }
.brand:hover .lens { transform: rotate(-18deg) scale(1.1); }
#intro .bar { width: min(340px, 70vw); height: 2px; background: var(--line); margin: 28px auto 0; overflow: hidden; border-radius: 2px; }
#intro .bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 18px var(--accent-2); }
#intro .count { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); text-align: center; margin-top: 12px; letter-spacing: .3em; }
#intro .lines { position: absolute; inset: 0; pointer-events: none; }

/* ---------- layout ---------- */
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 120px 0; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 700; }
h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--fg-dim); max-width: 640px; }
.muted { color: var(--fg-mute); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- nav 3D ---------- */
header.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; perspective: 1200px; transition: transform .55s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 0; }
header.nav .inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px;
  background: rgba(12, 9, 8, .55); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line); border-radius: 999px; transform-style: preserve-3d;
  transform: rotateX(var(--nrx, 0deg)) rotateY(var(--nry, 0deg));
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), padding .4s, background .4s, box-shadow .4s;
  animation: navDrop 1.1s cubic-bezier(.2,.9,.25,1.15) both .15s;
}
/* luce che segue il mouse sul vetro */
header.nav .inner::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(160px 60px at var(--nmx, 50%) 50%, rgba(255,91,13,.22), transparent 70%); }
header.nav .inner:hover::before { opacity: 1; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-70px) rotateX(-75deg) scale(.92); filter: blur(8px); } }
header.nav.scrolled .inner { padding-top: 7px; padding-bottom: 7px; background: rgba(12, 9, 8, .82); box-shadow: 0 24px 60px -18px rgba(0,0,0,.85), 0 0 40px -10px rgba(255,91,13,.25), inset 0 1px 0 rgba(255,255,255,.06); }
/* fascio di luce che gira sul bordo */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nav-beam { position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 70%, rgba(255,91,13,.95) 80%, rgba(255,190,140,.9) 84%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beamSpin 6s linear infinite; }
@keyframes beamSpin { to { --beam: 360deg; } }
/* avanzamento della pagina sul bordo inferiore */
.nav-progress { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none; transform-origin: 0 50%;
  transform: scaleX(var(--np, 0)); background: linear-gradient(90deg, #ff5b0d, #ffb27a); box-shadow: 0 0 10px #ff5b0d; opacity: .9; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; display: grid; place-items: center; position: relative; }
.brand .mark svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 91, 13,.8)); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { position: relative; display: flex; gap: 2px; transform-style: preserve-3d; }
.nav-pill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,91,13,.28), rgba(255,91,13,.1)); box-shadow: 0 0 0 1px rgba(255,91,13,.35), 0 8px 24px -6px rgba(255,91,13,.55);
  transform: translate3d(0, 0, 0); transition: transform .45s cubic-bezier(.3,1.4,.4,1), width .45s cubic-bezier(.3,1.4,.4,1), opacity .3s; }
.nav-links a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 999px; color: var(--fg-dim); font-size: 14px; transition: color .25s; perspective: 300px;
  animation: linkIn .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.45s + var(--i, 0) * 60ms); }
@keyframes linkIn { from { opacity: 0; transform: translateY(-14px) rotateX(-90deg); } }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active { text-shadow: 0 0 14px rgba(255,91,13,.6); }
.nav-links .cube { position: relative; display: inline-block; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.nav-links .cube .f { display: inline-block; transform: translateZ(.55em); backface-visibility: hidden; }
.nav-links .cube .t { position: absolute; left: 0; top: 0; white-space: nowrap; color: #ffb27a; transform: rotateX(-90deg) translateZ(.55em); backface-visibility: hidden; }
.nav-links a:hover .cube { transform: rotateX(90deg); }
.nav-cta { display: flex; gap: 8px; align-items: center; animation: linkIn .8s cubic-bezier(.2,.8,.2,1) both .9s; }
.burger { display: none; background: none; border: 0; color: var(--fg); font-size: 24px; cursor: pointer; padding: 4px 10px; }
@media (max-width: 920px) {
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 12px; background: rgba(12,9,8,.96); border: 1px solid var(--line); border-radius: 20px; display: none; perspective: 800px; transform-origin: 50% 0; }
  .nav-links.open { display: flex; animation: menuOpen .5s cubic-bezier(.2,.8,.2,1); }
  .nav-links.open a { animation: menuItem .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .nav-pill { display: none; }
  @keyframes menuOpen { from { opacity: 0; transform: rotateX(-30deg) translateY(-10px); } }
  @keyframes menuItem { from { opacity: 0; transform: translateX(-20px) rotateY(-50deg); } }
  .burger { display: block; }
  .nav-cta .btn.ghost { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent; font: 600 15px var(--font); color: #fff; cursor: pointer;
  background: var(--grad); background-size: 160% 100%; transition: background-position .5s, transform .2s, box-shadow .3s;
  box-shadow: 0 10px 40px -10px rgba(255, 91, 13, .8), inset 0 1px 0 rgba(255,255,255,.25); white-space: nowrap;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 50px -8px rgba(255, 160, 64, .7); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); box-shadow: none; color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); background: rgba(255, 91, 13,.1); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 16px 30px; font-size: 17px; }
.btn.danger { background: rgba(255,59,92,.12); border-color: rgba(255,59,92,.4); color: #ff8aa0; box-shadow: none; }
.btn.danger:hover { background: rgba(255,59,92,.22); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- cards / glass ---------- */
.glass {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.card { padding: 28px; position: relative; overflow: hidden; transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--glow); }
.card .shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 13,.16), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover .shine { opacity: 1; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, border-color .3s, box-shadow .3s; will-change: transform; }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 91, 13,.25), rgba(255, 160, 64,.12)); border: 1px solid var(--line-2); margin-bottom: 18px; font-size: 22px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 80px 0; } }

/* ---------- reveal animations (site that assembles itself) ---------- */
.reveal { opacity: 0; transform: perspective(1000px) translate3d(0, 60px, -120px) rotateX(18deg); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: perspective(1000px) translate3d(-80px, 0, -100px) rotateY(-18deg); }
.reveal.from-right { transform: perspective(1000px) translate3d(80px, 0, -100px) rotateY(18deg); }
.reveal.zoom { transform: perspective(1000px) scale(.85) translateZ(-200px); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(110%) rotateX(-60deg); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.assembled .split-line > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .split-line > span { transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 140px; }
.hero h1 { margin: 22px 0 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.stat-pill { padding: 14px 20px; display: flex; flex-direction: column; min-width: 150px; }
.stat-pill b { font-size: 28px; letter-spacing: -.03em; }
.stat-pill span { font-size: 12px; color: var(--fg-mute); font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--fg-mute); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--accent-2), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee of games ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); padding: 20px 0; }
.marquee .track { display: flex; gap: 18px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.game-chip { padding: 16px 26px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.game-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); }
.compare td:last-child { color: var(--fg); font-weight: 600; }
.compare td:nth-child(2) { color: var(--fg-dim); }
.compare tr:last-child td { border-bottom: 0; }
.compare th:last-child { color: var(--accent-2); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 30px 26px; }
.plan.featured { border-color: rgba(255, 91, 13,.6); box-shadow: 0 0 0 1px rgba(255, 91, 13,.4), 0 30px 80px -30px rgba(255, 91, 13,.9); background: linear-gradient(180deg, rgba(255, 91, 13,.16), var(--panel) 50%); }
.plan .badge { position: absolute; top: 18px; right: 18px; }
.plan .price { font-size: 46px; font-weight: 700; letter-spacing: -.04em; margin: 18px 0 2px; }
.plan .price small { font-size: 15px; color: var(--fg-mute); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--fg-dim); font-size: 15px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 91, 13,.18); color: #ffc59a; border: 1px solid rgba(255, 91, 13,.35); }
.badge.ok { background: rgba(46,230,166,.12); color: var(--ok); border-color: rgba(46,230,166,.35); }
.badge.warn { background: rgba(255,176,32,.12); color: var(--warn); border-color: rgba(255,176,32,.35); }
.badge.bad { background: rgba(255,59,92,.12); color: #ff7d93; border-color: rgba(255,59,92,.4); }
.badge.info { background: rgba(255, 160, 64,.1); color: var(--accent-2); border-color: rgba(255, 160, 64,.3); }
.badge.mute { background: rgba(255,255,255,.05); color: var(--fg-mute); border-color: var(--line); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.6); } }

/* ---------- steps ---------- */
.steps { counter-reset: s; }
.step { padding-left: 74px; position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); position: absolute; left: 24px; top: 26px; font: 700 28px var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- FAQ ---------- */
.faq details { padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--fg-dim); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 60px; background: linear-gradient(180deg, transparent, rgba(255, 91, 13,.05)); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { font: 600 12px var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--fg-mute); margin: 0 0 16px; }
footer a { display: block; color: var(--fg-dim); padding: 4px 0; font-size: 15px; }
footer a:hover { color: var(--fg); }
footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-mute); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--fg-dim); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(5,5,15,.6);
  color: var(--fg); font: 15px var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { font-family: var(--mono); font-size: 13px; min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 13,.18); }
input[type=color] { padding: 2px; height: 40px; cursor: pointer; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--fg-mute); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.discord { background: #5865f2; box-shadow: 0 10px 30px -10px rgba(88,101,242,.8); }

/* ---------- toast & modal ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { padding: 14px 18px; min-width: 260px; max-width: 380px; border-left: 3px solid var(--accent); animation: toastIn .4s cubic-bezier(.2,.8,.2,1); font-size: 14px; }
.toast.bad { border-left-color: var(--bad); } .toast.ok { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) rotateY(30deg); } }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(3,3,10,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.modal { width: min(560px, 100%); padding: 30px; animation: modalIn .5s cubic-bezier(.2,.8,.2,1); max-height: 90vh; overflow: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: perspective(900px) rotateX(25deg) translateY(40px) scale(.92); } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 180px 0 60px; }
.prose { color: var(--fg-dim); max-width: 820px; }
.prose h2 { font-size: 28px; color: var(--fg); margin: 48px 0 14px; }
.prose h3 { color: var(--fg); margin: 28px 0 10px; }
.prose code { font-family: var(--mono); background: rgba(255, 91, 13,.12); padding: 2px 6px; border-radius: 6px; color: #ffc59a; font-size: .9em; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.hidden { display: none !important; }

/* ============================================================
   ICONE SVG
   ============================================================ */
.ic { display: inline-block; vertical-align: middle; flex: none; }
.icon-box { color: var(--accent); box-shadow: inset 0 0 18px rgba(255,91,13,.18); transform: translateZ(0); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.icon-box .ic { filter: drop-shadow(0 0 6px rgba(255,91,13,.6)); }
.tilt:hover .icon-box { transform: translateZ(46px) rotateX(10deg) scale(1.06); box-shadow: inset 0 0 18px rgba(255,91,13,.3), 0 18px 30px -10px rgba(255,91,13,.55); }
.tilt h3, .tilt p, .tilt .price { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tilt:hover h3 { transform: translateZ(28px); }
.tilt:hover p { transform: translateZ(14px); }
.nav-ic { display: grid; place-items: center; width: 20px; color: var(--fg-mute); transition: color .2s, transform .3s; }
.side a.item:hover .nav-ic, .side a.item.on .nav-ic { color: var(--accent); transform: scale(1.12); }
.burger .ic, .mob-toggle .ic { display: block; }
.btn .arrow { display: inline-grid; }

/* ============================================================
   LOGO 3D ESTRUSO (lente impilata su piu' strati)
   ============================================================ */
.lens3d { display: inline-block; perspective: 600px; width: var(--s, 40px); height: var(--s, 40px); flex: none; }
.lens3d .stack { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: lensSpin 7s cubic-bezier(.45,0,.55,1) infinite; }
.lens3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lens3d img.l { filter: brightness(.35) sepia(1) saturate(4) hue-rotate(-12deg); }
.lens3d img.front { filter: drop-shadow(0 0 10px rgba(255,91,13,.55)); }
.lens3d.fast .stack { animation-duration: 2.4s; }
.lens3d.still .stack { animation: lensWobble 6s ease-in-out infinite; }
@keyframes lensSpin { 0% { transform: rotateY(0) rotateX(8deg); } 50% { transform: rotateY(180deg) rotateX(-8deg); } 100% { transform: rotateY(360deg) rotateX(8deg); } }
@keyframes lensWobble { 50% { transform: rotateY(28deg) rotateX(-12deg) rotateZ(-6deg); } }
.brand .lens3d { --s: 30px; }

/* ============================================================
   BORDO "FASCIO DI SCANSIONE" CHE GIRA ATTORNO ALLE CARD
   ============================================================ */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.card::after, .beam-border::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(255,91,13,.9) 85%, #ffd2a8 90%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; animation: ang 3.2s linear infinite;
}
.card:hover::after, .plan.featured::after, .beam-border::after { opacity: 1; }
@keyframes ang { to { --ang: 360deg; } }

/* ============================================================
   CURSORE LUMINOSO + PULSANTI MAGNETICI
   ============================================================ */

/* ============================================================
   SCROLL 3D: le sezioni ruotano/si avvicinano mentre scorri
   ============================================================ */
.hero .wrap { transform: perspective(1400px) rotateX(calc(var(--hero-p, 0) * 18deg)) translateZ(calc(var(--hero-p, 0) * -260px)); opacity: calc(1 - var(--hero-p, 0) * 1.1); transform-origin: 50% 0; will-change: transform; }
.plan.reveal { transform: perspective(1200px) rotateY(-75deg) translateZ(-200px); transform-origin: 0 50%; }
.plan.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.steps .step.reveal { transform: perspective(1000px) rotateX(70deg) translateY(80px); transform-origin: 50% 100%; }
.steps .step.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* parole del titolo che entrano in 3D */
.split-line > span { transform: translateY(110%) rotateX(-80deg) translateZ(-120px); }

/* fascia 3D con la scritta del logo */
.word-band { perspective: 900px; display: grid; place-items: center; padding: 40px 0 10px; }
.word-band .wb { position: relative; width: min(760px, 86vw); aspect-ratio: 760 / 220; transform-style: preserve-3d; animation: band 9s ease-in-out infinite; }
.word-band .wb img { position: absolute; inset: 0; width: 100%; }
.word-band .wb img.l { filter: brightness(.3) sepia(1) saturate(5) hue-rotate(-12deg); }
@keyframes band { 0%, 100% { transform: rotateX(18deg) rotateY(-22deg); } 50% { transform: rotateX(-10deg) rotateY(22deg); } }

/* ============================================================
   DASHBOARD 3D
   ============================================================ */
.chart3d { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 18px 14px 0 4px; transform: perspective(700px) rotateX(18deg); transform-origin: 50% 100%; }
.chart3d i { position: relative; flex: 1; min-height: 3px; background: linear-gradient(180deg, #ff8a3d, #ff5b0d 60%, #b83a00); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.chart3d i::before { content: ''; position: absolute; left: 0; right: -5px; top: -5px; height: 5px; background: #ffb27a; transform: skewX(-45deg); transform-origin: 0 100%; }
.chart3d i::after { content: ''; position: absolute; top: -5px; right: -5px; width: 5px; bottom: 0; background: #7a2600; transform: skewY(-45deg); transform-origin: 0 0; }
.chart3d i:hover { filter: brightness(1.25); }
.stat .stat-ic { position: absolute; right: 18px; top: 18px; color: var(--accent); opacity: .85; transform: translateZ(30px); }
.loading3d { display: grid; place-items: center; padding: 90px 0; gap: 18px; color: var(--fg-mute); font-family: var(--mono); font-size: 12px; letter-spacing: .3em; }
.pin-big { perspective: 600px; }
.pin-big span { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pinIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pinIn { from { opacity: 0; transform: rotateX(-90deg) translateY(30px); } }
/* le card con tilt restano inclinabili anche dopo la composizione */
.tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.tilt.settled { transition: transform .25s ease-out, opacity 1s, border-color .3s, box-shadow .3s !important; transition-delay: 0s !important; }

/* ============================================================
   DASHBOARD v2: condivisione, bot, attivita', palette
   ============================================================ */
kbd { font: 600 10.5px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-mute); background: rgba(255,255,255,.03); }
#palBtn { gap: 8px; } #palBtn kbd { margin-left: 4px; }
@media (max-width: 700px) { #palBtn .kbd-hint, #palBtn kbd { display: none; } }

.seat-ring { --p: 0; width: 130px; height: 130px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.06) 0); box-shadow: 0 0 40px -6px rgba(255,91,13,.55); transform: translateZ(40px); animation: ringIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
.seat-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel-solid); }
.seat-ring > div { position: relative; text-align: center; line-height: 1.1; }
.seat-ring b { font-size: 30px; display: block; } .seat-ring span { font: 600 10px var(--mono); letter-spacing: .25em; color: var(--fg-mute); text-transform: uppercase; }
@keyframes ringIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
.invite-row { display: grid; grid-template-columns: 1.2fr .8fr 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
@media (max-width: 800px) { .invite-row { grid-template-columns: 1fr 1fr; } }
.invite-made { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(255,91,13,.5); background: rgba(255,91,13,.06); animation: modalIn .5s cubic-bezier(.2,.8,.2,1); }
.list-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.members .member { display: flex; gap: 14px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); transition: background .2s; }
.members .member:hover { background: rgba(255,91,13,.05); }
.perm-tbl td, .perm-tbl th { padding: 10px 12px; font-size: 13.5px; } .perm-tbl th { font-size: 10.5px; white-space: nowrap; }

.bot-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.bot-orb { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; color: #fff; flex: none; position: relative; transform-style: preserve-3d;
  background: linear-gradient(145deg, #ff8a3d, #ff5b0d 55%, #9a2f00); box-shadow: 0 20px 50px -14px rgba(255,91,13,.8), inset 0 2px 0 rgba(255,255,255,.35); animation: orbFloat 4s ease-in-out infinite; }
.bot-orb::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--panel-solid); background: var(--fg-mute); }
.bot-orb.online::after { background: var(--ok); box-shadow: 0 0 14px var(--ok); } .bot-orb.error::after { background: var(--bad); } .bot-orb.pending::after { background: var(--warn); animation: pulse 1.2s infinite; }
.bot-orb.none { background: linear-gradient(145deg, #3a2a20, #1d1410); }
@keyframes orbFloat { 50% { transform: translateY(-6px) rotateY(18deg) rotateX(8deg); } }
.switch { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--fg-dim); margin: 10px 0; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 0; }
/* solo l'interruttore (subito dopo l'input), non i testi dell'etichetta */
.switch { flex-wrap: wrap; line-height: 1.4; }
.switch input + span, .switch input + i { width: 40px; height: 22px; flex: none; border-radius: 22px; background: rgba(255,255,255,.1); position: relative; transition: background .25s, box-shadow .25s; }
.switch input + span::after, .switch input + i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span, .switch input:checked + i { background: var(--accent); box-shadow: 0 0 14px rgba(255,91,13,.5); }
.switch input:checked + span::after, .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + span, .switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--fg-dim); font-size: 14.5px; }
.steps-list li::marker { color: var(--accent); font-weight: 700; }
.steps-list a { color: var(--accent); }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 18px; }
.cmd-grid div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); display: grid; }
.cmd-grid code { color: var(--accent); } .cmd-grid span { font-size: 12px; color: var(--fg-mute); }

.act { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 1px solid var(--line-2); }
.act li { display: flex; gap: 14px; padding: 0 0 18px 0; position: relative; margin-left: -17px; animation: actIn .5s cubic-bezier(.2,.8,.2,1) both; }
.act-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 0 16px -4px rgba(255,91,13,.5); }
.act small { display: block; color: var(--fg-mute); font-size: 12px; margin-top: 2px; }
@keyframes actIn { from { opacity: 0; transform: translateX(-16px) rotateY(-20deg); } }
.redeem { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* palette comandi */
.modal.pal-modal { width: min(620px, 100%); padding: 0; margin-top: -18vh; }
.pal-in { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--accent); }
.pal-in input { border: 0; background: transparent; padding: 4px 0; font-size: 17px; box-shadow: none !important; }
.pal-list { max-height: 50vh; overflow: auto; padding: 8px; }
.pal-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-dim); font: 500 15px var(--font); cursor: pointer; text-align: left; }
.pal-item small { margin-left: auto; color: var(--fg-mute); font-size: 12px; }
.pal-item.on, .pal-item:hover { background: rgba(255,91,13,.14); color: var(--fg); }
.pal-item .ic { color: var(--accent); }

/* stampa / PDF del report */
@media print {
  #scene, .flames, .noise, .vignette, .side, .topbar, header.nav, footer, .tc, [data-act], .filters, #toasts { display: none !important; }
  body { background: #fff; color: #111; } .shell { display: block; } .content { padding: 0; }
  .glass, .card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; backdrop-filter: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; } .grp { break-inside: avoid; }
  .muted, .kv div { color: #555 !important; } .kv b, h2, h3 { color: #111 !important; }
}

/* ============================================================
   v3: Language, Setup Scanner, download, Free Scanner
   ============================================================ */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--fg-dim); font: 600 13px var(--font); cursor: pointer; transition: .2s; }
.lang-btn:hover, .lang-menu.open .lang-btn { color: var(--fg); border-color: var(--accent); background: rgba(255,91,13,.1); }
.lang-btn b { font: 700 10.5px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--accent); color: #fff; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 14px; background: rgba(14,11,9,.97); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); z-index: 80; display: none; transform-origin: top right; }
.lang-menu.open .lang-list { display: grid; animation: langIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes langIn { from { opacity: 0; transform: perspective(600px) rotateX(-25deg) translateY(-6px) scale(.96); } }
.lang-list button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-dim); font: 500 14px var(--font); cursor: pointer; text-align: left; }
.lang-list button b { font: 700 10.5px var(--mono); width: 26px; text-align: center; padding: 3px 0; border-radius: 6px; border: 1px solid var(--line-2); }
.lang-list button i { margin-left: auto; color: var(--accent); font-style: normal; }
.lang-list button:hover, .lang-list button.on { background: rgba(255,91,13,.14); color: var(--fg); }
@media (max-width: 920px) { .lang-btn span { display: none; } }

.setup-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px 24px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.game-opt { position: relative; padding: 16px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--fg); font: 600 14.5px var(--font); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, background .2s, box-shadow .2s; text-align: left; }
.game-opt:hover { transform: translateY(-3px) perspective(500px) rotateX(6deg); border-color: var(--accent); }
.game-opt.on { border-color: var(--accent); background: rgba(255,91,13,.16); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -12px rgba(255,91,13,.8); }
.game-opt.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--accent); font-weight: 700; }
.game-opt.off { opacity: .35; cursor: not-allowed; }
.game-opt small { display: block; color: var(--fg-mute); font-size: 11px; margin-top: 2px; }
.build-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.build-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 20px var(--accent); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.build-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; text-align: left; }
.build-steps li { display: flex; gap: 10px; align-items: center; color: var(--fg-mute); transition: color .3s; }
.build-steps li .ic { opacity: 0; transform: scale(.4); transition: .3s cubic-bezier(.2,.8,.2,1); color: var(--ok); }
.build-steps li.ok { color: var(--fg); }
.build-steps li.ok .ic { opacity: 1; transform: none; }

.get-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; text-align: left; }
.get-steps div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 13.5px; color: var(--fg-dim); display: grid; gap: 6px; }
.get-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; }
@media (max-width: 600px) { .get-steps { grid-template-columns: 1fr; } }

.free-hero { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; padding: 34px; }
.rep-free { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; padding: 30px; }
.verdict-orb.small { width: 150px; height: 150px; margin: 0; }
.verdict-orb.small .core { width: 76px; height: 76px; }
.free-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 10px; }
.free-item .sev { margin-top: 7px; }
.free-item .detail { font-size: 12.5px; color: var(--fg-dim); margin-top: 6px; word-break: break-all; }
.blurred { filter: blur(6px); user-select: none; cursor: pointer; transition: filter .3s; }
.blurred:hover { filter: blur(4px); }
.premium-box { padding: 20px 22px; margin-bottom: 12px; position: relative; overflow: hidden; }
.premium-lines { margin-top: 12px; font: 12.5px var(--mono); color: var(--fg-dim); display: grid; gap: 6px; }
.premium-cta { position: absolute; inset: 52px 0 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent, rgba(7,6,5,.85) 60%); }

/* ---------- cursore 3D a lente ---------- */
html.tc-on, html.tc-on * { cursor: none !important; }
html.tc-on input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]), html.tc-on textarea, html.tc-on [contenteditable] { cursor: text !important; }
.tc { position: fixed; inset: 0; pointer-events: none; z-index: 10000; opacity: 0; transition: opacity .25s; }
html.tc-on .tc { opacity: 1; }
.tc.out, .tc.text { opacity: 0 !important; }
.tc-body { position: absolute; left: 0; top: 0; width: 46px; height: 46px; perspective: 260px; will-change: transform; }
.tc-3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: 39.8% 41%; will-change: transform; }
.tc-3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.tc-3d img.l { filter: brightness(.35) sepia(1) saturate(4) hue-rotate(-12deg); }
.tc-3d img.front { filter: drop-shadow(0 0 calc(6px + var(--hv, 0) * 10px) rgba(255,91,13,.75)) drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.tc-glass { position: absolute; left: 39.8%; top: 41%; width: 44%; height: 44%; transform: translate(-50%, -50%) translateZ(1px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 32%), radial-gradient(circle, rgba(255,91,13,calc(.08 + var(--hv, 0) * .25)), rgba(255,91,13,0) 70%);
  backdrop-filter: brightness(calc(1.15 + var(--hv, 0) * .25)) saturate(1.4); -webkit-backdrop-filter: brightness(1.2) saturate(1.4); }
.tc-trail i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: .35; will-change: transform; }
.tc-trail i:nth-child(n+4) { opacity: .2; }
.tc-ripple { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 14px var(--accent); animation: tcRipple .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes tcRipple { to { transform: scale(4.5); opacity: 0; border-width: 1px; } }
@media (pointer: coarse) { .tc { display: none; } }
@media (prefers-reduced-motion: reduce) { .tc-trail { display: none; } }

/* ---------- demo dashboard ---------- */
.demo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 22px; border-radius: 16px; border: 1px solid rgba(255,91,13,.45);
  background: linear-gradient(100deg, rgba(255,91,13,.16), rgba(255,91,13,.03) 60%); box-shadow: 0 0 40px rgba(255,91,13,.12) inset; position: relative; z-index: 5; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 12px var(--mono); letter-spacing: .18em; animation: demoPulse 2.4s ease-in-out infinite; }
@keyframes demoPulse { 50% { box-shadow: 0 0 0 6px rgba(255,91,13,.18), 0 0 22px rgba(255,91,13,.6); } }
.demo-txt { font-size: 14px; }
body.demo .content button:not([data-demo-ok] *), body.demo .content [data-act] { filter: saturate(.75); }

/* ---------- home: showcase + demo ---------- */
.showcase-frame { max-width: 1100px; margin: 0 auto; perspective: 1600px; }
.showcase-frame .svv { transform: rotateX(5deg) translateZ(-20px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.showcase-frame:hover .svv { transform: none; }
/* video showcase (MP4) */
.svv { position: relative; border-radius: 20px; overflow: hidden; background: #050404; border: 1px solid rgba(255,91,13,.35);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 90px rgba(255,91,13,.16); }
.svv::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, rgba(255,91,13,.9), transparent 35%, transparent 65%, rgba(255,178,122,.7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.svv video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #050404; }
.demo-sec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px; overflow: hidden; background: linear-gradient(135deg, rgba(255,91,13,.14), rgba(255,255,255,.02) 60%); }
.demo-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; color: var(--fg-dim); }
.demo-list li { display: flex; gap: 10px; align-items: center; } .demo-list svg { color: var(--accent); }
.demo-preview { position: relative; display: block; border-radius: 16px; transform: perspective(1200px) rotateY(-14deg) rotateX(6deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.demo-preview:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateZ(20px); }
.demo-screen { position: relative; width: 100%; aspect-ratio: 16 / 10.5; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,91,13,.4); box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 60px rgba(255,91,13,.18); background: #070605; }
.demo-screen iframe { position: absolute; left: 0; top: 0; width: 250%; height: 250%; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.demo-badge { position: absolute; left: 18px; top: -14px; padding: 6px 13px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 12px var(--mono); letter-spacing: .18em; box-shadow: 0 0 24px rgba(255,91,13,.6); animation: demoPulse 2.4s ease-in-out infinite; }
@media (max-width: 960px) { .demo-sec { grid-template-columns: 1fr; padding: 28px; } .demo-preview { transform: none; } }

/* ---------- editor del tema dello scanner ---------- */
.te-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; margin-top: 18px; }
@media (max-width: 1200px) { .te-grid { grid-template-columns: 1fr; } }
.te-panel { padding: 22px; }
.te-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 5px; margin-bottom: 18px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.te-tab { min-width: 0; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; justify-content: center; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--fg-dim); font: 600 13.5px var(--font); cursor: pointer; transition: .2s; }
.te-tab.on { background: linear-gradient(135deg, rgba(255,91,13,.35), rgba(255,91,13,.12)); color: #fff; box-shadow: 0 0 18px rgba(255,91,13,.25); }
.te-l { display: block; font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); margin: 16px 0 9px; }
.te-panel section > .te-l:first-child { margin-top: 0; }
.scene-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scene-card { text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--fg); font: 500 13px var(--font); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 4px; }
.scene-card small { color: var(--fg-mute); font-size: 11.5px; line-height: 1.35; }
.scene-card:hover { transform: translateY(-3px) rotateX(6deg); }
.scene-card.on { border-color: var(--accent); box-shadow: 0 0 24px rgba(255,91,13,.3), inset 0 0 0 1px var(--accent); }
.sc-prev { position: relative; display: block; height: 62px; border-radius: 9px; overflow: hidden; margin-bottom: 6px; background: #ece9e4; }
.sc-prev i { position: absolute; border-radius: 50%; filter: blur(8px); }
.sc-trace3d i:first-child { left: -10%; bottom: -60%; width: 80%; height: 110%; background: #ff5b0d; } .sc-trace3d i:last-child { left: 18%; top: 22%; width: 22px; height: 22px; border: 4px solid #161412; filter: none; background: transparent; }
.sc-banner { background: linear-gradient(135deg, #3b1b6e, #0b1a3a); } .sc-banner i:first-child { left: 10%; top: 10%; width: 40%; height: 60%; background: #9b5cff; } .sc-banner i:last-child { right: 5%; bottom: -20%; width: 50%; height: 70%; background: #19c3ff; }
.sc-minimal { background: #0d0b0a; } .sc-minimal i:first-child { left: -10%; bottom: -70%; width: 70%; height: 120%; background: #ff5b0d; } .sc-minimal i:last-child { right: -10%; bottom: -70%; width: 60%; height: 120%; background: #ff8a3d; animation: demoPulse 3s infinite; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.seg-btn { padding: 7px 13px; border-radius: 9px; border: 0; background: transparent; color: var(--fg-dim); font: 600 13px var(--font); cursor: pointer; transition: .2s; }
.seg-btn.on { background: var(--accent); color: #fff; box-shadow: 0 0 14px rgba(255,91,13,.45); }
.drop { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px dashed rgba(255,91,13,.45); background: rgba(255,91,13,.05); margin-bottom: 10px; transition: background .2s, transform .2s; }
.drop:hover { background: rgba(255,91,13,.1); transform: translateY(-2px); }
.drop b { display: block; } .drop small { color: var(--fg-mute); font-size: 12px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-prev { width: 110px; height: 62px; flex: none; border-radius: 10px; background: rgba(255,255,255,.05) center / cover no-repeat; border: 1px solid var(--line-2); }
.drop-prev.logo { width: 62px; background-size: contain; background-color: rgba(255,255,255,.04); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset { display: flex; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); color: var(--fg); font: 600 13px var(--font); cursor: pointer; transition: transform .2s, border-color .2s; }
.preset:hover { transform: translateY(-2px); border-color: var(--accent); }
.preset i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--b) 50%, var(--a) 50%); box-shadow: inset 0 0 0 2px var(--c); flex: none; }
#palette { margin-top: 12px; transition: opacity .3s; } #palette.off { opacity: .35; pointer-events: none; }
textarea.code { min-height: 120px; font: 12.5px/1.5 var(--mono); white-space: pre; tab-size: 2; }
.te-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.te-side { position: sticky; top: 20px; }
.te-stage-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.te-frame-wrap { position: relative; width: 100%; perspective: 1400px; }
.te-window { position: absolute; left: 0; top: 0; width: 780px; height: 480px; transform-origin: 0 0; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,91,13,.3), 0 0 60px rgba(255,91,13,.15); background: #ece9e4; }
.te-window iframe { width: 780px; height: 480px; border: 0; display: block; }
.te-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 99px; background: rgba(13,11,10,.85); border: 1px solid rgba(255,91,13,.4); font-size: 13px; transition: opacity .5s; pointer-events: none; }
.te-loading.gone { opacity: 0; }

/* ---------- dashboard 3D ---------- */
.dash-floor { position: fixed; left: -30%; right: -30%; bottom: -6vh; height: 46vh; z-index: 0; pointer-events: none; perspective: 520px; opacity: .55;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 92%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 92%); }
.dash-floor i { position: absolute; inset: 0; transform-origin: 50% 100%; transform: rotateX(74deg) rotateZ(var(--fx, 0deg)) translateX(var(--px, 0px));
  background-image: linear-gradient(rgba(255,91,13,.42) 1px, transparent 1px), linear-gradient(90deg, rgba(255,91,13,.32) 1px, transparent 1px);
  background-size: 64px 64px; animation: floorMove 2.6s linear infinite; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
@keyframes floorMove { to { background-position: 0 64px, 0 0; } }
.dash-glows { position: fixed; inset: 0; z-index: 0; pointer-events: none; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.dash-glows i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: glowDrift 16s ease-in-out infinite alternate; }
.dash-glows i:nth-child(1) { left: 10%; top: -10%; width: 38vw; height: 38vw; background: radial-gradient(circle, #ff5b0d, transparent 65%); }
.dash-glows i:nth-child(2) { right: -8%; top: 30%; width: 30vw; height: 30vw; background: radial-gradient(circle, #ff8a3d, transparent 65%); animation-duration: 21s; }
.dash-glows i:nth-child(3) { left: 35%; bottom: -15%; width: 34vw; height: 34vw; background: radial-gradient(circle, #ff3b0d, transparent 65%); animation-duration: 25s; animation-direction: alternate-reverse; }
@keyframes glowDrift { to { transform: translate3d(6vw, 4vh, 0) scale(1.2); } }
body.dash .shell { z-index: 2; }
/* titolo che entra in 3D */
#ptitle { transform-origin: 0 100%; }
#ptitle.flip-in { animation: titleFlip .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes titleFlip { from { opacity: 0; transform: perspective(700px) rotateX(-85deg) translateY(18px); filter: blur(6px); } }
/* sidebar: le voci arrivano una alla volta ruotando, solo al primo caricamento */
body.dash:not(.side-done) .side a.item, body.dash:not(.side-done) .side .user { animation: sideIn .8s cubic-bezier(.2,.8,.2,1) both; }
.side a.item:nth-of-type(1) { animation-delay: .05s; } .side a.item:nth-of-type(2) { animation-delay: .1s; } .side a.item:nth-of-type(3) { animation-delay: .15s; } .side a.item:nth-of-type(4) { animation-delay: .2s; }
.side a.item:nth-of-type(5) { animation-delay: .25s; } .side a.item:nth-of-type(6) { animation-delay: .3s; } .side a.item:nth-of-type(7) { animation-delay: .35s; } .side a.item:nth-of-type(8) { animation-delay: .4s; }
.side a.item:nth-of-type(9) { animation-delay: .45s; } .side a.item:nth-of-type(10) { animation-delay: .5s; } .side a.item:nth-of-type(11) { animation-delay: .55s; } .side a.item:nth-of-type(12) { animation-delay: .6s; }
@keyframes sideIn { from { opacity: 0; transform: perspective(600px) translateX(-40px) rotateY(-70deg); } }
body.dash .side a.item .nav-ic { display: inline-flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
body.dash .side a.item:hover .nav-ic { transform: perspective(200px) rotateY(180deg) scale(1.15); }
body.dash .side a.item:hover { transform: translateX(4px); }
body.dash .side a.item.on .nav-ic { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255,91,13,.8)); }
/* numeri e icone delle statistiche in profondita' */
body.dash .stat b { display: inline-block; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
body.dash .stat:hover b { transform: translateZ(40px) scale(1.06); text-shadow: 0 10px 30px rgba(255,91,13,.35); }
body.dash .stat .stat-ic { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
body.dash .stat:hover .stat-ic { transform: translateZ(50px) rotateY(25deg) scale(1.15); }
body.dash .content .reveal { transform: perspective(1100px) translate3d(0, 40px, -160px) rotateX(24deg); }
body.dash .content .reveal.from-right { transform: perspective(1100px) translate3d(60px, 0, -140px) rotateY(22deg); }
body.dash .content .reveal.in { transform: none; }
body.dash .content .tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (prefers-reduced-motion: reduce) { .dash-floor i, .dash-glows i, #ptitle.flip-in, body.dash .side a.item { animation: none !important; } }

@media (prefers-reduced-motion: reduce) { header.nav .inner, .nav-links a, .nav-cta, .nav-beam { animation: none !important; } }

/* ---------- dashboard: sidebar e barra superiore 3D ---------- */
.side { perspective: 900px; }
.side a.item.on::before { display: none; }
.side a.item { z-index: 1; transform-style: preserve-3d; }
.side-ind, .side-hov { position: absolute; left: 16px; right: 16px; top: 0; height: 44px; border-radius: 12px; pointer-events: none; opacity: 0; z-index: 0; }
.side-ind { background: linear-gradient(90deg, rgba(255,91,13,.34), rgba(255,91,13,.06)); box-shadow: 0 10px 30px -10px rgba(255,91,13,.6), inset 0 0 0 1px rgba(255,91,13,.35);
  transition: transform .6s cubic-bezier(.3,1.35,.4,1), height .4s, opacity .3s; }
.side-ind::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 14px var(--accent); }
.side-ind::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); background-size: 250% 100%; animation: indShine 3.2s ease-in-out infinite; }
@keyframes indShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.side-hov { background: rgba(255,91,13,.08); transition: transform .35s cubic-bezier(.3,1.3,.4,1), height .3s, opacity .25s; }
.side a.item:hover, .side a.item.on { background: transparent !important; }
.side-beam { position: absolute; right: -1px; top: 0; width: 1px; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, #ff5b0d, transparent); box-shadow: 0 0 12px #ff5b0d; animation: beamFall 5s linear infinite; }
@keyframes beamFall { from { transform: translateY(-100%); } to { transform: translateY(380%); } }
.side .brand .lens3d .stack { animation-duration: 5s; }
.top-dock { position: relative; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 7px; border-radius: 999px; background: rgba(12,9,8,.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); animation: dockIn 1s cubic-bezier(.2,.9,.25,1.15) both .2s; }
.top-dock::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(140px 50px at var(--tmx, 50%) 50%, rgba(255,91,13,.2), transparent 70%); }
.top-dock > :not(.nav-beam) { position: relative; animation: linkIn .7s cubic-bezier(.2,.8,.2,1) both; }
.top-dock > :nth-child(2) { animation-delay: .35s; } .top-dock > :nth-child(3) { animation-delay: .42s; } .top-dock > :nth-child(4) { animation-delay: .49s; } .top-dock > :nth-child(5) { animation-delay: .56s; } .top-dock > :nth-child(6) { animation-delay: .63s; }
.top-dock .btn:hover { transform: translateZ(18px); }
@keyframes dockIn { from { opacity: 0; transform: perspective(900px) translateY(-30px) rotateX(-70deg); } }
@media (max-width: 760px) { .top-dock { border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .side-ind::after, .side-beam, .top-dock, .top-dock > * { animation: none !important; } }

/* =====================================================================
   FUNZIONI EXTRA (dash-plus.js, status, live, annunci)
   ===================================================================== */
/* statistiche */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 3px; overflow-x: auto; padding: 14px 0 6px; }
.heat i, .heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: block; transition: transform .2s; }
.heat i:hover { transform: scale(1.5) translateZ(10px); }
.hm0 { background: rgba(255,255,255,.05); } .hm1 { background: rgba(255,91,13,.3); } .hm2 { background: rgba(255,91,13,.55); } .hm3 { background: rgba(255,91,13,.8); } .hm4 { background: #ff5b0d; box-shadow: 0 0 8px #ff5b0d; }
.heat-legend { display: flex; gap: 4px; align-items: center; font-size: 12px; justify-content: flex-end; }
.topbar-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; font-size: 14px; animation: rowIn .7s cubic-bezier(.2,.8,.2,1) both; }
.topbar-row::before { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: linear-gradient(90deg, rgba(255,91,13,.32), rgba(255,91,13,.06)); border-radius: inherit; transform-origin: 0 50%; animation: barGrow 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: inherit; }
.topbar-row > * { position: relative; }
.topbar-row .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-row .rank { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; font: 700 12px var(--mono); background: rgba(255,91,13,.2); color: #ffb27a; }
@keyframes barGrow { from { transform: scaleX(0); } }
@keyframes rowIn { from { opacity: 0; transform: perspective(600px) rotateX(-60deg) translateY(10px); } }
.sev-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--accent-2, #ff8a3d); }
.sev-dot.DETECTION, .sev-dot.CRITICAL { background: var(--bad); box-shadow: 0 0 8px var(--bad); } .sev-dot.WARNING { background: var(--warn); }
.verdict-bar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); }
.verdict-bar i { display: block; min-width: 0; } .verdict-bar .cheating { background: var(--bad); } .verdict-bar .suspicious { background: var(--warn); } .verdict-bar .clean { background: var(--ok); }

/* sicurezza */
.pw-meter { height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); margin: -4px 0 14px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }
.pw-meter i[data-s="3"] { background: var(--warn); } .pw-meter i[data-s="4"], .pw-meter i[data-s="5"] { background: var(--ok); }
.accents { display: flex; gap: 10px; flex-wrap: wrap; }
.acc { width: 34px; height: 34px; border-radius: 11px; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.08); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.acc:hover { transform: translateY(-3px) rotateX(20deg); } .acc.on { box-shadow: 0 0 0 2px #fff, 0 0 20px var(--c); transform: translateY(-3px); }
.tfa-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.tfa-box .qr { width: 150px; flex: none; padding: 8px; border-radius: 12px; background: #fff; } .tfa-box .qr svg { display: block; width: 100%; height: auto; }
.tfa-box .qr:empty { display: none; }
.danger-zone { border-color: rgba(255,77,61,.35) !important; }

/* inviti */
.ref-hero { display: flex; gap: 26px; align-items: center; padding: 30px; flex-wrap: wrap; }
.ref-gift { width: 96px; height: 96px; flex: none; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff5b0d, #ffb27a); box-shadow: 0 20px 40px -10px rgba(255,91,13,.6); animation: giftSpin 5s ease-in-out infinite; }
@keyframes giftSpin { 0%, 100% { transform: perspective(500px) rotateY(-18deg) rotateX(8deg); } 50% { transform: perspective(500px) rotateY(18deg) rotateX(-6deg) translateY(-6px); } }

/* confronto */
.cmp-row { display: flex; gap: 9px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmp-n { display: flex; gap: 18px; } .cmp-n span { display: flex; flex-direction: column; } .cmp-n b { font-size: 30px; } .cmp-n small { color: var(--fg-mute); font-size: 12px; }

/* report: strumenti, verdetto manuale, tag, commenti */
.rep-tools { margin-top: 16px; padding: 14px 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.star-btn { display: inline-flex; gap: 7px; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-dim); font: 600 13px var(--font); cursor: pointer; transition: .25s; }
.star-btn svg { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.star-btn:hover svg { transform: perspective(200px) rotateY(180deg); }
.star-btn.on { color: #ffd35c; border-color: rgba(255,211,92,.55); background: rgba(255,211,92,.1); box-shadow: 0 0 18px rgba(255,211,92,.2); }
.mv-wrap select { width: auto; padding: 7px 12px; font-size: 13px; }
.tags-ed { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tags-ed input { width: 90px; padding: 6px 10px; font-size: 13px; }
.tagc { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 99px; background: rgba(255,91,13,.15); border: 1px solid rgba(255,91,13,.35); color: #ffb27a; font-size: 12.5px; font-weight: 600; }
.tagc button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; }
.mv-banner { margin-top: 12px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.mv-banner.bad { border-color: rgba(255,77,61,.5); background: linear-gradient(90deg, rgba(255,77,61,.14), transparent); } .mv-banner.bad svg { color: var(--bad); }
.mv-banner.ok { border-color: rgba(46,229,157,.45); background: linear-gradient(90deg, rgba(46,229,157,.12), transparent); } .mv-banner.ok svg { color: var(--ok); }
.mv-banner.warn { border-color: rgba(255,176,32,.45); background: linear-gradient(90deg, rgba(255,176,32,.12), transparent); } .mv-banner.warn svg { color: var(--warn); }
.cmts { display: grid; gap: 10px; max-height: 320px; overflow: auto; margin-bottom: 10px; }
.cmt { display: flex; gap: 10px; font-size: 14px; animation: rowIn .5s cubic-bezier(.2,.8,.2,1) both; } .cmt > div { flex: 1; min-width: 0; position: relative; }
.cmt-b { white-space: pre-wrap; word-break: break-word; color: var(--fg-dim); margin-top: 2px; }
.cmt-del { position: absolute; right: 0; top: 0; border: 0; background: transparent; color: var(--fg-mute); cursor: pointer; font-size: 16px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

/* lista scansioni */
.qf-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; }
.qf-bar .chip small { opacity: .6; margin-left: 3px; }
.bulk-bar { position: sticky; top: 12px; z-index: 6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px;
  background: rgba(18,14,12,.92); border: 1px solid rgba(255,91,13,.45); box-shadow: 0 20px 40px -14px rgba(0,0,0,.7), 0 0 30px -8px rgba(255,91,13,.35); backdrop-filter: blur(12px);
  transform: perspective(800px) rotateX(-80deg) translateY(-10px); opacity: 0; pointer-events: none; height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s, height .3s, padding .3s, margin .3s; transform-origin: 50% 0; }
.bulk-bar.on { transform: none; opacity: 1; pointer-events: auto; height: auto; padding: 10px 14px; margin-bottom: 12px; }
.bulk-bar b { color: var(--accent); font-size: 18px; }
.tbl td.sel, .tbl th:first-child { width: 36px; }
.tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.row-star { color: #ffd35c; text-shadow: 0 0 8px rgba(255,211,92,.6); }
.row-tags { font-size: 11px; color: #ffb27a; margin-top: 3px; }
body.compact .tbl td, body.compact .tbl th { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
body.no-fx #scene, body.no-fx .dash-floor, body.no-fx .dash-glows, body.no-fx .flames { display: none !important; }

/* campanella notifiche */
.bell-wrap { position: relative; }
.bell { position: relative; width: 44px; padding: 0; justify-content: center; }
.bell.ring svg { animation: bellRing .9s cubic-bezier(.36,.07,.19,.97); transform-origin: 50% 10%; }
@keyframes bellRing { 15% { transform: rotate(22deg); } 30% { transform: rotate(-20deg); } 45% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 10.5px/18px var(--font); display: none; box-shadow: 0 0 12px rgba(255,77,61,.7); }
.bell-n.on { display: block; animation: popIn .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes popIn { from { transform: scale(0); } }
.bell-pop { position: absolute; right: 0; top: calc(100% + 12px); width: 360px; max-width: calc(100vw - 30px); border-radius: 18px; padding: 8px; z-index: 80; text-align: left;
  opacity: 0; pointer-events: none; transform: perspective(900px) rotateX(-25deg) translateY(-10px); transform-origin: 80% 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .25s;
  background: rgba(16,12,10,.97) !important; box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,91,13,.25); }
.bell-pop.open { opacity: 1; pointer-events: auto; transform: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.bell-list { max-height: 400px; overflow: auto; }
.bell-it { display: flex; gap: 10px; padding: 10px; border-radius: 12px; color: var(--fg); transition: background .2s; }
.bell-it:hover { background: rgba(255,91,13,.08); }
.bell-it.new { background: rgba(255,91,13,.06); }
.bell-it .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--accent); }
.bell-it .dot.ok { background: var(--ok); } .bell-it .dot.bad { background: var(--bad); }
.bell-it b { display: block; font-size: 14px; } .bell-it small { display: block; color: var(--fg-mute); font-size: 12.5px; } .bell-it .when { font-size: 11.5px; margin-top: 2px; }
.kbd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; } .kbd-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 600px) { .kbd-grid { grid-template-columns: 1fr; } }

/* annuncio del sito */
.ann-bar { position: relative; z-index: 60; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 9px 44px; font-size: 14px; color: #fff;
  background: linear-gradient(90deg, #ff5b0d, #ff8a3d); animation: annIn .6s cubic-bezier(.2,.8,.2,1); }
.ann-bar.warn { background: linear-gradient(90deg, #c2410c, #d97706); } .ann-bar.info { background: linear-gradient(90deg, #1b1512, #2b1d14); border-bottom: 1px solid rgba(255,91,13,.4); }
.ann-bar .ann-l { color: #fff; font-weight: 700; text-decoration: underline; }
.ann-bar .ann-x { position: absolute; right: 12px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
@keyframes annIn { from { transform: perspective(600px) rotateX(-90deg); transform-origin: 50% 0; } }
body.has-ann header.nav { top: 54px; }

/* torna su */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(14,11,9,.85); color: #fff; box-shadow: 0 14px 30px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(255,91,13,.35); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transform: perspective(500px) translateY(20px) rotateX(70deg); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: perspective(500px) translateY(-4px) rotateX(15deg); }
.to-top svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: #ff5b0d; stroke-width: 3; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; stroke-linecap: round; filter: drop-shadow(0 0 4px #ff5b0d); }
.to-top span { font-size: 20px; font-weight: 700; }

/* home: live */
.live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(255,77,61,.7); animation: liveDot 1.6s infinite; vertical-align: 1px; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 10px rgba(255,77,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,61,0); } }
.feed { display: grid; gap: 8px; perspective: 900px; }
.feed-it { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; }
.feed-it .feed-top { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-it.new { animation: feedIn .8s cubic-bezier(.2,.8,.2,1) both; border-color: rgba(255,91,13,.5); }
@keyframes feedIn { from { opacity: 0; transform: rotateX(-90deg) translateY(-14px); background: rgba(255,91,13,.25); } }
@media (max-width: 600px) { .feed-it { grid-template-columns: auto 1fr; } .feed-it .feed-top { grid-column: 1 / -1; } }

/* pagina stato */
.status-hero { display: flex; gap: 22px; align-items: center; padding: 26px 30px; margin-top: 10px; border-color: rgba(46,229,157,.4); background: linear-gradient(110deg, rgba(46,229,157,.12), transparent 60%); }
.status-hero.warn { border-color: rgba(255,176,32,.5); background: linear-gradient(110deg, rgba(255,176,32,.14), transparent 60%); }
.status-hero.bad { border-color: rgba(255,77,61,.5); background: linear-gradient(110deg, rgba(255,77,61,.14), transparent 60%); }
.st-orb { position: relative; width: 56px; height: 56px; flex: none; }
.st-orb i { position: absolute; inset: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 20px var(--ok); }
.st-orb i:last-child { inset: 0; background: transparent; border: 2px solid var(--ok); animation: orbPing 2s ease-out infinite; box-shadow: none; }
.status-hero.warn .st-orb i { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 20px var(--warn); } .status-hero.warn .st-orb i:last-child { background: transparent; }
@keyframes orbPing { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.st-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st-row:last-child { border-bottom: 0; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-mute); } .st-dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .st-dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.st-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.st-game { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; opacity: .6; }
.st-game.ok { opacity: 1; border-color: rgba(46,229,157,.3); } .st-game small { margin-left: auto; color: var(--fg-mute); font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .topbar-row, .topbar-row::before, .cmt, .feed-it.new, .ref-gift, .bell-n.on, .ann-bar { animation: none !important; } }
.coupon-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 20px; }

/* =====================================================================
   v5: rischio 3D, sigillo, giocatori, prove, Live Wall, checklist, classifica, verifica
   ===================================================================== */
.rep-head { position: relative; }
.risk3d { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) perspective(600px) rotateY(-25deg) scale(.8); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .6s; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.risk3d.on { opacity: 1; transform: translateY(-50%) perspective(600px) rotateY(-8deg); animation: riskFloat 6s ease-in-out infinite 1s; }
@keyframes riskFloat { 50% { transform: translateY(-54%) perspective(600px) rotateY(8deg); } }
.risk3d .rg { position: relative; width: 104px; height: 104px; }
.risk3d svg { width: 100%; height: 100%; transform: rotate(135deg); }
.risk3d circle { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 235.6 314.2; }
.risk3d .tr { stroke: rgba(255,255,255,.08); }
.risk3d .br { stroke: var(--ok); stroke-dashoffset: 235.6; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1) .3s; filter: drop-shadow(0 0 6px currentColor); }
.risk3d.on .br { stroke-dashoffset: calc(235.6 - 235.6 * var(--v) / 100); }
.risk3d.warn .br { stroke: var(--warn); color: var(--warn); } .risk3d.bad .br { stroke: var(--bad); color: var(--bad); } .risk3d.ok .br { color: var(--ok); }
.risk3d.warn > span { color: var(--warn); } .risk3d.bad > span { color: var(--bad); } .risk3d.ok > span { color: var(--ok); }
.risk3d .rn { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.risk3d .rn b { font: 800 30px var(--font); letter-spacing: -.04em; line-height: 1; } .risk3d .rn small { color: var(--fg-mute); font-size: 11px; }
@media (max-width: 760px) { .risk3d { position: static; transform: none !important; margin-top: 14px; opacity: 1; } }
.risk-pill { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; font: 700 11px var(--mono); vertical-align: middle; border: 1px solid; }
.risk-pill.ok { color: var(--ok); border-color: rgba(46,229,157,.4); background: rgba(46,229,157,.08); }
.risk-pill.warn { color: var(--warn); border-color: rgba(255,176,32,.45); background: rgba(255,176,32,.08); }
.risk-pill.bad { color: var(--bad); border-color: rgba(255,77,61,.5); background: rgba(255,77,61,.1); }
.seal-card { display: flex; gap: 14px; align-items: center; padding: 16px !important; border-color: rgba(255,91,13,.35); }
.seal-qr { width: 92px; height: 92px; flex: none; border-radius: 10px; background: #fff; padding: 4px; }
.seal-qr:empty { background: rgba(255,255,255,.05); }
.seal-qr svg { width: 100%; height: 100%; display: block; }
.seal-code { display: block; font-size: 16px; color: #ffb27a; letter-spacing: .04em; margin-top: 4px; }
.seal-strip { display: flex; gap: 12px; align-items: center; padding: 14px 20px; margin-top: 14px; color: var(--fg); border-color: rgba(46,229,157,.35); }
.seal-strip svg { color: var(--ok); } .seal-strip b { color: #ffb27a; }
.why { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; margin: 4px 0 6px; border-radius: 10px; background: rgba(255,91,13,.07); border: 1px dashed rgba(255,91,13,.3); color: var(--fg-dim); font-size: 13.5px; font-family: var(--font); }
.why svg { flex: none; color: #ffb27a; margin-top: 2px; }

/* giocatori */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.player-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; color: var(--fg); }
.player-card.banned { border-color: rgba(255,77,61,.45); box-shadow: 0 0 30px -10px rgba(255,77,61,.4); }
.pc-top { display: flex; gap: 10px; align-items: center; } .pc-top > div { flex: 1; } .pc-top small { display: block; font-size: 11px; }
.pc-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-av { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, #ff5b0d, #ffb27a); box-shadow: 0 10px 24px -8px rgba(255,91,13,.6); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.player-card:hover .pc-av { transform: translateZ(30px) rotateY(20deg); }
.pc-av.big { width: 78px; height: 78px; border-radius: 22px; font-size: 34px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pc-stats span { padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.03); } .pc-stats b { display: block; font-size: 20px; } .pc-stats small { color: var(--fg-mute); font-size: 11px; }
.pc-alts { display: flex; gap: 5px; flex-wrap: wrap; } .pc-alts i { font-style: normal; font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: rgba(255,176,32,.1); color: #ffc04d; border: 1px solid rgba(255,176,32,.3); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.player-hero { display: flex; gap: 22px; align-items: center; padding: 26px; flex-wrap: wrap; }
.player-hero.banned { border-color: rgba(255,77,61,.5); background: linear-gradient(110deg, rgba(255,77,61,.12), transparent 60%); }

/* ricerca prove */
.ev-bar { display: flex; gap: 10px; align-items: center; padding: 14px 18px; margin-bottom: 16px; }
.ev-bar input { flex: 1; font-size: 16px; } .ev-bar > span { color: var(--accent); }
.ev-list { display: grid; gap: 8px; perspective: 1000px; }
.ev-it { display: flex; gap: 14px; align-items: center; padding: 14px 18px; color: var(--fg); animation: rowIn .6s cubic-bezier(.2,.8,.2,1) both; transition: transform .25s, border-color .25s; }
.ev-it:hover { transform: translateX(6px) translateZ(10px); border-color: rgba(255,91,13,.45); }
.ev-d { font-size: 12px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ev-m { text-align: right; flex: none; } .ev-m small { display: block; color: var(--fg-mute); font-size: 12px; }
mark { background: rgba(255,91,13,.35); color: #fff; border-radius: 3px; padding: 0 2px; }

/* Live Wall */
.wall-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.content:fullscreen { overflow: auto; background: #070605; padding: 30px; }
.wall-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wk { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); text-align: center; animation: wkIn .8s cubic-bezier(.2,.8,.2,1) both; }
.wk b { display: block; font: 800 clamp(36px, 5vw, 64px) var(--font); letter-spacing: -.05em; line-height: 1.1; } .wk span { color: var(--fg-mute); font-size: 14px; }
.wk.bad b { color: var(--bad); text-shadow: 0 0 30px rgba(255,77,61,.4); } .wk.ok b { color: var(--ok); }
@keyframes wkIn { from { opacity: 0; transform: perspective(700px) rotateX(-60deg); } }
.wall-h { margin: 26px 0 12px; font-size: 18px; }
.wall-run { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wr { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,91,13,.4); background: linear-gradient(120deg, rgba(255,91,13,.12), rgba(255,255,255,.02)); }
.wr-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wr-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.wr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff5b0d, #ffb27a); box-shadow: 0 0 12px #ff5b0d; transition: width .8s; position: relative; }
.wr-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: indShine 1.6s linear infinite; background-size: 200% 100%; }
.wall-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; perspective: 1200px; }
.wd { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--fg); animation: wkIn .7s cubic-bezier(.2,.8,.2,1) both; transition: transform .3s; }
.wd:hover { transform: translateY(-4px) rotateX(8deg); }
.wd.bad { border-color: rgba(255,77,61,.45); } .wd.warn { border-color: rgba(255,176,32,.4); } .wd.ok { border-color: rgba(46,229,157,.35); }
.wd-v { display: flex; justify-content: space-between; align-items: center; } .wd-n { font: 700 13px var(--mono); } .wd-n .bad { color: var(--bad); } .wd-n .warn { color: var(--warn); }
@media (max-width: 800px) { .wall-kpi { grid-template-columns: repeat(2, 1fr); } }

/* checklist di avvio */
.onboard { position: relative; display: flex; gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 20px; flex-wrap: wrap; border-color: rgba(255,91,13,.35); background: linear-gradient(110deg, rgba(255,91,13,.1), transparent 60%); }
.ob-ring { position: relative; width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.ob-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .ob-ring circle { fill: none; stroke-width: 6; stroke: rgba(255,255,255,.08); }
.ob-ring circle.v { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: calc(157 - 157 * var(--p) / 100); filter: drop-shadow(0 0 5px var(--accent)); animation: obFill 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes obFill { from { stroke-dashoffset: 157; } }
.ob-ring b { font-size: 17px; }
.ob-steps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ob-st { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-dim); font-size: 13px; transition: .2s; }
.ob-st:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.ob-st.done { border-color: rgba(46,229,157,.4); color: var(--ok); text-decoration: line-through; opacity: .75; }
.ob-x { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: var(--fg-mute); font-size: 20px; cursor: pointer; }

/* classifica e badge */
.lb-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); animation: rowIn .6s cubic-bezier(.2,.8,.2,1) both; }
.lb-pos { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font: 800 13px var(--mono); background: rgba(255,255,255,.05); }
.lb-pos.p1 { background: linear-gradient(135deg, #ffd35c, #ff9f1a); color: #1a1205; box-shadow: 0 0 16px rgba(255,211,92,.5); } .lb-pos.p2 { background: linear-gradient(135deg, #e6e6e6, #9aa0a6); color: #111; } .lb-pos.p3 { background: linear-gradient(135deg, #e0a070, #a0582a); color: #fff; }
.lb-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.06); margin-top: 6px; overflow: hidden; } .lb-bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; animation: barGrow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.lb-n { text-align: center; min-width: 54px; } .lb-n b { display: block; font-size: 18px; } .lb-n small { color: var(--fg-mute); font-size: 11px; }
.badge-prev { padding: 20px; margin: 10px 0 16px; border-radius: 12px; background: repeating-conic-gradient(rgba(255,255,255,.04) 0 25%, transparent 0 50%) 0 0 / 18px 18px; display: grid; place-items: center; }

/* pagina di verifica */
.check-form { display: flex; gap: 10px; padding: 14px; margin-top: 24px; }
.check-form input { flex: 1; font: 600 20px var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.seal-res { margin-top: 22px; padding: 34px 26px; text-align: center; }
.seal-res.ok { border-color: rgba(46,229,157,.5); background: linear-gradient(180deg, rgba(46,229,157,.12), transparent 70%); }
.seal-res.bad { border-color: rgba(255,77,61,.5); background: linear-gradient(180deg, rgba(255,77,61,.12), transparent 70%); }
.seal-res.warn { border-color: rgba(255,176,32,.45); }
.seal3d { position: relative; width: 110px; height: 110px; margin: 0 auto 14px; transform-style: preserve-3d; animation: sealSpin 1.2s linear infinite; }
.seal3d.done { animation: sealLand 1s cubic-bezier(.2,.9,.25,1.2) both; }
.seal3d i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,91,13,.6); }
.seal3d i:nth-child(2) { inset: 10px; border-style: solid; border-color: rgba(255,91,13,.35); transform: rotateX(70deg); }
.seal3d i:nth-child(3) { inset: 10px; border-style: solid; border-color: rgba(255,91,13,.35); transform: rotateY(70deg); }
.seal3d span { position: absolute; inset: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle, #ff7a33, #ff5b0d); box-shadow: 0 0 40px rgba(255,91,13,.6); }
.seal-res.ok .seal3d span { background: radial-gradient(circle, #4bf0ad, #1aa673); box-shadow: 0 0 40px rgba(46,229,157,.6); } .seal-res.ok .seal3d i { border-color: rgba(46,229,157,.5); }
.seal-res.bad .seal3d span { background: radial-gradient(circle, #ff6b5c, #d8243f); box-shadow: 0 0 40px rgba(255,77,61,.6); } .seal-res.bad .seal3d i { border-color: rgba(255,77,61,.5); }
@keyframes sealSpin { to { transform: rotateY(360deg); } }
@keyframes sealLand { from { transform: rotateY(-540deg) scale(.6); } }
.seal-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; margin-top: 10px; }
.seal-kv > div { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); } .seal-kv small { display: block; color: var(--fg-mute); font-size: 11.5px; margin-bottom: 4px; }
@media (max-width: 640px) { .seal-kv { grid-template-columns: 1fr 1fr; } .check-form { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .risk3d.on, .seal3d, .wk, .wd, .ev-it, .lb-row, .ob-ring circle.v { animation: none !important; } }

/* ---------- Search Probable Suspect ---------- */
.sus-hero { text-align: center; padding: 10px 0 26px; }
.sus-hero h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 8px; }
.sus-hero > p { max-width: 620px; margin: 0 auto 22px; }
.sus-radar { position: relative; width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle, rgba(255,91,13,.35), rgba(255,91,13,.05) 60%, transparent 70%); transform: perspective(600px) rotateX(18deg); }
.sus-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,91,13,.45); }
.sus-radar i:nth-child(2) { inset: 18px; } .sus-radar i:nth-child(3) { inset: 36px; border-color: rgba(255,91,13,.7); }
.sus-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,91,13,.6), transparent 25%); animation: sweep 3s linear infinite; }
.sus-radar.scanning .sweep { animation-duration: .7s; }
.sus-radar.scanning { animation: radarPulse .7s ease-in-out infinite; }
.sus-radar svg { position: relative; z-index: 1; filter: drop-shadow(0 0 10px #ff5b0d); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes radarPulse { 50% { box-shadow: 0 0 0 14px rgba(255,91,13,.12), 0 0 60px rgba(255,91,13,.5); } }
.sus-form { display: flex; gap: 10px; align-items: center; max-width: 720px; margin: 0 auto 10px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid rgba(255,91,13,.4) !important;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), 0 0 40px -10px rgba(255,91,13,.35); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.sus-form:focus-within { transform: perspective(800px) translateZ(20px); }
.sus-form input { flex: 1; border: 0 !important; background: transparent !important; font: 600 17px var(--mono); box-shadow: none !important; }
.sus-ic { color: #ffb27a; display: flex; }
.sus-none { text-align: center; padding: 50px 26px; border-color: rgba(255,255,255,.14); }
.sus-none-ic { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--fg-mute); animation: giftSpin 5s ease-in-out infinite; }
.sus-none h2 { font-size: 28px; margin-bottom: 8px; }
.sus-card { padding: 26px; margin-bottom: 18px; animation: susIn .8s cubic-bezier(.2,.8,.2,1) both; }
.sus-card.bad { border-color: rgba(255,77,61,.55); background: linear-gradient(115deg, rgba(255,77,61,.14), transparent 55%); }
.sus-card.warn { border-color: rgba(255,176,32,.5); background: linear-gradient(115deg, rgba(255,176,32,.12), transparent 55%); }
.sus-card.ok { border-color: rgba(46,229,157,.45); background: linear-gradient(115deg, rgba(46,229,157,.1), transparent 55%); }
@keyframes susIn { from { opacity: 0; transform: perspective(1000px) rotateX(-25deg) translateY(30px); } }
.sus-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.sus-orb { position: relative; width: 88px; height: 88px; flex: none; display: grid; place-items: center; }
.sus-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: orbPing 2.2s ease-out infinite; }
.sus-orb i:nth-child(2) { animation-delay: 1.1s; }
.sus-orb span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sus-orb.bad { color: var(--bad); } .sus-orb.bad span { background: radial-gradient(circle, #ff6b5c, #d8243f); box-shadow: 0 0 34px rgba(255,77,61,.6); }
.sus-orb.warn { color: var(--warn); } .sus-orb.warn span { background: radial-gradient(circle, #ffc04d, #c07a00); box-shadow: 0 0 34px rgba(255,176,32,.55); }
.sus-orb.ok { color: var(--ok); } .sus-orb.ok span { background: radial-gradient(circle, #4bf0ad, #1aa673); box-shadow: 0 0 34px rgba(46,229,157,.55); }
.sus-orb.info { color: var(--accent); } .sus-orb.info span { background: radial-gradient(circle, #ff8a3d, #ff5b0d); }
.sus-status { font: 800 13px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.sus-status.bad { color: var(--bad); } .sus-status.warn { color: var(--warn); } .sus-status.ok { color: var(--ok); } .sus-status.info { color: var(--accent); }
.sus-name { font-size: 30px; margin: 4px 0; word-break: break-word; }
.sus-id { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.sus-copy { border: 0; background: transparent; color: var(--fg-mute); cursor: pointer; display: inline-flex; padding: 2px; }
.sus-copy:hover { color: var(--accent); }
.sus-kpi { display: flex; gap: 10px; } .sus-kpi > div { padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.25); text-align: center; min-width: 96px; }
.sus-kpi b { display: block; font-size: 18px; } .sus-kpi small { color: var(--fg-mute); font-size: 12px; }
.sus-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 22px; }
@media (max-width: 900px) { .sus-grid { grid-template-columns: 1fr; } }
.sus-grid h4 { font: 700 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); margin: 0 0 10px; }
.sus-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 11px 14px; margin-bottom: 7px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line); color: var(--fg); transition: transform .25s, border-color .25s; }
a.sus-row:hover { transform: translateX(6px); border-color: rgba(255,91,13,.45); }
.sus-row small { flex: 1; text-align: right; }
.sus-src { font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(255,91,13,.15); color: #ffb27a; }
.sus-src.free { background: rgba(255,255,255,.07); color: var(--fg-dim); }
.sus-links { display: flex; gap: 7px; flex-wrap: wrap; }
.sus-link { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,176,32,.35); background: rgba(255,176,32,.08); color: #ffc04d; font-size: 13px; transition: transform .2s; }
.sus-link:hover { transform: translateY(-2px); }
.sus-seen { margin-top: 16px; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .sus-radar .sweep, .sus-card, .sus-orb i, .sus-none-ic { animation: none !important; } }
.sus-flag { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,77,61,.5); background: rgba(255,77,61,.1); }
.sus-flag svg { color: var(--bad); flex: none; margin-top: 2px; } .sus-flag b { color: #ff8a7d; } .sus-flag small { display: block; margin-top: 2px; }
