/* ==========================================================================
   random.com — foglio di stile unico.
   Sistema: tema scuro permanente, un solo accento (lime acido), griglia a 12
   colonne implicita, bordi da 1px, tipografia tecnica (sans per la prosa,
   mono per i metadati). Nessuna dipendenza esterna.
   ========================================================================== */

:root {
  /* superfici */
  --bg:        #07080a;
  --bg-elev:   #0a0c10;
  --panel:     #0b0e12;
  --panel-2:   #0f1217;
  --line:      #191d24;
  --line-2:    #242a33;
  --line-3:    #333b46;

  /* testo */
  --fg:        #e9ecef;
  --fg-2:      #aab2bd;
  --fg-3:      #6d7683;
  --fg-4:      #4a525c;

  /* accento unico */
  --accent:      #c6f24d;
  --accent-soft: rgba(198, 242, 77, 0.12);
  --accent-line: rgba(198, 242, 77, 0.34);
  --accent-ink:  #0a0c05;

  /* dati (solo grafici e badge di contrasto) */
  --hi:  #8ef0c4;
  --mid: #f5d67b;
  --lo:  #f2817c;

  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --r: 3px;
  --w: 1240px;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
svg { width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* sfondo tecnico: griglia sottile + alone in alto */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 380px at 50% -8%, rgba(198, 242, 77, 0.07), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px) 0 0 / 88px 88px;
  mask-image: linear-gradient(to bottom, #000 0, #000 60vh, transparent 140vh);
}
main, header, footer, .topline { position: relative; z-index: 1; }

/* ------------------------------------------------------------- tipografia */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dim  { color: var(--fg-3); }
.h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h1.md { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; }
.h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
.h2.sm { font-size: clamp(19px, 1.8vw, 24px); }
.lede {
  color: var(--fg-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  max-width: 62ch;
  text-wrap: pretty;
}
.lede.sm { font-size: 15.5px; max-width: 54ch; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
  margin-bottom: var(--sp-4);
}
.eyebrow-dash { width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.note { font-size: 11px; line-height: 1.7; letter-spacing: 0.04em; max-width: 46ch; }

/* ------------------------------------------------------------------ guscio */
.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--sp-6); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ topline */
.topline {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(8px);
}
.topline-in {
  display: flex; align-items: center; gap: 12px;
  height: 30px;
  color: var(--fg-3);
  overflow: hidden;
  white-space: nowrap;
}
.topline .mono { font-size: 9.5px; letter-spacing: 0.12em; }
.topline-right { margin-left: auto; }
.bar { width: 1px; height: 10px; background: var(--line-2); flex: 0 0 1px; }
.pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s ease-out infinite;
  flex: 0 0 5px;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 242, 77, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(198, 242, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 242, 77, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ header */
.head {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
}
.head-in { display: flex; align-items: center; gap: var(--sp-6); height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--accent);
  background: linear-gradient(160deg, rgba(198,242,77,0.10), transparent 60%);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-text { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand-dot { color: var(--accent); }
.brand-digit { color: var(--accent); font-feature-settings: "tnum"; }
.brand-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3); white-space: nowrap;
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 12px; border-radius: var(--r);
  font-size: 13.5px; color: var(--fg-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--fg); background: var(--panel-2); }
.lang {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  transition: border-color .15s, color .15s;
}
.lang svg { width: 13px; height: 13px; }
.lang:hover { color: var(--fg); border-color: var(--line-3); }

/* -------------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero .h1 { margin-bottom: var(--sp-5); }
.hero .lede { margin-bottom: var(--sp-6); }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .18s, background .18s, border-color .18s;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
.btn:hover { box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-3); background: var(--panel-2); box-shadow: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }

/* pannello */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-2);
}
.led { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }

/* pannello statistiche */
.statpanel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.stat-k { color: var(--fg-3); font-size: 10px; }
.stat-v {
  font-size: 26px; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-v.sm { font-size: 15px; font-weight: 500; }
.spark { padding: 14px; }
.spark-head { display: flex; justify-content: space-between; font-size: 9.5px; margin-bottom: 10px; }
.spark-svg { height: 44px; color: var(--accent); }
.spark-empty { margin-top: 8px; font-size: 9.5px; }

/* ------------------------------------------------------------------ strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-elev); }
.strip-in {
  display: flex; align-items: center; gap: 18px;
  height: 40px; overflow: hidden; white-space: nowrap;
  justify-content: space-between;
}
.strip-in .mono { font-size: 9.5px; letter-spacing: .12em; }

/* --------------------------------------------------------------- sezioni */
.sec { padding: clamp(48px, 6vw, 88px) 0; }
.sec-alt { background: var(--bg-elev); border-block: 1px solid var(--line); }
.sec-tight { padding: clamp(32px, 4vw, 56px) 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.sec-note { padding-bottom: 6px; }
.sec .h2 { margin-top: 2px; }

/* ------------------------------------------------------------ griglia tool */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tool-card {
  display: flex; flex-direction: column; gap: var(--sp-5);
  padding: 20px 20px 16px;
  background: var(--panel);
  min-height: 186px;
  transition: background .16s;
  position: relative;
}
.tool-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.tool-card:hover { background: var(--panel-2); }
.tool-card:hover::after { transform: scaleX(1); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-idx { color: var(--fg-4); font-size: 10px; }
.card-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--fg-2); margin-top: -4px;
  transition: color .16s, border-color .16s;
}
.card-icon svg { width: 17px; height: 17px; }
.tool-card:hover .card-icon { color: var(--accent); border-color: var(--accent-line); }
.card-body { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.card-title { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.card-desc { font-size: 13px; line-height: 1.5; color: var(--fg-3); min-height: 2.9em; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.card-go { color: var(--fg-4); transition: color .16s, transform .16s; }
.card-go svg { width: 14px; height: 14px; }
.tool-card:hover .card-go { color: var(--accent); transform: translateX(2px); }

/* --------------------------------------------------------------- colonne 3 */
.cols3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.col3 { background: var(--panel); padding: 26px 24px 30px; }
.col3-n { color: var(--accent); font-size: 10px; display: block; margin-bottom: 26px; }
.col3-t { font-size: 16px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.col3-p { font-size: 13.5px; color: var(--fg-2); line-height: 1.62; }

/* ------------------------------------------------------------------- ads */
.adwrap { padding: var(--sp-5) 0; }
.ad {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 14px;
  background: rgba(255,255,255,0.008);
}
.ad-tag { color: var(--fg-4); font-size: 9px; letter-spacing: .16em; margin-bottom: 10px; }
.ad-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; }
.ad-body p { font-size: 13px; color: var(--fg-3); }
.ad-placeholder { min-height: 58px; }
.ad-ins { display: block; width: 100%; min-height: 90px; }

/* --------------------------------------------------------------- entropia */
.ent-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ent-intro .h2 { margin-bottom: var(--sp-4); }
.ent-intro .lede { margin-bottom: var(--sp-5); }
.ent-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ent-table th {
  text-align: left; padding: 0 0 10px; color: var(--fg-4);
  font-weight: 400; font-size: 9.5px; letter-spacing: .14em;
  border-bottom: 1px solid var(--line-2);
}
.ent-table td { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.ent-table td.num { color: var(--fg); text-align: right; padding-right: 20px; font-variant-numeric: tabular-nums; }
.ent-table td.tag { text-align: right; color: var(--fg-3); font-size: 10px; }
.ent-table tr:last-child td { border-bottom: none; }
.ent-table tbody tr:hover td { background: rgba(255,255,255,0.015); }

/* ------------------------------------------------------------------- faq */
.faq-wrap { display: block; }
.faq-head { margin-bottom: var(--sp-6); max-width: 34ch; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 19px 0; cursor: pointer; list-style: none;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--fg-3); transition: transform .2s, background .2s;
}
.faq-plus::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.faq-plus::after { left: 5.5px; top: 0; width: 1px; height: 12px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-item[open] .faq-plus::before { background: var(--accent); }
.faq-body { padding: 0 0 22px; max-width: 76ch; }
.faq-body p { font-size: 14px; color: var(--fg-2); line-height: 1.7; }

/* ------------------------------------------------------------- monetize */
.monet { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.monet-cta { flex: 0 0 auto; }

/* ----------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-elev); padding-top: var(--sp-8); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6); padding-bottom: var(--sp-7);
}
.foot-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.foot-note { font-size: 13px; color: var(--fg-3); line-height: 1.6; max-width: 34ch; margin-bottom: 12px; }
.foot-mono { font-size: 9.5px; color: var(--fg-4); letter-spacing: .1em; }
.foot-h { color: var(--fg-4); font-size: 9px; letter-spacing: .16em; margin-bottom: 14px; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 13px; color: var(--fg-2); transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-base {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  border-top: 1px solid var(--line); padding: 18px 0 22px; flex-wrap: wrap;
}
.foot-base .mono { font-size: 9.5px; }

/* ==========================================================================
   PAGINA STRUMENTO
   ========================================================================== */
.page-tool { padding-top: var(--sp-5); }
.crumb {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-4); font-size: 9.5px; letter-spacing: .1em;
  padding: 10px 0 26px;
}
.crumb a { color: var(--fg-3); }
.crumb a:hover { color: var(--accent); }
.crumb .cur { color: var(--fg); }

.tool-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-6); align-items: end;
  padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line);
}
.tool-head .h1 { margin-bottom: var(--sp-3); }
.badges { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.badges li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-bottom: 1px solid var(--line);
}
.badges li:last-child { border-bottom: none; }
.badge-k { color: var(--fg-4); font-size: 9px; letter-spacing: .14em; }
.badge-v { color: var(--fg-2); font-size: 10px; letter-spacing: 0; text-transform: none; font-family: var(--mono); }

.tool-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 262px;
  gap: var(--sp-5); align-items: start;
  padding: var(--sp-6) 0 var(--sp-8);
}
.tool-aside { display: flex; flex-direction: column; gap: var(--sp-3); position: sticky; top: 84px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 13px; border-bottom: 1px solid var(--line);
}
.mini-row:last-child { border-bottom: none; }
.mini-row .mono { font-size: 10px; letter-spacing: 0; text-transform: none; }
.mini .spark-svg { height: 40px; margin: 10px 13px 0; width: calc(100% - 26px); color: var(--accent); }
.mini .spark-empty { margin: 10px 13px 4px; }
.note-panel { padding: 12px 13px; }
.note-panel .mono { font-size: 9.5px; line-height: 1.7; letter-spacing: .04em; text-transform: none; }

/* --------------------------------------------------------------- tool UI */
.tool-panel { overflow: hidden; }
.tool-ui { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.ctrls { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--sp-5); }
.outp { display: flex; flex-direction: column; background: var(--panel-2); min-width: 0; }
.outp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  color: var(--fg-3);
}
.outp-head .mono { font-size: 9px; letter-spacing: .16em; }
.out-body { padding: 18px 16px; min-height: 108px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.out-body[data-live="1"] { justify-content: flex-start; }
.outp-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.outp-foot .mono { margin-left: auto; font-size: 9px; letter-spacing: .08em; }

/* campi */
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  color: var(--fg-3); font-size: 9.5px; letter-spacing: .14em;
}
.label output { color: var(--accent); font-size: 11px; letter-spacing: 0; }
.input {
  width: 100%; height: 38px; padding: 0 11px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--accent-line); background: #06070a; }
.input.area { height: auto; padding: 10px 11px; line-height: 1.6; resize: vertical; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.select {
  width: 100%; height: 38px; padding: 0 30px 0 11px;
  background: var(--bg) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7683' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 13px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13px; appearance: none; cursor: pointer;
  transition: border-color .15s;
}
.select:hover { border-color: var(--line-3); }
.select:focus { outline: none; border-color: var(--accent-line); }
.hint { font-size: 9.5px; line-height: 1.6; letter-spacing: .06em; }

/* range */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5.5px;
  background: var(--accent); border-radius: 50%; border: none;
  box-shadow: 0 0 0 4px rgba(198,242,77,.12);
}
.range::-moz-range-thumb { width: 13px; height: 13px; background: var(--accent); border: none; border-radius: 50%; }
.range-scale { display: flex; justify-content: space-between; font-size: 8.5px; }

/* checkbox */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.check {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; background: var(--panel-2);
  font-size: 12.5px; cursor: pointer; user-select: none;
  font-family: var(--mono); letter-spacing: .02em;
  transition: background .14s;
}
.check:hover { background: #12161c; }
.check em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--fg-4); }
.check input { appearance: none; width: 13px; height: 13px; border: 1px solid var(--line-3); border-radius: 2px; background: var(--bg); flex: 0 0 13px; position: relative; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px;
  border: solid var(--accent-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(42deg);
}
.check-wide { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r); margin-top: 0; background: var(--panel-2); }

/* segmented */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); padding: 2px; gap: 2px; background: var(--bg); }
.seg-btn {
  border: none; background: transparent; color: var(--fg-3);
  padding: 6px 13px; border-radius: 2px; cursor: pointer;
  font-size: 12px; font-family: var(--mono); letter-spacing: .04em;
  transition: background .14s, color .14s;
}
.seg-btn:hover { color: var(--fg); }
.seg-btn.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg-sm .seg-btn { padding: 5px 11px; font-size: 11px; }

/* dadi */
.dice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.die-btn {
  height: 34px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--fg-3); cursor: pointer;
  font-size: 11px; letter-spacing: .04em;
  transition: all .14s;
}
.die-btn:hover { color: var(--fg); border-color: var(--line-3); }
.die-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* output numerico */
.nums { display: flex; flex-wrap: wrap; gap: 6px; }
.num-cell {
  min-width: 46px; padding: 7px 9px; text-align: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums;
  animation: pop .22s ease-out both;
}
@keyframes pop { from { opacity: 0; transform: translateY(3px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .num-cell { animation: none; } }

/* dadi */
.dice-total { font-size: 40px; line-height: 1; color: var(--fg); letter-spacing: -0.03em; margin-bottom: 12px; }
.dice-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.die-face {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--fg-2); font-size: 13px;
  animation: pop .18s ease-out both;
}
.toast { animation: pop .2s ease-out both; }

/* istogramma */
.hist {
  display: flex; align-items: flex-end; gap: 2px;
  height: 54px; padding: 0 16px 0;
  border-top: 1px solid var(--line);
}
.hist-bar {
  flex: 1; min-width: 1px; background: var(--accent);
  opacity: .34; border-radius: 1px 1px 0 0;
  transition: height .2s, opacity .2s;
}
.hist-bar:hover { opacity: .8; }
.hist-empty { color: var(--fg-4); padding: 8px 16px; }

/* password */
.pw-ghost { font-size: 22px; color: var(--fg-4); letter-spacing: .1em; }
.pw-list { display: flex; flex-direction: column; gap: 3px; }
.pw-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em;
  word-break: break-all;
  transition: border-color .14s, background .14s;
}
.pw-row:hover { border-color: var(--line-2); background: var(--bg); }
.pw-row .pw-i { color: var(--fg-4); font-size: 9px; flex: 0 0 18px; }
.pw-row .pw-t { flex: 1; min-width: 0; }
.meter { height: 2px; background: var(--line); margin: 0 16px; position: relative; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0%; background: var(--lo); transition: width .25s, background .25s; }

/* moneta */
.coin-stage { display: flex; align-items: center; gap: 18px; }
.coin {
  width: 78px; height: 78px; flex: 0 0 78px; border-radius: 50%;
  border: 1px solid var(--line-3);
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #1b2129, #0a0c10 70%);
  color: var(--accent);
  font-family: var(--mono); font-size: 20px;
  transition: transform .5s cubic-bezier(.3,.7,.2,1);
}
.coin.spin { transform: rotateY(720deg) scale(1.02); }
.coin-face { transition: opacity .15s; }
.coin-streaks { flex: 1; display: flex; flex-direction: column; gap: 0; }
.coin-word { font-size: 30px; letter-spacing: -0.02em; color: var(--fg); }
.history { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 16px; }
.hist-dot {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 2px;
  font-family: var(--mono); font-size: 9px; color: var(--fg-3);
}
.hist-dot.h { color: var(--accent); border-color: var(--accent-line); }

/* lista / squadre / nomi */
.picked { display: flex; flex-direction: column; gap: 2px; }
.picked li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  font-size: 15px;
  animation: pop .2s ease-out both;
}
.picked li span { color: var(--fg-4); font-family: var(--mono); font-size: 9.5px; }
.picked li:last-child { border-bottom: none; }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.team-card { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.team-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 9px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 9.5px; color: var(--accent); letter-spacing: .1em;
}
.team-h em { font-style: normal; color: var(--fg-4); }
.team-card ul { padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; }
.team-card li { font-size: 12.5px; color: var(--fg-2); }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names li {
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 13px; background: var(--bg);
  animation: pop .2s ease-out both;
}
.uuid-list { font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--fg-2); white-space: pre-wrap; word-break: break-all; }
.uuid-list span { display: block; }

/* palette */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.swatch { background: var(--panel); cursor: pointer; transition: background .15s; }
.swatch:hover { background: var(--panel-2); }
.swatch-chip { height: 74px; position: relative; }
.swatch-chip span { position: absolute; inset: auto 8px 7px auto; font-family: var(--mono); font-size: 9px; padding: 2px 4px; border-radius: 2px; }
.swatch-meta { padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; }
.swatch-hex { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }
.swatch-ratio { font-family: var(--mono); font-size: 8.5px; color: var(--fg-4); letter-spacing: .04em; }
.ratio-ok { color: var(--hi); }
.ratio-mid { color: var(--mid); }
.ratio-bad { color: var(--lo); }

/* ruota */
.wheel-stage { position: relative; width: 100%; max-width: 260px; margin: 0 auto 14px; aspect-ratio: 1; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform 3.4s cubic-bezier(.14,.72,.06,1);
  overflow: hidden;
  background: conic-gradient(#1a1f27 0 90deg, #232a33 90deg 180deg, #1a1f27 180deg 270deg, #232a33 270deg 360deg);
}
.wheel-labels { position: absolute; inset: 0; }
.wheel-labels span {
  position: absolute; left: 50%; top: 50%;
  transform-origin: 0 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  color: var(--fg); white-space: nowrap;
  text-transform: none;
}
.wheel-pointer {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 3;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 12px solid var(--accent);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.8));
}
.wheel-word { text-align: center; font-size: 22px; letter-spacing: -0.01em; color: var(--fg); min-height: 30px; }

/* lotto */
.lines { display: flex; flex-direction: column; gap: 8px; }
.line { display: flex; gap: 5px; flex-wrap: wrap; }
.ball {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-3); border-radius: 50%;
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 34% 28%, #171c23, #0a0c10 72%);
  color: var(--fg);
  animation: pop .18s ease-out both;
}

/* ------------------------------------------------------------- prosa tool */
.prose {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 64px);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--line);
}
.prose-p { font-size: 15px; line-height: 1.78; color: var(--fg-2); margin-bottom: 18px; max-width: 68ch; }
.prose-p.lead { font-size: 16.5px; color: var(--fg); }
.prose-p.lead::first-letter { color: var(--accent); }
.prose-h { color: var(--fg-4); margin-bottom: var(--sp-4); font-size: 9.5px; letter-spacing: .16em; }
.steps { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-n { color: var(--accent); flex: 0 0 20px; font-size: 9.5px; padding-top: 3px; }
.step-t { font-size: 13.5px; color: var(--fg-2); line-height: 1.65; }

/* correlati */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rel-card { background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.rel-card:hover { background: var(--panel-2); }
.rel-icon { color: var(--fg-3); margin-bottom: 12px; }
.rel-icon svg { width: 18px; height: 18px; }
.rel-card:hover .rel-icon { color: var(--accent); }
.rel-t { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.rel-d { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }

/* --------------------------------------------------------------- pagine doc */
.page-doc { padding: var(--sp-6) 0 var(--sp-9); max-width: 900px; }
.page-doc .h1 { margin-bottom: var(--sp-5); }
.doc-body p { font-size: 15.5px; line-height: 1.8; color: var(--fg-2); margin-bottom: 18px; max-width: 72ch; }
.doc-meta { display: flex; gap: 16px; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* copiato */
.copied { color: var(--accent) !important; border-color: var(--accent-line) !important; }


/* ==========================================================================
   PRO — prezzi, licenza, API
   ========================================================================== */
.nav-pro { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-pro i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-top: -2px;
}
.no-caps { text-transform: none !important; letter-spacing: 0 !important; }
.pro-chip {
  margin-left: 4px; padding: 4px 7px;
  border: 1px solid var(--accent-line); border-radius: 2px;
  color: var(--accent); font-size: 8.5px; letter-spacing: .16em;
  background: var(--accent-soft);
}
.page-pro { padding-top: var(--sp-5); padding-bottom: var(--sp-9); }
.pro-head { max-width: 860px; padding: var(--sp-5) 0 var(--sp-7); }
.pro-head .lede { max-width: 54ch; }
.pro-head .h1 { margin-bottom: var(--sp-4); }

.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; max-width: 820px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 22px 22px 20px;
}
.plan.is-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(198, 242, 77, 0.05), transparent 52%), var(--panel);
}
.plan.is-featured::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-top .mono { color: var(--fg-2); font-size: 9.5px; letter-spacing: .16em; }
.plan-badge {
  color: var(--accent); border: 1px solid var(--accent-line); border-radius: 2px;
  padding: 2px 6px; font-size: 8px; letter-spacing: .12em;
}
.plan-price { display: flex; align-items: baseline; gap: 7px; }
.plan-price .cur { font-size: 17px; color: var(--fg-3); }
.plan-price .amt { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { font-size: 9.5px; color: var(--fg-3); letter-spacing: .1em; }
.plan-note { font-size: 13px; color: var(--fg-2); line-height: 1.55; min-height: 2.7em; }
.plan-feats {
  display: flex; flex-direction: column; gap: 9px;
  border-top: 1px solid var(--line); padding-top: 15px;
}
.plan-feats li { display: flex; gap: 9px; font-size: 13px; color: var(--fg-2); line-height: 1.45; }
.plan-feats svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--accent); margin-top: 3px; }
.btn-block { width: 100%; justify-content: center; margin-top: auto; }
.plan-fine { font-size: 8.5px; text-align: center; letter-spacing: .08em; text-transform: none; }

.notice {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  background: var(--panel); padding: 15px 17px; margin-bottom: var(--sp-5);
  max-width: 820px;
}
.notice .mono { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.notice p { font-size: 13px; color: var(--fg-2); line-height: 1.6; }

.pro-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  padding: 11px 15px; margin-bottom: var(--sp-5); max-width: 820px;
}
.pro-banner .mono { font-size: 9.5px; }
.pro-banner .mono:first-of-type { color: var(--accent); letter-spacing: .16em; }

.pro-sec { margin-top: var(--sp-8); }
.pro-sec .sec-head { margin-bottom: var(--sp-4); }

.feat-table { width: 100%; border-collapse: collapse; font-size: 13.5px; max-width: 820px; }
.feat-table th {
  text-align: left; padding: 0 0 11px; color: var(--fg-4); font-weight: 400;
  font-size: 9px; letter-spacing: .14em; border-bottom: 1px solid var(--line-2);
}
.feat-table td { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.feat-table td.mono {
  font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3);
}
.feat-table th:nth-child(1), .feat-table td:nth-child(1) { width: 52%; }
.feat-table th:nth-child(2), .feat-table td:nth-child(2) { width: 26%; }
.feat-table th:nth-child(3), .feat-table td:nth-child(3) { width: 22%; }
.feat-table td.pro-col, .feat-table th.pro-col { text-align: right; color: var(--accent); }
.feat-table td.pro-col { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.feat-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

.api-demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.api-code, .api-out {
  background: var(--panel); padding: 15px 17px;
  font-family: var(--mono); font-size: 11px; line-height: 2;
  letter-spacing: 0; text-transform: none; color: var(--fg-2);
  overflow-x: auto; white-space: pre;
}
.api-code { line-height: 2.1; }
.api-k { color: var(--accent); }
.api-key { color: var(--hi); }
.api-str { color: var(--mid); }
.api-out .dim { color: var(--fg-4); }
.pro-note { margin-top: 13px; font-size: 9.5px; line-height: 1.7; max-width: 78ch; }
.pro-trust {
  margin-top: var(--sp-8); padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 9px;
  line-height: 1.8; max-width: 78ch;
}

/* licenza */
.redeem { padding: 16px; margin-bottom: var(--sp-5); max-width: 820px; }
.redeem-form { display: flex; flex-direction: column; gap: 8px; }
.redeem-row { display: flex; gap: 8px; align-items: stretch; }
.redeem-row .input { max-width: 280px; letter-spacing: .1em; }
.license-box { border: 1px solid var(--line); background: var(--panel); margin-top: var(--sp-6); max-width: 660px; }
.lic-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.lic-row:last-child { border-bottom: none; }
.lic-row .mono dim { font-size: 9px; }
.lic-key {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .07em;
  color: var(--accent); cursor: pointer; word-break: break-all; text-align: right;
}
.page-thanks .h1 { margin-bottom: var(--sp-4); }

@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; }
  .api-demo { grid-template-columns: 1fr; }
  .lic-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lic-key { text-align: left; }
}


/* ==========================================================================
   CRUSCOTTO, LOGIN, UPSELL, CONSENSO
   ========================================================================== */
.page-dash { padding-top: var(--sp-5); padding-bottom: var(--sp-9); }
.dash-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap; padding: var(--sp-4) 0 var(--sp-6);
}
.dash-head .h1 { margin-top: 2px; }
.dash-range { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.dash-range a {
  padding: 6px 12px; font-size: 10px; letter-spacing: .1em; color: var(--fg-3);
  border-right: 1px solid var(--line-2);
}
.dash-range a:last-child { border-right: none; }
.dash-range a:hover { color: var(--fg); background: var(--panel-2); }
.dash-range a.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.kpi { background: var(--panel); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.kpi .mono { font-size: 9px; }
.kpi-v { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpi-v.sm { font-size: 18px; }

.dash-panel { margin-top: 14px; }
.dash-spark { height: 120px; width: 100%; color: var(--accent); padding: 12px 14px 14px; }
.dash-panel .spark-empty { padding: 0 14px 14px; margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dash-grid .dash-panel { margin-top: 0; }
.money { display: flex; align-items: baseline; gap: 10px; padding: 14px 14px 6px; }
.money-v { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table td.num { text-align: right; }
.dash-note { padding: 12px 14px; font-size: 9px; line-height: 1.8; }
.dash-note code, .dash-foot code { color: var(--fg-2); font-size: 9px; text-transform: none; letter-spacing: 0; }
.dash-foot {
  margin-top: var(--sp-6); padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 9px; line-height: 1.9; max-width: 90ch;
}

/* login */
.page-login { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 40px 0; }
.login-card { width: 100%; max-width: 368px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.login-card form { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.login-card .btn { margin-top: 6px; }
.login-note { font-size: 13px; color: var(--fg-2); line-height: 1.6; }
.login-note code { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.login-err { font-size: 10px; color: var(--lo); letter-spacing: .08em; }
.login-fine { font-size: 8.5px; text-align: center; }

/* upsell nella colonna strumento */
.upsell {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 14px; border-color: var(--accent-line) !important;
  background: linear-gradient(180deg, rgba(198, 242, 77, 0.05), transparent 70%), var(--panel);
  transition: border-color .15s, background .15s;
}
.upsell:hover { background: linear-gradient(180deg, rgba(198, 242, 77, 0.09), transparent 70%), var(--panel); }
.upsell-tag { color: var(--accent); font-size: 8.5px; letter-spacing: .18em; }
.upsell-t { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.upsell-p { font-size: 11.5px; color: var(--fg-3); line-height: 1.5; }
.upsell-go { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--accent); font-size: 9px; }
.upsell-go svg { width: 12px; height: 12px; }

/* consenso annunci */
.consent {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px;
  flex-wrap: wrap;
}
.consent-txt { max-width: 68ch; }
.consent-txt .mono { color: var(--fg-3); font-size: 9px; letter-spacing: .14em; }
.consent-txt p { font-size: 12.5px; color: var(--fg-2); margin-top: 6px; line-height: 1.6; }
.consent-act { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   STATISTICHE DI UTILIZZO
   ========================================================================== */
.page-stats { padding-top: var(--sp-5); padding-bottom: var(--sp-9); }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.badge-admin {
  border: 1px solid var(--accent-line); color: var(--accent);
  font-size: 8px; padding: 2px 5px; border-radius: 2px;
  letter-spacing: .14em; margin-left: 2px;
}
.stats-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }

.bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 150px; padding: 16px 14px 0;
}
.daybar {
  flex: 1 1 0; min-height: 2px; border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(198, 242, 77, 0.3));
  opacity: .8; transition: opacity .12s, background .12s;
}
.daybar:hover { opacity: 1; }
.daybar.is-zero { background: var(--line-2); opacity: .55; }
.bars-sm { height: 96px; }
.bars-axis {
  display: flex; justify-content: space-between;
  padding: 8px 14px 12px; font-size: 8px; letter-spacing: .1em;
  border-top: 1px solid var(--line); margin-top: 2px;
}

.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th {
  text-align: left; padding: 8px 14px; color: var(--fg-4);
  font-size: 8px; letter-spacing: .14em; font-weight: 400;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.stat-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: top; }
.stat-table td.num, .stat-table th.num { text-align: right; white-space: nowrap; }
.stat-table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.stat-table tfoot td { border-bottom: none; border-top: 1px solid var(--line-2); padding-top: 12px; }
.stat-tool { display: block; margin-bottom: 6px; }
.share { display: block; height: 2px; background: var(--line); max-width: 130px; }
.share i { display: block; height: 100%; background: var(--accent); opacity: .55; }
.dash-foot a { color: var(--accent); }
.dash-foot a:hover { text-decoration: underline; }
.dash-foot code, .dash-note code { white-space: nowrap; }
.dash-table em { font-style: normal; font-size: 9px; }

@media (max-width: 1100px) {
  .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars { height: 110px; gap: 1px; }
}


/* ==========================================================================
   DOCUMENTAZIONE API
   ========================================================================== */
.page-api { padding-top: var(--sp-5); padding-bottom: var(--sp-9); max-width: 940px; }
.api-hero { padding: var(--sp-4) 0 var(--sp-6); border-bottom: 1px solid var(--line); }
.api-hero .h1 { margin-bottom: var(--sp-4); }
.base-url {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: var(--sp-5); padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel);
}
.base-url code { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0; }
.api-sec { margin-top: var(--sp-7); }
.api-sec .h2 { margin-bottom: var(--sp-4); }
.endpoint { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-top: var(--sp-4); overflow: hidden; }
.ep-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.method {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em;
  padding: 3px 7px; border: 1px solid var(--line-3); border-radius: 2px; color: var(--fg-2);
}
.method-get { color: var(--hi); border-color: rgba(142, 240, 196, 0.35); }
.method-post { color: var(--accent); border-color: var(--accent-line); }
.ep-path { font-family: var(--mono); font-size: 12px; color: var(--fg); letter-spacing: 0; }
.ep-title { margin-left: auto; font-size: 13px; color: var(--fg-2); }
.ep-desc { padding: 14px 15px; font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.ep-note { padding: 0 15px 14px; font-size: 9px; line-height: 1.8; letter-spacing: .04em; }
.param-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.param-table th {
  text-align: left; padding: 8px 15px; color: var(--fg-4); font-weight: 400;
  font-size: 8px; letter-spacing: .14em; border-bottom: 1px solid var(--line-2);
}
.param-table td { padding: 9px 15px; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.param-table tr:last-child td { border-bottom: none; }
.param-table td.mono { font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--fg); }
.param-table td.mono.dim { color: var(--fg-3); }
.num-status { color: var(--accent) !important; }
.code-block { padding: 0 15px 14px; }
.code-label { display: block; margin: 4px 0 7px; font-size: 8px; letter-spacing: .14em; color: var(--fg-4); }
.code {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  background: #06070a; border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85;
  color: var(--fg-2); white-space: pre; tab-size: 2;
}
.code code { font: inherit; }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--sp-7); }
.api-card {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 16px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
}
.api-card h2 { color: var(--fg-4); font-size: 8.5px; letter-spacing: .16em; }
.api-card p { font-size: 13px; line-height: 1.65; color: var(--fg-2); }
.api-card .btn { margin-top: 4px; }
.api-foot { margin-top: var(--sp-8); padding-top: 16px; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.9; max-width: 86ch; }
@media (max-width: 760px) {
  .api-grid { grid-template-columns: 1fr; }
  .ep-title { margin-left: 0; width: 100%; }
  .code { font-size: 10.5px; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-side { max-width: 460px; }
  .tool-head { grid-template-columns: 1fr; align-items: start; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .tool-aside .panel { flex: 1 1 200px; }
  .prose { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .cols3 { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .nav { display: none; }
  .tool-ui { grid-template-columns: 1fr; }
  .ctrls { border-right: none; border-bottom: 1px solid var(--line); }
  .wrap { padding-inline: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .brand-tag { display: none; }
  .tl-src, .tl-priv, .tl-ver, .topline .bar { display: none; }
  .tool-card { min-height: 0; gap: 18px; padding: 16px 16px 12px; }
  .card-desc { min-height: 0; }
  .sec { padding: 44px 0; }
  .tools { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .strip-in { gap: 10px; }
  .strip-in .mono:nth-of-type(n+5), .strip-in .bar { display: none; }
  .out-body { min-height: 88px; }
  .num-cell { min-width: 42px; font-size: 14px; }
}
