/* voidz: tema unico "vuoto" (scuro, viola lavanda). Raggi: controlli 10px, schede 16px; solo badge/tag a pillola. */
:root {
  --bg: #07060b;
  --bg-2: #0b0912;
  --surface: #100e19;
  --surface-2: #171423;
  --surface-3: #1f1b2f;
  --line: rgba(196, 170, 255, 0.1);
  --line-2: rgba(196, 170, 255, 0.2);
  --text: #ece9f5;
  --muted: #9791ae;
  --faint: #6f6987;
  --accent: #a070c4;
  --accent-hi: #bb8fdd;
  --accent-lo: rgba(160, 112, 196, 0.16);
  --on-accent: #0b0912;
  --danger: #ff7a8a;
  --ok: #62d6a0;
  --warn: #e6b35c;
  --r-ctl: 10px;
  --r-card: 16px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grow { flex: 1; }
.ico { display: inline-grid; place-items: center; }

/* sfondo del vuoto */
body.void::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 50% -10%, rgba(160, 112, 196, 0.2), transparent 70%),
    radial-gradient(38% 34% at 92% 92%, rgba(80, 64, 210, 0.12), transparent 70%),
    var(--bg);
}
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- pulsanti ---------- */
.btn {
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 600 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(196, 170, 255, 0.34); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255, 122, 138, 0.35); background: transparent; }
.btn.danger:hover:not(:disabled) { background: rgba(255, 122, 138, 0.1); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover:not(:disabled) { background: #4752d6; border-color: #4752d6; }
.btn:focus-visible, .link:focus-visible, .navbtn:focus-visible, .sw:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .label { font-size: 13px; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--faint); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], input:not([type]), textarea, select {
  width: 100%; height: 42px; padding: 0 14px; color: var(--text); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line); border-radius: var(--r-ctl); font: 15px var(--sans); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 88px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
select { padding-right: 10px; }
input::placeholder, textarea::placeholder { color: #5b5573; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lo); }
input[type="color"] { width: 46px; height: 42px; padding: 3px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; padding: 0; background: none; border: 0; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
input.code { font: 700 22px var(--mono); letter-spacing: 0.5em; text-align: center; padding-left: 20px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: 14px; }

/* interruttore */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch .sw-t { display: grid; gap: 1px; }
.switch .sw-t b { font-weight: 600; font-size: 14px; }
.switch .sw-t span { font-size: 12.5px; color: var(--muted); }
.toggle { position: relative; flex: none; width: 42px; height: 24px; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background 0.2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #cfc6e6; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s; }
.toggle input:checked + i { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + i::after { transform: translateX(18px); background: #0b0912; }
.toggle input:focus-visible + i { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + i { opacity: 0.45; }

/* password con "Mostra" */
.pw { position: relative; }
.pw input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; background: transparent; border: 0; border-radius: 8px; color: var(--muted); font: 600 12px var(--sans); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

/* ---------- elementi comuni ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px var(--mono); background: var(--accent-lo); color: var(--accent-hi); white-space: nowrap; }
.pill.ok { background: rgba(98, 214, 160, 0.13); color: var(--ok); }
.pill.warn { background: rgba(230, 179, 92, 0.14); color: var(--warn); }
.pill.err { background: rgba(255, 122, 138, 0.13); color: var(--danger); }
.pill.mute { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.msg { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r-ctl); font-size: 13.5px; border: 1px solid; }
.msg.err { color: var(--danger); background: rgba(255, 122, 138, 0.08); border-color: rgba(255, 122, 138, 0.3); }
.msg.ok { color: var(--ok); background: rgba(98, 214, 160, 0.08); border-color: rgba(98, 214, 160, 0.3); }
.msg.info { color: var(--accent-hi); background: var(--accent-lo); border-color: rgba(160, 112, 196, 0.35); }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 11px 14px; border-radius: var(--r-ctl); background: var(--surface-3); border: 1px solid var(--line-2); font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.toast.ok { border-color: rgba(98, 214, 160, 0.4); }
.toast.err { border-color: rgba(255, 122, 138, 0.45); color: #ffd0d6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 404 ---------- */
.center-stage { min-height: 100dvh; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; justify-items: center; }
.nf-code { font: 700 clamp(72px, 16vw, 140px)/1 var(--sans); letter-spacing: -0.05em; color: var(--accent); }
.nf-text { color: var(--muted); }

/* ======================= HOME ======================= */
.nav {
  position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px); background: rgba(7, 6, 11, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.hero {
  max-width: 1240px; margin: 0 auto; min-height: calc(100dvh - 64px);
  padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 48px) 56px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero-copy h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.hero-copy h1 em { font-style: normal; color: var(--accent-hi); }
.hero-copy .lead { margin-top: 20px; max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.demo-wrap { position: relative; display: grid; justify-items: center; }
.demo {
  position: relative; width: min(100%, 440px); height: min(620px, 70dvh); border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line-2); transform: rotate(1.6deg);
  box-shadow: 0 40px 120px rgba(90, 50, 160, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.demo-wrap::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(160, 112, 196, 0.35), transparent 72%); filter: blur(30px); z-index: -1; }
.swatches { display: flex; gap: 12px; margin-top: 20px; align-items: center; justify-content: center; }
.swatches .label { margin-right: 4px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.15s; }
.sw:hover { transform: scale(1.12); }
.sw[aria-pressed="true"] { border-color: #fff; transform: scale(1.08); }

.section { max-width: 1240px; margin: 0 auto; padding: 88px clamp(16px, 4vw, 48px) 0; }
.section > h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.section > .lead2 { margin-top: 12px; color: var(--muted); max-width: 52ch; }

.bento { margin-top: 34px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; background: var(--surface); min-height: 260px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 650; }
.cell p { color: var(--muted); max-width: 40ch; }
.cell .vis { margin-top: auto; padding-top: 18px; }
.cell.a { grid-column: span 7; background: radial-gradient(70% 90% at 85% 110%, rgba(160, 112, 196, 0.34), transparent 70%), var(--surface); }
.cell.b { grid-column: span 5; }
.cell.c { grid-column: span 5; background: linear-gradient(180deg, rgba(160, 112, 196, 0.07), transparent 60%), var(--surface); }
.cell.d { grid-column: span 7; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  var(--surface); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.eq i { display: block; width: 7px; border-radius: 3px; background: var(--accent); height: var(--h, 30%); animation: eq 1.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes eq { from { height: 14%; } to { height: var(--h, 80%); } }
.mini-player { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); max-width: 340px; }
.mini-player .play { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.mini-player .t { display: grid; }
.mini-player .t b { font-size: 14px; }
.mini-player .t span { font: 12px var(--mono); color: var(--muted); }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch-grid .sw { width: 38px; height: 38px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-hi), rgba(160, 112, 196, 0.35)); height: var(--h); min-width: 6px; }
.bars-cap { margin-top: 10px; font: 12px var(--mono); color: var(--faint); display: flex; justify-content: space-between; }
.icon-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; max-width: 470px; }
.icon-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-ctl); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); color: var(--accent-hi); }

.pricing { margin-top: 34px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; max-width: 980px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border-color: rgba(160, 112, 196, 0.55); background: radial-gradient(80% 60% at 100% 0%, rgba(160, 112, 196, 0.2), transparent 70%), var(--surface); box-shadow: 0 0 60px rgba(160, 112, 196, 0.12); }
.plan h3 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.price { font: 700 46px/1 var(--sans); letter-spacing: -0.04em; }
.price small { font: 500 14px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: #cfc9e0; font-size: 14.5px; }
.plan li .ico { color: var(--accent-hi); margin-top: 2px; flex: none; }
.plan .btn { margin-top: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-ctl); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.note { font-size: 13px; color: var(--muted); }

.faq { margin-top: 30px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

.footer { max-width: 1240px; margin: 110px auto 0; padding: 32px clamp(16px, 4vw, 48px) 44px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ======================= LOGIN ======================= */
.shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: rgba(16, 14, 25, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 20px; padding: 30px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(160, 112, 196, 0.1); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.auth-card .sub strong { color: var(--text); word-break: break-all; font-weight: 600; }
.auth-card .switch-line { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-card .row { justify-content: space-between; margin: 0 0 14px; font-size: 13.5px; }
.cf-slot { display: flex; justify-content: center; margin-bottom: 14px; min-height: 0; }
.cf-placeholder { width: 100%; min-height: 65px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 14px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--r-ctl); background: rgba(0, 0, 0, 0.25); }

/* ======================= DASHBOARD ======================= */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr) 390px; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: rgba(9, 8, 15, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.side .brand { margin: 2px 6px 18px; }
.navbtn { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
.navbtn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.navbtn[aria-current="page"] { background: var(--accent-lo); color: var(--text); }
.navbtn .lock { margin-left: auto; color: var(--warn); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 6px; }
.userchip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-lo); color: var(--accent-hi); display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
.userchip b { display: block; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.userchip span { font: 12px var(--mono); color: var(--muted); }

.main { padding: 30px clamp(16px, 3vw, 44px) 110px; min-width: 0; }
.panel h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.panel .lead2 { margin: 6px 0 24px; color: var(--muted); max-width: 60ch; }
#nav { display: flex; flex-direction: column; gap: 4px; }
.group { margin-bottom: 18px; }
.group > h3 { font-size: 15px; font-weight: 650; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.urlbox { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-ctl); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font: 14px var(--mono); }
.urlbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-hi); }

.preview { position: sticky; top: 0; height: 100dvh; padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.preview-frame { position: relative; flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #07060b; }
.preview-frame .vp { position: absolute; inset: 0; min-height: 0; }
.preview-cap { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font: 12px var(--mono); }
.savebar { position: fixed; bottom: 0; left: 236px; right: 390px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 44px); background: rgba(9, 8, 15, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.savebar { flex-wrap: wrap; }
.savebar .state { color: var(--muted); font-size: 13.5px; }
.savebar .state.dirty { color: var(--warn); }
.mobile-only { display: none; }

/* elenco link */
.linkrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.22); margin-bottom: 8px; }
.linkrow .btns { display: flex; gap: 4px; }
.iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.iconbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.iconbtn.danger:hover:not(:disabled) { color: var(--danger); background: rgba(255, 122, 138, 0.1); }
.linkrow input, .linkrow select { height: 36px; }

/* media */
.quota { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 8px 0 4px; }
.quota i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--accent), var(--accent-hi)); border-radius: inherit; }
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.mitem { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.mitem .thumb { aspect-ratio: 1; display: grid; place-items: center; background: #0b0912; color: var(--accent-hi); }
.mitem .thumb img, .mitem .thumb video { width: 100%; height: 100%; object-fit: cover; }
.mitem .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font: 12px var(--mono); color: var(--muted); }
.mitem .pick { position: absolute; inset: 0; background: none; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.mitem.sel .pick { border-color: var(--accent); }
.mitem .del { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(7, 6, 11, 0.8); }

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 8px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--muted); font: 600 13px var(--sans); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.opt[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-lo); }
.opt:disabled { opacity: 0.5; cursor: not-allowed; }
.opt:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* premium / pagamento */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.planbtn { text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--text); cursor: pointer; display: grid; gap: 4px; font-family: var(--sans); }
.planbtn:hover { border-color: rgba(160, 112, 196, 0.6); }
.planbtn b { font-size: 15px; }
.planbtn .pr { font: 700 26px var(--sans); letter-spacing: -0.03em; }
.planbtn span { font-size: 13px; color: var(--muted); }
.pay { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.qr { width: 260px; height: 260px; border-radius: 14px; background: #fff; padding: 10px; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.copyline { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.copyline code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-ctl); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); font: 13.5px var(--mono); overflow-wrap: anywhere; }
.steps { display: grid; gap: 8px; margin-top: 14px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14px; }
.step .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.step.on { color: var(--text); }
.step.on .dot { border-color: var(--accent); background: var(--accent-lo); color: var(--accent-hi); }
.step.done .dot { border-color: var(--ok); background: rgba(98, 214, 160, 0.14); color: var(--ok); }

/* statistiche */
.big { font: 700 44px/1 var(--sans); letter-spacing: -0.04em; }
.statbars { display: flex; align-items: flex-end; gap: 5px; height: 150px; margin-top: 16px; }
.statbars i { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-hi), rgba(160, 112, 196, 0.3)); height: var(--h); min-height: 2px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl select { height: 32px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.mini { height: 30px; padding: 0 10px; margin-right: 6px; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 8px; font: 600 12px var(--sans); cursor: pointer; }
.mini:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.mini.danger { color: var(--danger); border-color: rgba(255, 122, 138, 0.35); }
.mini:disabled { opacity: 0.4; cursor: not-allowed; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1240px) {
  .app { grid-template-columns: 236px minmax(0, 1fr); }
  .preview { display: none; }
  .preview.open { display: flex; position: fixed; inset: 0; z-index: 90; height: 100dvh; padding: 16px; background: rgba(7, 6, 11, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .savebar { right: 0; }
  .mobile-only { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .demo-wrap { order: 2; }
  .demo { transform: none; height: 560px; }
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell.a, .cell.b, .cell.c, .cell.d { grid-column: auto; }
  .pricing { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .qr { width: min(260px, 100%); height: auto; aspect-ratio: 1; }
  .grid2 { grid-template-columns: 1fr; }
  .linkrow { grid-template-columns: 1fr 1fr; }
  .linkrow .btns { grid-column: 1 / -1; justify-content: flex-end; }
  .icon-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .brand, .side-foot .userchip { display: none; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; }
  #nav { flex-direction: row; gap: 2px; }
  .navbtn { width: auto; flex: none; height: 38px; }
  .navbtn span.t { display: none; }
  .navbtn[aria-current="page"] span.t { display: inline; }
  .savebar { left: 0; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .savebar .state { flex-basis: 100%; }
  .savebar .grow { display: none; }
  .savebar .btn { flex: 1; padding: 0 10px; }
  .main { padding-bottom: 160px; }
}
@media (max-width: 520px) {
  .auth-card { padding: 24px 18px; }
  .linkrow { grid-template-columns: 1fr; }
}
