/* Bot Universale — grafica 2.0 «Neon». Scritta da zero: sfondo animato (fx.js), vetro scuro, tubi al neon. */
[hidden] { display: none !important; }
:root {
  --bg: #060404;
  --ink: #110D10;
  --panel: rgba(17, 13, 16, .94);
  --panel-2: rgba(28, 18, 22, .96);
  --panel-3: rgba(60, 0, 1, .55);
  --field: rgba(6, 4, 4, .8);
  --line: rgba(213, 208, 210, .12);
  --line-2: rgba(255, 32, 40, .35);
  --text: #FFFFFF;
  --muted: #B5858F;
  --faint: #9a7c83;
  --pink: #FF2028;
  --cyan: #D5D0D2;
  --violet: #900001;
  --lime: #b6ff3c;
  --ok: #3dffa8;
  --bad: #ff4d6d;
  --warn: #ffc83d;
  --grad: linear-gradient(90deg, var(--pink), var(--violet) 50%, var(--cyan));
  --glow-c: 0 0 18px rgba(213, 208, 210, .35);
  --glow-p: 0 0 18px rgba(255, 32, 40, .5);
  --dc-bg: #313338;
  --dc-embed: #2b2d31;
  --r: 14px;
  --ui: 'Manrope', system-ui, sans-serif;
  --disp: 'Chakra Petch', var(--ui);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --mx: 50vw; --my: 30vh;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; color: var(--text); font: 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(144, 0, 1, .2), transparent 60%),
    radial-gradient(900px 520px at -10% 25%, rgba(255, 32, 40, .1), transparent 60%),
    var(--bg);
  background-attachment: fixed; min-height: 100vh; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; letter-spacing: -.005em; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(144, 0, 1, .35); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(213, 208, 210, .5); background-clip: padding-box; }
.mut { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); }
.cap { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 10.5px; margin-bottom: 8px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* strati di sfondo */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity .6s; }
body.in-dash #fx { opacity: .55; }
#glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(213, 208, 210, .075), transparent 70%); }
#app { position: relative; z-index: 1; }
#boot { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; pointer-events: none; transition: opacity .5s, visibility .5s; }
#boot.done { opacity: 0; visibility: hidden; }
#boot .bt { display: flex; flex-direction: column; align-items: center; gap: 18px; font: 600 11px var(--mono); letter-spacing: .3em; color: var(--cyan); text-shadow: var(--glow-c); }
#boot svg { width: 74px; height: 74px; filter: drop-shadow(0 0 16px var(--cyan)) drop-shadow(0 0 34px var(--pink)); animation: flick 1s steps(1) both; }
#boot .bl { width: 180px; height: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; border-radius: 2px; }
#boot .bl i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: load .9s cubic-bezier(.6, 0, .2, 1) both; box-shadow: var(--glow-c); }
@keyframes load { from { transform: scaleX(0); } }
@keyframes flick { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; } 34% { opacity: .4; } 40%, 100% { opacity: 1; } }

/* entrata delle pagine e comparsa allo scorrimento */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.content > *, .pick > *, .pub-docs > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.content > *:nth-child(2) { animation-delay: .05s; } .content > *:nth-child(3) { animation-delay: .1s; } .content > *:nth-child(4) { animation-delay: .15s; } .content > *:nth-child(n+5) { animation-delay: .2s; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* pulsanti */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 11px; padding: 8px 15px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; }
.btn:hover { border-color: var(--cyan); box-shadow: var(--glow-c); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.pri { border: 0; color: #FFFFFF; font-weight: 800; background: linear-gradient(90deg, #900001, #FF2028, #ff5a5f, #FF2028, #900001); background-size: 200% 100%; animation: sheen 6s linear infinite; box-shadow: 0 0 22px rgba(255, 32, 40, .5), 0 0 44px rgba(213, 208, 210, .2); }
.btn.pri:hover { box-shadow: 0 0 30px rgba(255, 32, 40, .7), 0 0 70px rgba(213, 208, 210, .4); }
@keyframes sheen { to { background-position: 200% 0; } }
.btn.neo { background: rgba(213, 208, 210, .05); border-color: rgba(213, 208, 210, .5); color: var(--cyan); text-shadow: 0 0 10px rgba(213, 208, 210, .6); }
.btn.neo:hover { background: rgba(213, 208, 210, .12); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 14px 24px; font-size: 15.5px; border-radius: 14px; }

/* barra in alto */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 60px; padding: 0 22px; background: rgba(5, 4, 10, .6); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .7; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--disp); letter-spacing: .01em; }
.brand .logo { display: grid; filter: drop-shadow(0 0 8px rgba(213, 208, 210, .7)); }
.topnav { display: flex; gap: 18px; color: var(--muted); font-weight: 600; }
.topnav a { position: relative; padding: 4px 0; }
.topnav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--cyan); box-shadow: var(--glow-c); transition: right .25s; }
.topnav a:hover { color: var(--text); } .topnav a:hover::after { right: 0; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(182, 255, 60, .4); padding: 4px 10px; border-radius: 999px; text-shadow: 0 0 10px rgba(182, 255, 60, .6); }
.demo-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ============ HOME ============ */
.land { max-width: 1240px; margin: 0 auto; padding: 0 22px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 30px; align-items: center; min-height: calc(100vh - 60px); padding: 30px 0 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 600 11.5px var(--mono); letter-spacing: .06em; color: var(--cyan); border: 1px solid rgba(213, 208, 210, .35); background: rgba(213, 208, 210, .06); padding: 6px 13px; border-radius: 999px; margin-bottom: 26px; }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(213, 208, 210, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(213, 208, 210, 0); } 100% { box-shadow: 0 0 0 0 rgba(213, 208, 210, 0); } }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; font-weight: 700; margin-bottom: 24px; text-wrap: balance; }
.hero h1 > span { display: block; overflow-wrap: break-word; }
.hero h1 .l2 { color: #fff; }
.neon { color: #ffd0d2; text-shadow: 0 0 10px rgba(255, 32, 40, .9), 0 0 34px rgba(255, 32, 40, .6); animation: tube 6s infinite; font-variant-numeric: tabular-nums; }
@keyframes tube { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: .55; } 43% { opacity: 1; } 47% { opacity: .3; } 48% { opacity: 1; } 82% { opacity: 1; } 83% { opacity: .7; } 84% { opacity: 1; } }
.hero h1 .l3 { color: var(--cyan); text-shadow: 0 0 26px rgba(213, 208, 210, .35); }
.hero p { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 34px; flex-wrap: wrap; }
.hero-cta .arr { transition: transform .2s; } .hero-cta .btn:hover .arr { transform: translateX(4px); }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 700 32px var(--disp); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero-stats span { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* orbita dei moduli */
.hero-orb { display: grid; place-items: center; perspective: 1100px; }
.orbit { --u: clamp(.58px, .17vw, 1px); position: relative; width: calc(540 * var(--u)); aspect-ratio: 1; transition: transform .25s ease-out; }
.orb-core { position: absolute; inset: 0; margin: auto; width: calc(132 * var(--u)); height: calc(132 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3C0001, #110D10 72%); box-shadow: 0 0 0 1px rgba(213, 208, 210, .6), 0 0 44px rgba(213, 208, 210, .5), 0 0 130px rgba(255, 32, 40, .5), inset 0 0 34px rgba(144, 0, 1, .7); animation: breathe 4s ease-in-out infinite; z-index: 2; }
.orb-core svg { width: 56%; height: 56%; filter: drop-shadow(0 0 10px var(--cyan)); }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(255, 32, 40, .7), 0 0 60px rgba(255, 32, 40, .6), 0 0 160px rgba(213, 208, 210, .35), inset 0 0 34px rgba(144, 0, 1, .7); } }
.ring { position: absolute; inset: 0; margin: auto; width: calc(var(--d) * var(--u)); height: calc(var(--d) * var(--u)); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 22%, transparent), inset 0 0 22px color-mix(in srgb, var(--c) 12%, transparent); animation: spin var(--t) linear infinite; }
.ring.dsh { border-style: dashed; }
.ring.rev { animation-direction: reverse; }
.ring i { position: absolute; top: 50%; left: 50%; width: calc(44 * var(--u)); height: calc(44 * var(--u)); margin: calc(-22 * var(--u)); transform: rotate(var(--a)) translateX(calc(var(--d) / 2 * var(--u))); }
.ring i span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 30%; background: #110D10; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); animation: unspin var(--t) linear infinite; }
.ring.rev i span { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }

/* nastro dei moduli */
.mq { overflow: hidden; padding: 6px 0; margin: 0 -22px 20px; display: flex; flex-direction: column; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; gap: 10px; width: max-content; animation: slide 260s linear infinite; }
.mq-row.rev { animation-direction: reverse; }
.mq:hover .mq-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.mq a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 13px; white-space: nowrap; transition: border-color .2s, box-shadow .2s, color .2s; }
.mq a:hover { border-color: var(--pink); box-shadow: var(--glow-p); color: #fff; }

/* sezioni */
.sec { padding: 80px 0 20px; }
.sec-h { max-width: 720px; margin-bottom: 34px; }
.kicker { font: 700 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--pink); text-shadow: 0 0 12px rgba(255, 32, 40, .7); margin-bottom: 14px; display: block; }
.sec-h h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.sec-h h2 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 22px rgba(213, 208, 210, .6); }
.sec-h p { color: var(--muted); font-size: 16px; margin: 0; }

/* dimostrazione dal vivo */
.live { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; }
.live-steps { display: flex; flex-direction: column; gap: 6px; }
.live-steps div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; color: var(--faint); font-weight: 600; transition: all .35s; }
.live-steps div.on { color: #fff; border-color: rgba(213, 208, 210, .35); background: rgba(213, 208, 210, .07); box-shadow: var(--glow-c), inset 0 0 20px rgba(213, 208, 210, .06); transform: translateX(8px); }
.live-steps div.on .ico { color: var(--cyan); }
.dc-win { position: relative; background: var(--dc-bg); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(213, 208, 210, .35), 0 0 50px rgba(213, 208, 210, .18), 0 0 120px rgba(255, 32, 40, .16), 0 40px 80px rgba(0, 0, 0, .6); }
.dc-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid rgba(0, 0, 0, .35); font-weight: 700; color: #f2f3f5; }
.dc-head span { color: #80848e; font-size: 20px; line-height: 1; }
.dc-head em { margin-left: auto; font: 600 10.5px var(--mono); font-style: normal; color: #949ba4; letter-spacing: .1em; }
.dc-feed { height: 430px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; }
.dc-feed .dc-msg { animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dc-btn { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 4px; background: #5865f2; color: #fff; font-weight: 600; font-size: 13px; }
.dc-btn.green { background: #248046; }

/* discord: messaggi, embed (anche nell'anteprima della dashboard) */
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.dc-msg p { margin: 2px 0 0; color: #dbdee1; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; display: grid; place-items: center; font-weight: 700; overflow: hidden; color: #fff; }
.dc-av.bot { background: #110D10; box-shadow: 0 0 0 1px rgba(213, 208, 210, .5), 0 0 12px rgba(213, 208, 210, .4); }
.dc-av.mc { border-radius: 6px; background: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.dc-av.mc svg.mcface { width: 100%; height: 100%; }
.dc-av img { width: 100%; height: 100%; object-fit: cover; }
.dc-av svg { width: 24px; height: 24px; }
.dc-name { font-weight: 600; color: #f2f3f5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tagbot { font: 600 10px var(--ui); background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.ment { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.embed { margin-top: 6px; display: flex; gap: 14px; background: var(--dc-embed); border-left: 4px solid var(--ec, #5865f2); border-radius: 4px; padding: 10px 14px 12px 12px; max-width: 520px; color: #dbdee1; }
.embed .eb { min-width: 0; flex: 1; }
.embed .et { font-weight: 700; color: #f2f3f5; margin-bottom: 4px; overflow-wrap: anywhere; }
.embed .ed { font-size: 14px; overflow-wrap: anywhere; }
.embed .ef { font-size: 12px; color: #b5bac1; margin-top: 8px; }
.embed .ei { display: block; max-width: 100%; border-radius: 4px; margin-top: 10px; }
.embed .eth { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex: none; }
.embed .eth.av { border-radius: 50%; background: #5865f2; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; }
.dc-t { color: #dbdee1; margin-top: 2px; overflow-wrap: anywhere; }
.dq { display: block; border-left: 4px solid #4e5058; padding-left: 10px; }
.dc-prev code, .embed code { background: #1e1f22; padding: 1px 4px; border-radius: 3px; font: 12.5px var(--mono); }
.dc-prev pre { background: #1e1f22; padding: 8px; border-radius: 4px; font: 12.5px var(--mono); white-space: pre-wrap; margin: 4px 0; }
.dc-prev a, .embed a { color: #00a8fc; }

/* carte con bagliore che segue il mouse */
.gl { position: relative; isolation: isolate; }
.gl::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--lx, 50%) var(--ly, 50%), rgba(213, 208, 210, .5), rgba(255, 32, 40, .28) 45%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; pointer-events: none; }
.gl:hover::before { opacity: 1; }

/* categorie */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.catc { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: transform .25s, background .25s; overflow: hidden; }
.catc:hover { transform: translateY(-4px); background: var(--panel-2); }
.catc .tile { margin-bottom: 12px; transition: transform .25s; }
.catc:hover .tile { transform: scale(1.1); }
.catc b { font-size: 15px; }
.catc span.n { font: 600 11.5px var(--mono); color: var(--muted); }

/* minecraft */
.mc-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; margin-top: 90px; padding: 44px; border-radius: 24px; background: linear-gradient(135deg, rgba(61, 255, 168, .08), rgba(213, 208, 210, .04)); border: 1px solid rgba(61, 255, 168, .3); box-shadow: 0 0 60px rgba(61, 255, 168, .08), inset 0 0 60px rgba(61, 255, 168, .04); }
.mc-band .kicker { color: var(--ok); text-shadow: 0 0 12px rgba(61, 255, 168, .7); }
.mc-band h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.mc-band p { margin: 0 0 22px; font-size: 15.5px; }
.mc-band .btn { border-color: rgba(61, 255, 168, .5); color: var(--ok); }
.mc-band .btn:hover { box-shadow: 0 0 18px rgba(61, 255, 168, .5); border-color: var(--ok); }
.mc-card { background: #06120c; border: 1px solid rgba(61, 255, 168, .45); border-radius: 16px; padding: 20px; font-family: var(--mono); box-shadow: 0 0 34px rgba(61, 255, 168, .2); }
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: blink 1.6s infinite; }
.mc-n { margin: 12px 0; } .mc-n b { font: 800 40px var(--disp); color: var(--ok); text-shadow: 0 0 20px rgba(61, 255, 168, .7); margin-right: 6px; font-variant-numeric: tabular-nums; }
.mc-heads { display: flex; gap: 5px; margin-bottom: 14px; }
.mc-heads span { width: 28px; height: 28px; border-radius: 4px; overflow: hidden; display: grid; place-items: center; font-size: 11px; color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s; }
.mc-heads span:hover { transform: translateY(-2px); }
.mc-heads span:last-child { background: #0f2a1c; box-shadow: none; width: auto; padding: 0 6px; color: var(--ok); }
.mcface { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mc-chat .mh { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.mc-chat { font-size: 12.5px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; background: rgba(0, 0, 0, .45); padding: 12px; border-radius: 10px; height: 104px; overflow: hidden; }
.mc-chat div { animation: pop .4s both; }
.mc-chat .d { color: #8ea1ff; } .mc-chat .g { color: var(--ok); }

/* tre punti forti */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio .tc { padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.trio .tc .tile { margin-bottom: 16px; }
.trio .tc b { font: 700 19px var(--disp); display: block; margin-bottom: 8px; }
.trio .tc p { margin: 0; color: var(--muted); }

/* chiusura */
.final { text-align: center; padding: 110px 0 70px; position: relative; }
.final h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; font-weight: 700; margin-bottom: 30px; }
.final h2 span { color: var(--pink); text-shadow: 0 0 30px rgba(255, 32, 40, .5); }
.foot { text-align: center; padding: 26px 0 10px; border-top: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .08em; color: var(--faint); }

/* ============ SCELTA SERVER ============ */
.pick { max-width: 1040px; margin: 0 auto; padding: 60px 22px; }
.pick h1 { font-size: clamp(28px, 4vw, 44px); }
.pick > p { margin: 10px 0 34px; max-width: 620px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; perspective: 1000px; }
.gcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; transition: transform .2s ease-out, background .2s; color: inherit; }
.gcard:hover { background: var(--panel-2); }
.gcard .btn { margin-top: 12px; }
.gcard.add { border-style: dashed; background: transparent; }
.gicon { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font: 700 24px var(--disp); background: var(--gc, var(--violet)); color: #fff; flex: none; box-shadow: 0 0 26px color-mix(in srgb, var(--gc, var(--violet)) 65%, transparent); }
.gicon.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; box-shadow: 0 0 12px color-mix(in srgb, var(--gc, var(--violet)) 60%, transparent); }
.gicon.plus { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: 30px; box-shadow: none; }

/* ============ DASHBOARD ============ */
.dash { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; background: rgba(8, 6, 18, .72); backdrop-filter: blur(18px); border-right: 1px solid var(--line); padding: 14px 10px 40px; }
.gsw { position: relative; margin-bottom: 10px; }
.gsw-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.gsw-btn:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.gsw-n { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsw-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; background: #120d26; border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), var(--glow-c); }
.gsw-menu a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.gsw-menu a:hover, .gsw-menu a.on { background: var(--panel-3); }
.srch input { margin-bottom: 8px; }
.sl { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s, padding .15s; }
.sl:hover { background: rgba(144, 0, 1, .12); color: var(--text); padding-left: 13px; }
.sl.on { background: linear-gradient(90deg, rgba(213, 208, 210, .16), rgba(213, 208, 210, 0)); color: #fff; font-weight: 700; }
.sl.on::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.si { width: 26px; height: 26px; display: grid; place-items: center; flex: none; color: var(--muted); } .sl.on .si { color: var(--cyan); }
.sn { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .12); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 9px var(--ok); }
.sgroup .sh { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; padding: 9px 10px; font-size: 13.5px; color: var(--muted); font-weight: 700; border-radius: 8px; }
.sgroup .sh:hover, .sgroup.open .sh { color: var(--text); }
.sgroup .sh .car { display: grid; transition: transform .2s; color: var(--faint); }
.sgroup.open .sh .car { transform: rotate(90deg); color: var(--cyan); }
.sht { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc { font: 10.5px var(--mono); color: var(--faint); }
.sitems { display: none; padding-left: 6px; margin: 2px 0 6px 16px; border-left: 1px solid var(--line); }
.sgroup.open .sitems, .snav.searching .sitems { display: block; animation: rise .25s both; }
.content { padding: 30px 34px 130px; max-width: 1200px; width: 100%; }
.mob-menu { display: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ov-bot { display: flex; align-items: center; gap: 16px; }
.ov-bot p { margin: 4px 0 0; }
.bav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #0b0916; overflow: hidden; }
.bav.def { box-shadow: 0 0 0 1px rgba(213, 208, 210, .55), 0 0 16px rgba(213, 208, 210, .4); }
.bav.sm { width: 32px; height: 32px; } .bav.sm svg { width: 20px; }
.bav.lg { width: 62px; height: 62px; } .bav.lg svg { width: 36px; height: 36px; }
.bav.xl { width: 84px; height: 84px; border: 6px solid #111214; } .bav.xl svg { width: 44px; height: 44px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: .8; }
.stat span { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stat b { font: 700 30px var(--disp); margin-top: 2px; }
.stat small { font-size: 13px; color: var(--faint); }
.steps { margin-bottom: 30px; }
.bar { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 99px; margin: 12px 0 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; box-shadow: var(--glow-c); transition: width .6s; }
.step { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; transition: background .15s, padding .15s; }
.step:hover { background: rgba(144, 0, 1, .12); padding-left: 12px; }
.step .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; }
.step.ok .ck { background: var(--ok); border-color: var(--ok); color: #03170d; box-shadow: 0 0 10px var(--ok); }
.step.ok { color: var(--muted); text-decoration: line-through; }
.step .go { margin-left: auto; color: var(--cyan); opacity: .5; }
.catalog { margin-top: 8px; }
.cat-head { margin-bottom: 14px; flex-wrap: wrap; }
.cat-head input { max-width: 400px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
#catF { margin-bottom: 22px; }
#catF .sep { width: 1px; background: var(--line-2); margin: 0 4px; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--cyan); color: var(--text); }
.chip.on { border-color: var(--cyan); color: #04121a; background: var(--cyan); box-shadow: var(--glow-c); }
.ov-cat { margin-bottom: 26px; }
.ov-cat h3 { display: flex; align-items: center; gap: 10px; font: 700 17px var(--disp); margin: 0 0 12px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, background .2s; }
.mcard:hover { transform: translateY(-3px); background: var(--panel-2); }
.mcard.on { border-color: rgba(213, 208, 210, .35); box-shadow: inset 0 0 24px rgba(213, 208, 210, .05); }
.mc-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 16px; height: 100%; }
.mc-link .tile { margin-bottom: 10px; }
.mc-link b { padding-right: 0; line-height: 1.3; }
.mcard .sw { position: absolute; top: 14px; right: 14px; }
.badge { font: 700 9.5px var(--mono); padding: 2px 6px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; letter-spacing: .04em; text-transform: uppercase; }
.badge.hot { color: #ffb14a; background: rgba(255, 150, 40, .12); }
.badge.new { color: var(--pink); background: rgba(255, 32, 40, .12); }
span.core { font: 700 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(182, 255, 60, .35); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.mcard span.core { position: absolute; top: 14px; right: 14px; }

/* interruttore */
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 40px; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .1); position: relative; transition: background .2s, box-shadow .2s; flex: none; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #b9b2d6; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.sw input:checked + i { background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: var(--glow-c); }
.sw input:checked + i::after { transform: translateX(18px); background: #fff; }
.sw input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sw.big span { font-weight: 700; }

/* pagina modulo */
.mhead { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.mhead p { margin: 6px 0 0; }
.crumb { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 700; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--cyan); border-color: var(--cyan); text-shadow: 0 0 12px rgba(213, 208, 210, .6); }
.off .form { opacity: .6; }
.offnote { padding: 11px 15px; border-radius: 11px; background: rgba(255, 200, 61, .07); border: 1px solid rgba(255, 200, 61, .3); color: var(--warn); margin-bottom: 16px; font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form > .fields { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.fld { min-width: 0; }
.fld.wide, .fld.t-toggle { grid-column: 1 / -1; }
.lbl { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
.lbl.small { font-size: 11.5px; margin: 11px 0 5px; color: var(--muted); }
.help { font-size: 12px; color: var(--faint); margin-top: 6px; }
.cnt { font: 11px var(--mono); color: var(--faint); text-align: right; margin-top: 3px; }
input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea { width: 100%; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; min-height: 40px; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
textarea { resize: vertical; min-height: 66px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan) !important; box-shadow: 0 0 0 3px rgba(213, 208, 210, .14), var(--glow-c); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.inp-w { position: relative; }
.inp-w input, .inp-w textarea { padding-right: 42px; }
.var-b { position: absolute; top: 7px; right: 7px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 7px; border: 1px solid rgba(255, 32, 40, .4); background: rgba(255, 32, 40, .08); color: var(--pink); font: 700 11px var(--mono); cursor: pointer; transition: box-shadow .2s; }
.var-b:hover { box-shadow: var(--glow-p); }
.color-w { display: flex; gap: 8px; }
.color-w input[type=color] { width: 46px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; flex: none; }
.multi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 4px; }
.mchip, .tchip { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-3); border: 1px solid var(--line-2); padding: 2px 4px 2px 9px; border-radius: 999px; font-size: 13px; }
.mchip .rdot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc, var(--muted)); box-shadow: 0 0 8px var(--rc, transparent); }
.mchip button, .tchip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; font-size: 15px; line-height: 1; }
.mchip button:hover, .tchip button:hover { color: var(--bad); }
.madd { width: auto !important; min-height: 30px !important; padding: 4px 8px !important; border-style: dashed !important; flex: 1 1 160px; max-width: 220px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); cursor: text; }
.tags .tchips { display: contents; }
.tags input { border: 0 !important; box-shadow: none !important; flex: 1 1 140px; width: auto !important; min-height: 28px !important; padding: 2px 6px !important; background: transparent !important; }
.emo-w { display: flex; gap: 8px; }
.emo-btn { width: 44px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 18px; transition: box-shadow .2s, border-color .2s; }
.emo-btn:hover { border-color: var(--pink); box-shadow: var(--glow-p); }
.img-w { display: flex; gap: 14px; align-items: center; }
.img-p { width: 84px; height: 84px; border-radius: 50%; background: var(--field); border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; text-align: center; padding: 4px; }
.img-w.banner .img-p { width: 220px; height: 78px; border-radius: 12px; }
.img-w:not(.round):not(.banner) .img-p { border-radius: 12px; }
.img-p img { width: 100%; height: 100%; object-fit: cover; }
.img-a { display: flex; gap: 8px; flex-wrap: wrap; }

/* editor messaggio */
.msged { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5, 4, 12, .45); }
.me-form .row-sw { margin: 12px 0 2px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-hint { margin-top: 10px; }
.me-prev { min-width: 0; }
.me-prev .cap { color: var(--cyan); }
.dc-prev { background: var(--dc-bg); border-radius: 12px; padding: 14px; position: sticky; top: 76px; box-shadow: 0 0 0 1px rgba(213, 208, 210, .3), 0 0 30px rgba(213, 208, 210, .12); }
.dc-c { min-width: 0; }

/* elenchi */
.lst .items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.empty { padding: 14px; border: 1px dashed var(--line-2); border-radius: 11px; text-align: center; }
.icard { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(5, 4, 12, .45); transition: border-color .2s, box-shadow .2s; }
.icard.open { border-color: rgba(255, 32, 40, .5); box-shadow: 0 0 22px rgba(255, 32, 40, .12); }
.ih { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.it { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; text-align: left; padding: 6px 4px; }
.isum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.car { color: var(--faint); display: grid; } .car .ico { width: 15px; height: 15px; }
.ia { display: flex; gap: 2px; }
.ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.ib:hover:not(:disabled) { background: var(--panel-3); color: var(--text); }
.ib:disabled { opacity: .3; cursor: default; }
.ib.del:hover { color: var(--bad); }
.ib-body { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.ib-body > .fields { padding-top: 12px; }
.irow { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(5, 4, 12, .45); }
.irow > .fields { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.irow > .fields > .fld { flex: 1 1 150px; grid-column: auto; }
.irow > .fields > .fld.t-emoji, .irow > .fields > .fld.t-toggle { flex: 0 0 auto; }
.irow > .fields > .fld.t-toggle { align-self: center; }
.irow .lbl { font-size: 11.5px; color: var(--muted); }
.add-b { border-style: dashed; color: var(--cyan); } .add-b .ico { width: 16px; height: 16px; }

/* anteprima profilo */
.idprev { display: grid; grid-template-columns: 340px 1fr; gap: 26px; }
.pcard { width: 100%; max-width: 340px; background: #111214; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(213, 208, 210, .3), 0 0 34px rgba(213, 208, 210, .14); }
.pc-ban { height: 120px; background: var(--pc, #5865f2); background-size: cover; background-position: center; }
.pc-av { position: relative; margin: -44px 0 0 16px; width: 84px; }
.pc-av .st { position: absolute; right: 2px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: #23a55a; border: 4px solid #111214; }
.pc-body { padding: 8px 16px 16px; }
.pc-n { font-size: 20px; }
.pc-sec { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.mlist { background: #2b2d31; border-radius: 12px; padding: 10px; max-width: 260px; }
.ml-h { font-size: 11px; font-weight: 700; color: #949ba4; letter-spacing: .02em; margin-bottom: 6px; }
.ml-r { display: flex; gap: 10px; align-items: center; padding: 4px; border-radius: 6px; }

/* popup */
.pop { position: absolute; z-index: 100; background: #120d26; border: 1px solid rgba(255, 32, 40, .5); border-radius: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), var(--glow-p); padding: 6px; max-height: 320px; overflow: auto; animation: rise .18s both; }
.pop.vars button { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.pop.vars button:hover { background: var(--panel-3); }
.pop.vars code { color: var(--pink); font: 12px var(--mono); }
.pop.vars span { color: var(--muted); font-size: 12.5px; }
.pop.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.pop.emojis button { border: 0; background: none; font-size: 20px; padding: 5px; border-radius: 8px; cursor: pointer; transition: transform .12s; }
.pop.emojis button:hover { background: var(--panel-3); transform: scale(1.25); }

/* barra salvataggio e avvisi */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 20px; background: rgba(8, 6, 18, .92); backdrop-filter: blur(14px); border: 1px solid rgba(255, 32, 40, .55); border-radius: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 32, 40, .3); animation: up .3s cubic-bezier(.2, 1.3, .4, 1); width: min(640px, calc(100vw - 32px)); justify-content: space-between; font-weight: 700; }
.savebar > span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); margin-right: 10px; animation: blink 1.2s infinite; }
.savebar > div { display: flex; gap: 8px; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }
.toast { position: fixed; top: 74px; left: 50%; transform: translate(-50%, -12px); z-index: 200; background: rgba(8, 6, 18, .95); border: 1px solid var(--cyan); box-shadow: var(--glow-c); padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--bad); box-shadow: 0 0 18px rgba(255, 77, 109, .5); color: #ffc3cd; }

/* documentazione e attività */
.docs { display: flex; flex-direction: column; gap: 14px; }
.pub-docs { max-width: 920px; margin: 0 auto; padding: 40px 22px 70px; }
.docs > h1 { font-size: 30px; }
.doc .lead { color: var(--muted); margin: 4px 0 10px; }
.doc-b { line-height: 1.7; color: #dcd6f2; }
.doc-b code { background: rgba(213, 208, 210, .08); padding: 1px 6px; border-radius: 5px; font: 12.5px var(--mono); color: var(--cyan); }
.doc details { margin-top: 12px; }
.doc summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.flist { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.vars-t { display: grid; grid-template-columns: auto 1fr auto; gap: 7px 16px; margin-top: 10px; font-size: 13px; }
.vars-t code { color: var(--pink); font-family: var(--mono); }
.list-act { display: flex; flex-direction: column; }
.act { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }

/* telefono e tablet */
@media (max-width: 1100px) {
  .msged { grid-template-columns: 1fr; }
  .dc-prev { position: static; }
  .idprev { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .live { grid-template-columns: 1fr; }
  .live-steps { flex-direction: row; flex-wrap: wrap; }
  .live-steps div { padding: 7px 11px; font-size: 12.5px; }
  .live-steps div.on { transform: none; }
}
@media (max-width: 860px) {
  .top { padding: 0 14px; gap: 10px; }
  .topnav, .top .btn { display: none; }
  .land { padding: 0 16px 30px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 34px 0 30px; gap: 20px; }
  .hero p { font-size: 15.5px; }
  .hero-stats { gap: 24px; }
  .mq { margin: 0 -16px 10px; }
  .sec { padding: 56px 0 10px; }
  .dc-feed { height: 380px; padding: 12px; }
  .mc-band { grid-template-columns: 1fr; padding: 22px; gap: 24px; margin-top: 56px; }
  .trio { grid-template-columns: 1fr; }
  .final { padding: 70px 0 50px; }
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; top: 60px; left: 0; bottom: 0; width: min(310px, 88vw); z-index: 40; transform: translateX(-100%); transition: transform .25s; height: auto; box-shadow: 20px 0 50px rgba(0, 0, 0, .6); background: rgba(8, 6, 18, .96); }
  .side.open { transform: none; }
  .mob-menu { display: inline-flex; position: fixed; left: 16px; bottom: 16px; z-index: 45; border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-c), 0 8px 24px rgba(0, 0, 0, .6); background: rgba(8, 6, 18, .95); }
  .content { padding: 22px 16px 150px; }
  .fields { grid-template-columns: 1fr; }
  .form > .fields { padding: 15px; }
  .g2 { grid-template-columns: 1fr; }
  .mhead { flex-wrap: wrap; }
  .savebar { bottom: 70px; flex-direction: column; align-items: stretch; gap: 8px; }
  .savebar > div { justify-content: flex-end; }
  .vars-t { grid-template-columns: auto 1fr; }
  .vars-t span.mut { display: none; }
  .irow { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- icone e riquadri colorati per categoria ---------- */
.ico { width: 20px; height: 20px; flex: none; display: block; }
.tile { --cc: var(--cyan); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 32%, transparent); }
.tile.xs { width: 26px; height: 26px; border-radius: 8px; } .tile.xs .ico { width: 15px; height: 15px; }
.tile.sm { width: 32px; height: 32px; border-radius: 10px; } .tile.sm .ico { width: 17px; height: 17px; }
.tile.lg { width: 48px; height: 48px; border-radius: 14px; } .tile.lg .ico { width: 24px; height: 24px; }
.tile.xl { width: 60px; height: 60px; border-radius: 18px; box-shadow: 0 0 26px color-mix(in srgb, var(--cc) 30%, transparent); } .tile.xl .ico { width: 30px; height: 30px; }
.sl .tile.xs { background: none; border-color: transparent; opacity: .85; }
.sl.on .tile.xs, .sl:hover .tile.xs { opacity: 1; background: color-mix(in srgb, var(--cc) 14%, transparent); }
.mcard:hover .tile, .catc:hover .tile { box-shadow: 0 0 18px color-mix(in srgb, var(--cc) 40%, transparent); }
.mq a .ico { width: 16px; height: 16px; color: var(--cc, var(--cyan)); }
.ring i span .ico { width: 52%; height: 52%; }
.live-steps .ico { width: 19px; height: 19px; color: var(--faint); transition: color .35s; }
.btn .ico { width: 17px; height: 17px; }
.btn.lg .ico { width: 19px; height: 19px; }
.hero-cta .arr { transition: transform .2s; }
.step .ck .ico { width: 13px; height: 13px; } .step .go .ico { width: 16px; height: 16px; }
.doc-t { display: flex; align-items: center; gap: 12px; }
.ib .ico { width: 16px; height: 16px; }
.var-b .ico { width: 15px; height: 15px; }
.mob-menu .ico { width: 18px; height: 18px; }

/* filtri del catalogo: pochi, chiari */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; min-height: 36px; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #04121a; background: var(--cyan); box-shadow: var(--glow-c); }
.filters select { width: auto; min-width: 220px; }
.cat-head { align-items: flex-end; }
.cat-head h2 { font-size: 22px; }

/* intestazioni della dashboard */
.ov-head h1, .mhead h1 { font-size: 30px; line-height: 1.15; }
.mcard .sw, .mcard span.core { top: 18px; right: 16px; }
.mc-link > b { display: block; padding-right: 0; }
.mc-link .tile + b { margin-top: 0; }
.sec-h h2 { font-weight: 700; }
.land { overflow-x: clip; }
.hero-orb { min-width: 0; }
@media (max-width: 860px) {
  .hero h1 > span { white-space: normal; }
  .orbit { --u: clamp(.5px, .155vw, 1px); }
  .filters select { width: 100%; }
}
.filters { align-items: center; }
.filters select { min-height: 46px; }
@media (max-width: 860px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 7px 10px; }
}
@media (max-width: 860px) { .mhead > .sw { flex-basis: 100%; } .mhead h1 { font-size: 26px; } }

/* scelta della lingua */
.lang-b { gap: 6px; font: 700 12px var(--mono); letter-spacing: .06em; min-height: 34px; }
.lang-b .ico { width: 16px; height: 16px; color: var(--cyan); }
.top .lang-b { display: inline-flex; }
.pop.langs { border-color: rgba(213, 208, 210, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), var(--glow-c); }
.pop.langs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 600; text-align: left; }
.pop.langs button:hover { background: var(--panel-3); }
.pop.langs button.on { color: var(--cyan); }
.pop.langs .ico { width: 16px; height: 16px; }
:lang(zh) { --ui: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ru) h1, :lang(ru) h2, :lang(ru) h3 { letter-spacing: 0; }
:lang(ru) { --disp: 'Manrope', system-ui, sans-serif; }
:lang(zh) { --disp: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
:lang(ru) h1, :lang(ru) h2, :lang(ru) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-weight: 800; }

/* lingue con parole lunghe: titolo un po' più piccolo, così non spinge via l'orbita */
:lang(ru) .hero h1, :lang(de) .hero h1, :lang(fr) .hero h1, :lang(es) .hero h1 { font-size: clamp(34px, 4.6vw, 62px); }
:lang(zh) .hero h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.2; }

/* ARXON: banner dietro la home e logo nel nucleo dell'orbita */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -40px 0 0; z-index: -1; -webkit-mask: linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent); mask: linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent); background: linear-gradient(180deg, rgba(6,4,4,.35), var(--bg) 92%), url(img/banner.webp) center top / cover no-repeat; opacity: .75; pointer-events: none; }
.orb-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 0 30px rgba(255,32,40,.5)); }
.foot a { color: var(--pink); }

/* ARXON online: account, server da invitare, caricamento */
.me-b { gap: 8px; }
.me-b img { width: 22px; height: 22px; border-radius: 50%; }
.me-pop { display: flex; flex-direction: column; padding: 6px; min-width: 200px; }
.me-pop a, .me-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover { background: var(--panel-3); }
.gicon.img { background: none; box-shadow: 0 0 22px rgba(255, 32, 40, .35); overflow: hidden; }
.gicon.img img { width: 100%; height: 100%; object-fit: cover; }
.gcard.off { opacity: .85; }
.gcard.off .gicon { filter: grayscale(.6); }
.lnk { background: none; border: 0; color: var(--pink); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.loading { display: flex; align-items: center; gap: 14px; padding: 60px 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offnote.soon { border-color: rgba(213, 208, 210, .3); color: var(--muted); }
