/* Q-Max Profit · PWA agente — palette dai mockup del video */
:root {
  /* palette ufficiale NexQuentia / Q-Max Profit */
  --navy: #1A2C46;        /* header e testi */
  --navy-2: #24466F;      /* blu profondo: approvazioni */
  --primary: #2F5487;     /* blu acciaio: pulsanti, link, barre */
  --primary-2: #3A6399;
  --tint: #E8EDF4;        /* fondo dei numeri chiave */
  --tint-2: #EEF3FA;
  --silver: #C9CED7;      /* argento: badge, bordi, separatori */
  --bg: #F4F6F9;
  --bg-slide: #E9EEF4;
  --card: #FFFFFF;
  --line: #DDE3EA;
  --fill: #EEF1F5;
  --fill-2: #F4F6F9;
  --text: #0E1B2C;
  --text-2: #33445A;
  --muted: #4F5F73;
  --muted-2: #8A96A6;
  --amber-bg: #FFF4E0;    /* solo avvisi */
  --amber: #6B4000;
  --red: #8A1C12;         /* solo errori */
  --red-bg: #FDECEA;
  --wa-bg: #E7F6EC;       /* verde solo per WhatsApp */
  --wa: #1F6B3A;
  --silver-grad: linear-gradient(135deg, #F4F6F9 0%, #C9CED7 40%, #EEF1F5 60%, #AEB5C0 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 4px 14px rgba(14, 27, 44, .05);
  --shadow-lg: 0 20px 60px rgba(14, 27, 44, .22);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.4;
  background: radial-gradient(1200px 700px at 15% 10%, #F7F9FB 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #DCE3EC 0%, transparent 60%), var(--bg-slide);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--primary); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* contenitore: a tutto schermo su telefono, "telefono" centrato su desktop */
#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--fill-2); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px) {
  body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  #app { height: min(900px, 94vh); width: 420px; border-radius: 40px; box-shadow: var(--shadow-lg), 0 0 0 10px #fff, 0 0 0 11px var(--silver); }
  .desk-note { display: block !important; }
}
.desk-note { display: none; position: fixed; left: 32px; bottom: 28px; max-width: 300px; color: var(--muted); font-size: 13px; }
.desk-note b { color: var(--text); }
.desk-note img { width: 44px; height: 44px; display: block; margin-bottom: 10px; }

/* header */
.hdr { background: var(--navy); color: #fff; padding: calc(var(--safe-top) + 12px) 16px 14px; flex: none; position: relative; z-index: 5; }
@media (min-width: 700px) { .hdr { padding-top: 22px; } }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.brand img { height: 30px; width: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.seg { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 9px; padding: 3px; }
.seg button { color: #D5DCE6; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; min-height: 32px; transition: .2s; }
.seg button.on { background: #fff; color: var(--navy); }
.hdr h1 { font-size: 24px; margin: 10px 0 2px; font-weight: 600; line-height: 1.25; }
.hdr .sub { font-size: 13px; color: #C3CCD9; display: flex; align-items: center; gap: 6px; }
.badge-demo { font-size: 10px; font-weight: 700; letter-spacing: .6px; background: var(--silver); color: var(--navy); border-radius: 4px; padding: 1px 5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--silver-grad); color: var(--navy); font-weight: 800; font-size: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); flex: none; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.offline { background: var(--amber-bg); color: var(--amber); font-size: 12px; text-align: center; padding: 4px; }

/* contenuto */
.main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 14px 24px; scroll-behavior: smooth; }
.view { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.intro { font-size: 15px; line-height: 1.5; color: var(--text-2); margin: 2px 2px 12px; }
.section-t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 20px 2px 8px; display: flex; justify-content: space-between; align-items: center; }
.section-t button { text-transform: none; letter-spacing: 0; color: var(--primary); font-weight: 600; font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 13px; font-weight: 600; margin: 0 0 10px 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.tight { padding: 10px 12px; }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.dark .muted { color: rgba(255,255,255,.7); }
.card.click { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card.click:active { transform: scale(.985); }
.eyebrow { font-size: 11.5px; color: var(--muted); }
.title { font-size: 16px; font-weight: 700; margin: 1px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb0 { margin-bottom: 0; }

/* card "Oggi" */
.rank { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
.opp-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.opp-sub { font-size: 13px; color: var(--muted); }
.note { border-radius: 9px; padding: 8px 10px; font-size: 13.5px; margin-top: 8px; line-height: 1.35; }
.note.amber { background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.note.red { background: var(--red-bg); color: var(--red); }
.note.grey { background: var(--fill); color: var(--text); }
.note.green { background: var(--tint); color: var(--navy); }
.note.dark { background: var(--navy); color: #fff; }
.note.info { background: var(--tint-2); color: var(--navy); font-weight: 600; }
.rende { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rende .pill { flex: 1; display: flex; align-items: baseline; justify-content: space-between; background: var(--tint); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--navy); }
.rende .pill b { color: var(--navy); font-size: 19px; }
.rende .pill b small { font-size: 13px; color: var(--navy); font-weight: 500; }
.btn-o { border: 1px solid var(--primary); border-radius: 11px; padding: 9px 13px; font-size: 14px; min-height: 40px; font-weight: 600; color: var(--primary); background: #fff; white-space: nowrap; }
.btn-o:active { background: var(--fill); }
.status-chip { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--fill); color: var(--muted); white-space: nowrap; }
.status-chip.live { background: var(--tint-2); color: var(--primary); }
.status-chip.ok { background: var(--tint); color: var(--navy); }
.status-chip.ko { background: var(--red-bg); color: var(--red); }
.status-chip.warn { background: var(--amber-bg); color: var(--amber); }
.done { opacity: .62; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.kpi .v { font-weight: 800; font-size: 15px; }
.kpi .l { font-size: 10.5px; color: var(--muted); }

/* bottoni */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; border-radius: 12px; padding: 12px 16px; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.985); background: var(--navy); }
.btn.deep { background: var(--navy-2); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.danger { background: #fff; color: #B42318; border: 1px solid #B42318; }
.btn.wa { background: #1F8A4C; }
.btn.sm { padding: 9px 12px; font-size: 14px; width: auto; min-height: 44px; }
.btn-row { display: flex; gap: 8px; } .btn-row > * { flex: 1; }
.link { color: var(--primary); font-weight: 600; font-size: 13px; }
.fab { position: absolute; right: 16px; bottom: calc(76px + var(--safe-bottom)); width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(40,74,117,.4); z-index: 6; }
.fab:active { transform: scale(.95); }

/* tab bar */
.tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-bottom)); z-index: 5; }
@media (min-width: 700px) { .tabs { padding-bottom: 14px; } }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; min-height: 52px; justify-content: center; color: var(--muted); padding: 4px 0; position: relative; font-weight: 500; }
.tab svg { width: 21px; height: 21px; }
.tab.on { color: var(--primary); font-weight: 700; }
.tab.on::after { content: ''; position: absolute; bottom: -3px; width: 24px; height: 3px; border-radius: 2px; background: var(--primary); }

/* numeri, stepper, barre */
.three { list-style: none; padding: 0; margin: 10px 0; }
.three li { display: flex; gap: 10px; padding: 6px 0; }
.three .n { width: 18px; color: var(--primary); font-weight: 700; font-size: 13px; padding-top: 2px; }
.three b { font-size: 16px; }
.three .d { font-size: 14px; color: var(--muted); }
.big-eur { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.stepper button { width: 64px; height: 56px; border: 1px solid #C9D2DD; border-radius: 12px; font-size: 26px; font-weight: 600; color: var(--navy); background: #fff; }
.stepper button:active { background: var(--fill); }
.stepper .val { font-size: 40px; font-weight: 700; color: var(--navy); }
.stepper.sm button { width: 36px; height: 32px; font-size: 16px; border-radius: 9px; }
.stepper.sm .val { font-size: 18px; }
.box-eur { display: flex; align-items: center; justify-content: space-between; background: var(--tint); color: var(--navy); border-radius: 12px; padding: 14px; }
.box-eur .l { font-size: 15px; }
.box-eur .v { font-size: 26px; font-weight: 700; transition: color .3s; white-space: nowrap; }
.flash { animation: flash .6s ease; }
@keyframes flash { 0% { color: var(--primary); transform: scale(1.06); } 100% { transform: none; } }
.bar { height: 10px; border-radius: 6px; background: #E6EBF1; overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.card.dark .bar { background: rgba(255,255,255,.18); } .card.dark .bar > i { background: #fff; }
.mrow { padding: 6px 0; font-size: 12.5px; }
.prod { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.prod button { text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: #fff; transition: .15s; }
.prod button.on { border: 2px solid var(--primary); padding: 8px 9px; background: var(--tint-2); }
.prod .pn { font-size: 11.5px; color: var(--muted); }
.prod .pp { font-weight: 800; font-size: 15px; }
.kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.kv b { white-space: nowrap; }
.msg { background: var(--tint); border-radius: 14px; padding: 12px; margin-top: 10px; }
.msg.wa { background: var(--wa-bg); }
.msg textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px; font-size: 13.5px; line-height: 1.45; resize: vertical; min-height: 150px; }
.msg .eyebrow { color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.msg.wa .eyebrow { color: var(--wa); }
.msg.wa textarea { border-radius: 14px 14px 4px 14px; border-color: #CDE9D6; }
.caret::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }

/* estratto */
.est-row { padding: 9px 0; border-top: 1px solid var(--line); font-size: 12.5px; animation: fadeIn .3s ease; }
.est-row:first-child { border-top: 0; }
.est-row .bad { color: var(--red); font-weight: 600; margin-top: 2px; }
.scan { height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 200% 100%; animation: scan 1s linear infinite; border-radius: 3px; margin: 8px 0; }
@keyframes scan { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* clienti */
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 10px; }
.search input { flex: 1; border: 0; outline: 0; padding: 11px 0; background: transparent; font-size: 15px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cav { width: 38px; height: 38px; border-radius: 11px; background: var(--fill); color: var(--primary); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--fill); padding: 2px 7px; border-radius: 999px; margin: 3px 4px 0 0; }
.tag i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0; background: var(--fill); border-radius: 11px; font-size: 11px; font-weight: 600; color: var(--primary); text-decoration: none; }
.quick svg { width: 19px; height: 19px; }
.tl { position: relative; padding-left: 16px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-i { position: relative; padding: 0 0 12px; font-size: 13px; }
.tl-i::before { content: ''; position: absolute; left: -16px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 13.5px; }
.empty svg { width: 34px; height: 34px; color: var(--muted-2); margin-bottom: 6px; }

/* form */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #D5DCE5; border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 15px; outline: 0; transition: border .15s, box-shadow .15s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40,74,117,.12); }
.field.err input, .field.err select { border-color: var(--red); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.field .errmsg { font-size: 11.5px; color: var(--red); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 500; color: var(--text); margin: 0; cursor: pointer; }
.checks input { width: auto; margin: 0; accent-color: var(--primary); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.switch input { width: 44px; height: 26px; appearance: none; -webkit-appearance: none; background: #CBD3DD; border-radius: 26px; position: relative; transition: .2s; cursor: pointer; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 21px; }
input[type=range] { width: 100%; accent-color: var(--primary); }
.mic { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); color: var(--primary); display: grid; place-items: center; flex: none; }
.mic.rec { background: var(--red); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165,65,46,.5); } 100% { box-shadow: 0 0 0 14px rgba(165,65,46,0); } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-chips span { font-size: 12px; background: var(--tint-2); color: var(--navy); border-radius: 999px; padding: 4px 9px; font-weight: 600; }

/* sheet / modal */
.scrim { position: absolute; inset: 0; background: rgba(16, 26, 44, .45); z-index: 40; animation: fade .2s ease; display: flex; align-items: flex-end; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-height: 92%; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-bottom); }
@keyframes up { from { transform: translateY(100%); } }
.sheet-h { padding: 10px 16px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); margin-top: -6px; width: 38px; height: 4px; border-radius: 4px; background: #D5DCE5; }
.sheet-h h3 { margin: 6px 0 0; font-size: 16.5px; }
.sheet-h .x { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; margin-top: 6px; }
.sheet-b { padding: 14px 16px; overflow-y: auto; }
.sheet-f { padding: 10px 16px 14px; border-top: 1px solid var(--line); flex: none; }
.scrim.center { align-items: center; justify-content: center; padding: 24px; }
.dialog { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 340px; animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.dialog h3 { margin: 0 0 6px; font-size: 17px; }
.dialog p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.actions-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.actions-list button:last-child { border-bottom: 0; }
.actions-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.actions-list .red, .actions-list .red svg { color: var(--red); }

/* toast */
.toasts { position: absolute; left: 12px; right: 12px; bottom: calc(80px + var(--safe-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: up .25s ease; }
.toast button { color: var(--silver); font-weight: 700; font-size: 13px; }

/* login & onboarding */
.auth { flex: 1; overflow-y: auto; padding: calc(var(--safe-top) + 28px) 22px 28px; background: radial-gradient(600px 400px at 20% 0%, #FFFFFF, transparent 70%), linear-gradient(180deg, #F4F6F9, #E9EEF4); display: flex; flex-direction: column; }
.auth .logo { width: 110px; height: auto; margin: 0 auto 4px; display: block; filter: drop-shadow(0 6px 10px rgba(14,27,44,.12)); }
.auth .nq { text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.auth h1 { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; color: var(--navy); }
.auth .claim { text-align: center; color: var(--primary); font-weight: 600; margin-bottom: 22px; }
.auth .card { padding: 18px; }
.demo-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.demo-acc button { border: 1px solid var(--line); background: var(--fill-2); border-radius: 11px; padding: 9px 10px; text-align: left; }
.demo-acc b { display: block; font-size: 13px; } .demo-acc span { font-size: 11px; color: var(--muted); }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 18px; }
.form-err { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 9px 11px; font-size: 13px; margin-bottom: 12px; }
.onb { position: absolute; inset: 0; z-index: 70; background: linear-gradient(180deg, #F4F6F9, #E6ECF3); display: flex; flex-direction: column; padding: calc(var(--safe-top) + 30px) 26px calc(var(--safe-bottom) + 24px); animation: fade .3s; }
.onb .tagline { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: rgba(255,255,255,.7); border: 1px solid var(--silver); border-radius: 999px; padding: 3px 10px; }
.onb h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 10px; color: var(--navy); }
.onb p { color: var(--muted); font-size: 15.5px; }
.onb .dots { display: flex; gap: 6px; margin: auto 0 18px; }
.onb .dots i { width: 7px; height: 7px; border-radius: 7px; background: #C3CCD8; transition: .3s; }
.onb .dots i.on { width: 22px; background: var(--navy); }
.onb .ill { margin: 18px 0; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 3px; animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.install-banner { margin-bottom: 12px; }

/* splash: sfondo chiaro, logo al centro */
.splash { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(500px 400px at 50% 40%, #FFFFFF, #F4F6F9 70%); transition: opacity .45s ease; }
.splash img { width: 150px; height: auto; animation: rise .8s cubic-bezier(.2,.8,.2,1); }
.splash .t { font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; animation: rise .8s .1s both cubic-bezier(.2,.8,.2,1); }
.splash .c { font-size: 15px; font-weight: 600; color: var(--primary); animation: rise .8s .2s both cubic-bezier(.2,.8,.2,1); }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; }
.hero .title { font-size: 26px; font-weight: 700; }
.hero .muted, .hero .xs { color: #C9D4E3; }
.big-box { background: var(--tint); color: var(--navy); border-radius: 12px; padding: 14px; }
.big-box b { display: block; font-size: 28px; }
.alert-box { background: var(--amber-bg); border: 1px solid #F3D9A8; border-radius: 16px; padding: 16px; color: var(--amber); margin-bottom: 10px; }
.alert-box b { display: block; font-size: 32px; }
.est-row.ko { }
