:root {
  /* ── DESIGN TOKENS 2026 ─────────────────────────────── */
  /* Brand (verde unificato) */
  --brand: #0E9D57;
  --brand-700: #0A7A43;
  --brand-900: #064C2E;
  --brand-tint: #E7F5EC;
  /* Inchiostro / neutri */
  --ink: #0F1411;
  --muted: #5C6B62;
  --faint: #94A29A;
  --bg: #F2F6F3;
  --surface: #FFFFFF;
  --line: #E6ECE8;
  /* Stati */
  --warn: #E0A23B;
  --danger: #D8514B;
  /* Colore personaggio Tommy (rosa) */
  --tommy: #EC6E9C;
  --tommy-tint: #FCE7EF;
  --tommy-neon: #FF6FB0;
  /* Colore personaggio Nino (ambra/dorato) */
  --nino: #E8A23D;
  --nino-tint: #FCEFD6;
  --nino-dark: #b87414;
  --it-red: #CE2B37;
  --red-tint: #FBEAEC;
  /* Tipografia */
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --ui: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Raggi */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  /* Ombre (sottili) */
  --sh-sm: 0 1px 2px rgba(16,20,17,.05);
  --sh-md: 0 6px 22px rgba(16,20,17,.07);
  --sh-lg: 0 18px 44px rgba(8,40,24,.14);
  /* Spaziatura (griglia 4px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  /* Focus ring */
  --ring: 0 0 0 3px rgba(14,157,87,.35);

  /* ── Alias legacy → token (compatibilità: tutti i componenti ereditano il sistema) ── */
  --verde: var(--brand);
  --verde-dark: var(--brand-700);
  --verde-light: var(--brand-tint);
  --rosso: #CE2B37;            /* rosso bandiera: identità, non errore */
  --rosso-ch: #FF0000;
  --rosso-light: #FBEAE9;
  --bianco: var(--surface);
  --crema: #F1F5F2;
  --grigio: var(--muted);
  --grigio-light: #EEF3F0;
  --testo: var(--ink);
  --bordo: var(--line);
  --blu: #2563EB;
  --blu-light: #EFF6FF;
  --oro: var(--warn);
  --oro-light: #FBF3E4;
  --sfondo: var(--bg);
  --shadow-sm: var(--sh-sm);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Accessibilità: focus visibile e coerente con il brand */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* Movimento ridotto: rispetta le preferenze di sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Titoli display: tracking serrato (look editoriale pulito con Inter) */
.home-name, .agent-name, .carpool-title, .fh-title, .ph-name, .menu-title,
.intro-h, .vh-big, .plan-name, .guide-h-title, .contact-title, .ch-rate {
  letter-spacing: -0.02em;
}

/* Feedback tattile coerente: leggero scale al tocco sugli elementi interattivi */
.module-card, .toby-hero, .falco-mini, .cambio-banner, .fuel-banner,
.settings-row, .guide-item, .station-card, .zone-opt {
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-card:active, .toby-hero:active, .falco-mini:active, .cambio-banner:active,
.fuel-banner:active, .settings-row:active, .guide-item:active, .station-card:active {
  transform: scale(.985);
}

/* Toby: animazione idle morbida (rispetta prefers-reduced-motion) */
@keyframes tobyIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.toby-hero .th-illu, .toby-orb .toby-figure { animation: tobyIdle 3.6s ease-in-out infinite; will-change: transform; }
.toby-hero:active .th-illu { animation: none; }

/* ── APP SHELL (mobile-first) ── */
.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sfondo);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
}

.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  padding-bottom: 76px; /* space for bottom nav */
  animation: fadeUp 0.45s ease both;
}
.screen.active { display: flex; }
.screen.no-nav { padding-bottom: 0; }

/* ── GENERIC HEADER ── */
.app-header {
  background: white;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--bordo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-header .title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.app-header .subtitle { font-size: 12px; color: var(--grigio); margin-top: 2px; }

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--grigio-light);
  border-radius: 100px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--grigio);
  padding: 5px 8px;
  border-radius: 100px;
}
.lang-switch button.active { background: white; color: var(--verde); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ── AUTH (login / register) ── */
#screen-login, #screen-register {
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 36px;
}
.auth-flags { display: flex; gap: 12px; font-size: 26px; margin: 6px 0 20px; z-index: 1; }
.auth-card { margin: 0 0 24px; }
.auth-card h3 { font-size: 20px; }
.auth-forgot { background: none; border: none; color: var(--verde); font-size: 12px; font-weight: 600; margin: -6px 0 12px; display: block; }
.privacy-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--grigio); margin: 4px 0 16px; cursor: pointer; }
.privacy-row input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--verde); flex-shrink: 0; }
.auth-switch { text-align: center; font-size: 13px; color: var(--grigio); margin-top: 14px; }
.auth-switch button { background: none; border: none; color: var(--verde); font-weight: 700; font-size: 13px; }
.menu-greeting { font-family: var(--display); font-size: 20px; font-weight: 700; }
.menu-item.danger { color: var(--rosso); }
.menu-item.danger .menu-arrow { color: var(--rosso); }

/* ── SPLASH / ONBOARDING ── */
.splash {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 50%, var(--rosso) 100%);
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.splash::before {
  content: '🇮🇹';
  position: absolute;
  font-size: 240px;
  opacity: 0.06;
  top: -50px;
  left: -50px;
}
.splash::after {
  content: '🇨🇭';
  position: absolute;
  font-size: 220px;
  opacity: 0.06;
  bottom: -40px;
  right: -40px;
}
.splash-logo {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 900;
  color: white;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  z-index: 1;
}
.splash-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 28px;
  z-index: 1;
}
.splash-flags { display: flex; gap: 14px; margin-bottom: 36px; font-size: 32px; z-index: 1; }

.onboard-card {
  background: white;
  border-radius: 22px;
  padding: 24px 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  z-index: 1;
  text-align: left;
  animation: fadeUp 0.5s ease 0.15s both;
}
.onboard-card h3 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 4px;
}
.onboard-card p { font-size: 12px; color: var(--grigio); margin-bottom: 16px; }

.field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--grigio); margin-bottom: 8px; display: block; }

.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.zone-opt {
  border: 1.5px solid var(--bordo);
  background: white;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--testo);
  text-align: center;
  transition: all 0.15s;
}
.zone-opt.selected { border-color: var(--verde); background: var(--verde-light); color: var(--verde-dark); }

.input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); }

.btn-primary {
  width: 100%;
  min-height: 48px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--sh-md);
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { background: var(--brand-700); }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .45; box-shadow: none; pointer-events: none; }

/* Secondario: tintato (o outline). 44px+ target */
.btn-secondary {
  width: 100%;
  min-height: 48px;
  background: var(--brand-tint);
  color: var(--brand-700);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s ease, background .18s ease, border-color .18s ease;
}
.btn-secondary:hover { border-color: var(--brand); }
.btn-secondary:active { transform: scale(.97); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }

.btn-ghost {
  background: var(--surface);
  color: var(--brand-700);
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 36px;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  box-shadow: var(--sh-md);
}

.field-error { font-size: 11px; color: var(--rosso); margin: -10px 0 12px; display: none; }
.field-error.show { display: block; }

/* ── DASHBOARD ── */
.home-header {
  background: white;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--bordo);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
/* Topbar con wordmark di marca (coerente col marketing) */
.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 20px 10px;
}
.brand-row { display: flex; align-items: center; gap: 9px; }
.brand-mark { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.tricolore { display: inline-flex; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: var(--sh-sm); }
.tricolore i { width: 5px; display: block; }
.tricolore .tg { background: #009246; }
.tricolore .tw { background: #fff; }
.tricolore .tr { background: var(--it-red); }
.brand-mark span { color: var(--brand); }
.home-hello { padding: 2px 20px 8px; }
.home-greeting { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.home-name { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.home-name span { color: var(--brand); }
.home-toby { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Selettore mascotte Toby */
.toby-animals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.toby-animal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1.5px solid var(--bordo); border-radius: 14px; background: #fff; }
.toby-animal .ta-emoji { font-size: 30px; }
.toby-animal .ta-label { font-size: 12px; font-weight: 700; color: var(--testo); }
.toby-animal.sel { border-color: var(--verde); background: var(--verde-light); }
.toby-animal:active { transform: scale(0.97); }
.toby-animal .ta-img { height: 56px; display: flex; align-items: center; justify-content: center; }
.toby-animal .ta-img .toby-illu { height: 56px; width: auto; object-fit: contain; }

/* Illustrazione mascotte (con fallback emoji + segnale d'umore) */
.toby-figure { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.toby-illu { height: 100%; width: auto; max-height: 46px; object-fit: contain; display: block; }
.toby-orb .toby-illu { max-height: 40px; }
.toby-fallback { align-items: center; justify-content: center; }
/* Segnale d'umore (badge/coriandoli) per gli animali senza illustrazione dedicata */
.toby-cue { position: absolute; top: -2px; right: -2px; font-size: 12px; line-height: 1;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18); align-items: center; justify-content: center; }
.toby-cue.festoso { animation: tobyPop 1.4s ease-in-out infinite; }
.toby-cue.assonnato { opacity: 0.9; }
@keyframes tobyPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ta-img .toby-figure { height: 56px; }

/* Avviso soffice: tasso non aggiornato (offline) */
.rate-stale { margin-top: 8px; background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
  border-radius: 12px; padding: 9px 12px; font-size: 12px; font-weight: 600; line-height: 1.35; }

/* Toby hero (home) */
.toby-hero { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: linear-gradient(135deg, #FFF, var(--tommy-tint)); border: 1px solid #F6D3E1; border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: 0 2px 10px rgba(236,110,156,0.10); cursor: pointer; }
.toby-hero:active { transform: scale(0.99); }
/* Stage rosa morbido dietro Tommy: PNG trasparente, MAI riquadro bianco */
.toby-hero .th-illu { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 50% 46%, var(--tommy-tint) 0%, rgba(252,231,239,0) 70%); }
.toby-hero .th-illu .toby-figure { width: 100%; height: 100%; }
.toby-hero .th-illu .toby-illu { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.toby-hero .th-illu .toby-cue { display: none; }
.toby-hero .th-text { display: flex; flex-direction: column; flex: 1 1 auto; }
.toby-hero .th-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.toby-hero .th-sub { font-size: 12px; color: var(--muted); }
.toby-hero .th-cta { font-size: 12px; font-weight: 800; color: var(--tommy); white-space: nowrap; }

/* Benzina a bassa prominenza */
.fuel-banner.low { opacity: 0.96; box-shadow: none; border: 1px solid #EEE; }

/* Revolut consigliata */
.rv-banner.rv-primary { position: relative; border: 2px solid #6366F1; }
.rv-reco { position: absolute; top: -10px; left: 14px; background: #6366F1; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 100px; }

/* Barra cura mascotte (solo positivo) */
.toby-care { display: flex; gap: 6px; padding: 6px 14px 0; overflow-x: auto; scrollbar-width: none; }
.toby-care::-webkit-scrollbar { display: none; }
.toby-care-btn { white-space: nowrap; border-radius: 100px; padding: 7px 12px; font-size: 12px; font-weight: 700; border: 1px solid rgba(217,119,6,0.35); background: rgba(217,119,6,0.1); color: #8a5212; }
.toby-care-btn.done { background: var(--verde-light); border-color: #BBF7D0; color: var(--verde-dark); }
.toby-care-btn:active { transform: scale(0.96); }

.section-pad { padding: 14px 16px 0; }
.section-label { padding: 14px 16px 8px; font-size: 11px; color: var(--grigio); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.cambio-banner {
  background: linear-gradient(135deg, var(--brand), #14B765);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(14,157,87,.22);
}
.cambio-label { font-size: 10px; opacity: 0.9; letter-spacing: 0.6px; font-weight: 700; }
.cambio-rate { font-family: var(--display); font-size: 28px; font-weight: 800; margin-top: 3px; letter-spacing: -0.04em; }
.cambio-trend { font-size: 12px; background: rgba(255,255,255,0.22); padding: 5px 11px; border-radius: var(--r-pill); font-weight: 700; }

.fuel-banner {
  margin-top: 10px;
  background: white;
  border: 1px solid var(--bordo);
  border-left: 4px solid var(--oro);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.fuel-banner .fb-icon { display: flex; color: var(--oro); }
.fuel-banner .fb-icon .ico { width: 26px; height: 26px; }
.fuel-banner .fb-title { font-size: 12px; font-weight: 700; }
.fuel-banner .fb-sub { font-size: 11px; color: var(--grigio); margin-top: 1px; }
.fuel-banner .fb-price { margin-left: auto; font-family: 'DM Mono', monospace; font-weight: 600; color: var(--oro); font-size: 15px; }

.modules-grid { padding: 8px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.module-card {
  background: white;
  border-radius: 16px;
  padding: 16px 12px;
  border: 1px solid var(--bordo);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.module-card.verde { border-top: 3px solid var(--verde); }
.module-card.rosso { border-top: 3px solid var(--rosso); }
.module-card.blu { border-top: 3px solid var(--blu); }
.module-card.oro { border-top: 3px solid var(--oro); }
.module-icon { display: flex; }
.module-icon .ico { width: 26px; height: 26px; }
.module-card.verde .module-icon { color: var(--verde); }
.module-card.rosso .module-icon { color: var(--rosso); }
.module-card.blu .module-icon { color: var(--blu); }
.module-card.oro .module-icon { color: var(--oro); }
.module-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.module-desc { font-size: 10px; color: var(--grigio); line-height: 1.4; }

/* ── SEARCH (Colf) ── */
.search-bar {
  background: var(--grigio-light);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.search-bar input { border: none; background: transparent; outline: none; flex: 1; font-size: 13px; }

.filters-block { padding: 10px 16px 4px; }
.filters-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.filter-group-label { font-size: 10px; font-weight: 700; color: var(--grigio); letter-spacing: 0.5px; text-transform: uppercase; margin: 4px 0 6px; }
.filter-chip {
  background: white;
  border: 1px solid var(--bordo);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--testo);
  transition: all 0.12s;
}
.filter-chip.active { background: var(--verde); border-color: var(--verde); color: white; }
.filter-chip .chip-badge {
  display: inline-block; margin-left: 4px; font-size: 8px; font-weight: 800;
  letter-spacing: 0.3px; text-transform: uppercase; padding: 1px 5px; border-radius: 20px;
  background: linear-gradient(135deg, #D97706, #F59E0B); color: white; vertical-align: middle;
}
.filter-chip.active .chip-badge { background: rgba(255,255,255,0.28); }

.list-pad { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.result-count { padding: 4px 16px 0; font-size: 11px; color: var(--grigio); }

.profile-card {
  background: white;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--bordo);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.av-rosa { background: #FEE2E2; }
.av-verde { background: #DCFCE7; }
.av-blu { background: #DBEAFE; }
.av-giallo { background: #FEF9C3; }
.av-viola { background: #EDE9FE; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 14px; font-weight: 700; }
.profile-zone { font-size: 11px; color: var(--grigio); margin-top: 1px; }
.stars { font-size: 11px; color: #F59E0B; margin-top: 3px; }
.stars .rec { color: var(--grigio); }
.profile-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.profile-tag { font-size: 9px; padding: 3px 8px; border-radius: 20px; font-weight: 700; }
.tag-verde { background: var(--verde-light); color: var(--verde-dark); }
.tag-rosso { background: var(--rosso-light); color: var(--rosso); }
.tag-blu { background: var(--blu-light); color: var(--blu); }
.tag-premium { background: linear-gradient(135deg, #D97706, #F59E0B); color: white; }
.profile-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.profile-rate { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 600; color: var(--verde-dark); white-space: nowrap; }
.btn-contact {
  background: var(--verde); color: white; border: none;
  border-radius: 100px; padding: 7px 14px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.btn-contact:active { transform: scale(0.96); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--grigio); }
.empty-state .es-icon { font-size: 40px; margin-bottom: 10px; }
.empty-state .es-text { font-size: 13px; }

/* ── CAR POOLING ── */
.carpool-header {
  position: relative;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
  color: white;
  overflow: hidden;
}
.carpool-header::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
}
.carpool-title { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.carpool-sub { font-size: 12.5px; opacity: 0.88; }

.card {
  position: relative;
  margin: 14px 16px 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.card-label { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }

.route-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.route-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-verde { background: var(--verde); }
.dot-rosso { background: var(--rosso); }
.route-text { font-size: 13px; font-weight: 600; }
.route-connector { width: 2px; height: 16px; background: var(--bordo); margin-left: 4px; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.calc-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.calc-box .cb-label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-box .cb-value { font-family: 'DM Mono', monospace; font-size: 21px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.calc-box .cb-value small { font-size: 11px; color: var(--muted); }
.calc-box.hl { background: var(--brand-tint); border-color: #BBF7D0; }
.calc-box.hl .cb-value { color: var(--brand-700); }

.membro-row {
  background: var(--surface); border-radius: var(--r-md); padding: 11px 14px;
  display: flex; align-items: center; gap: 11px; border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.membro-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.membro-info { flex: 1; min-width: 0; }
.membro-name { font-size: 13.5px; font-weight: 700; }
.membro-zone { font-size: 11px; color: var(--muted); margin-top: 1px; }
.guida-badge { font-size: 10px; padding: 6px 11px; border-radius: var(--r-pill); font-weight: 800; }
.badge-verde { background: var(--brand-tint); color: var(--brand-700); }
.badge-gray { background: var(--grigio-light); color: var(--muted); }

.parking-card {
  background: var(--blu-light); border-radius: var(--r-md); padding: 12px 14px;
  border: 1px solid #BFDBFE; display: flex; gap: 10px; align-items: center;
}
.parking-icon { font-size: 24px; }
.parking-title { font-size: 12px; font-weight: 700; color: #1E40AF; }
.parking-sub { font-size: 10px; color: #3B82F6; margin-top: 1px; }
.parking-free { margin-left: auto; font-size: 9px; font-weight: 700; background: #DCFCE7; color: var(--verde-dark); padding: 4px 9px; border-radius: 20px; }

/* ── CAMBIO ── */
.cambio-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  padding: 28px 20px 30px;
  color: white;
  text-align: center;
  overflow: hidden;
}
.cambio-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.cambio-hero .ch-label { font-size: 11px; opacity: 0.9; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.cambio-hero .ch-rate { font-family: var(--display); font-size: 46px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.04em; }
.cambio-hero .ch-meta { font-size: 12px; opacity: 0.85; }

.alert-box {
  margin: 14px 16px 0; border-radius: 14px; padding: 14px 16px;
  display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.4;
}
.alert-box.high { background: var(--verde-light); border: 1px solid #BBF7D0; color: var(--verde-dark); }
.alert-box.low { background: var(--rosso-light); border: 1px solid #FECACA; color: var(--rosso); }
.alert-box.neutral { background: var(--blu-light); border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-box .ab-icon { font-size: 20px; }

.chart-wrap { margin: 14px 16px 0; background: white; border: 1px solid var(--bordo); border-radius: 16px; padding: 16px; }
.chart-wrap .cw-title { font-size: 11px; color: var(--grigio); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
svg.chart { width: 100%; height: 120px; display: block; }

.calc-row { display: flex; gap: 10px; align-items: flex-end; }
.calc-row .calc-field { flex: 1; }
.calc-amount {
  width: 100%; border: 1.5px solid var(--bordo); border-radius: 12px;
  padding: 12px 14px; font-size: 18px; font-family: 'DM Mono', monospace; outline: none;
}
.calc-amount:focus { border-color: var(--verde); }
.calc-equals { font-size: 22px; color: var(--grigio); padding-bottom: 10px; }
.calc-result {
  flex: 1; border: 1.5px solid var(--verde); background: var(--verde-light);
  border-radius: 12px; padding: 12px 14px; font-size: 18px;
  font-family: 'DM Mono', monospace; color: var(--verde-dark); font-weight: 600;
}
.calc-toggle { font-size: 11px; color: var(--blu); background: none; border: none; margin-top: 8px; font-weight: 700; }

.revolut-banner {
  margin: 14px 16px 0; background: linear-gradient(135deg, #0B1B3A, #1F3A8A);
  border-radius: 16px; padding: 16px; color: white; display: flex; align-items: center; gap: 12px;
}
.revolut-banner .rb-icon { font-size: 26px; }
.revolut-banner .rb-title { font-size: 13px; font-weight: 700; }
.revolut-banner .rb-sub { font-size: 11px; opacity: 0.8; margin-top: 1px; }
.revolut-banner a { margin-left: auto; background: white; color: #0B1B3A; text-decoration: none; font-size: 11px; font-weight: 700; padding: 8px 14px; border-radius: 100px; white-space: nowrap; }

.history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--bordo); font-size: 13px;
}
.history-item:last-child { border-bottom: none; }
.history-item .hi-from { font-family: 'DM Mono', monospace; font-weight: 600; }
.history-item .hi-to { font-family: 'DM Mono', monospace; color: var(--verde-dark); }
.history-item .hi-date { font-size: 10px; color: var(--grigio); }

/* ── CARBURANTE ── */
.fuel-header { background: linear-gradient(135deg, var(--oro), #F59E0B); padding: 22px 16px 20px; color: white; }
.fuel-header .fh-title { font-family: var(--display); font-size: 21px; font-weight: 700; }
.fuel-header .fh-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }

.sort-row { display: flex; gap: 8px; padding: 12px 16px 4px; font-size: 11px; align-items: center; }
.sort-row .sr-label { color: var(--grigio); font-weight: 600; }
.sort-btn { background: white; border: 1px solid var(--bordo); border-radius: 20px; padding: 5px 12px; font-size: 11px; font-weight: 600; }
.sort-btn.active { background: var(--oro); border-color: var(--oro); color: white; }

.station-card {
  background: white; border-radius: 16px; padding: 14px; border: 1px solid var(--bordo);
  display: flex; align-items: center; gap: 12px; position: relative;
  box-shadow: var(--shadow-sm);
}
.station-card.best { border-color: var(--oro); border-width: 1.5px; }
.station-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--oro-light); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.station-info { flex: 1; min-width: 0; }
.station-name { font-size: 13px; font-weight: 700; }
.station-zone { font-size: 11px; color: var(--grigio); margin-top: 1px; }
.station-dist { font-size: 10px; color: var(--grigio); margin-top: 2px; }
.station-price { text-align: right; }
.station-price .sp-value { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 600; }
.station-price .sp-unit { font-size: 9px; color: var(--grigio); }
.best-badge { position: absolute; top: -9px; left: 14px; background: var(--oro); color: white; font-size: 9px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.5px; }

.sponsor-banner {
  margin: 14px 16px; border: 1.5px dashed var(--bordo); border-radius: 16px;
  padding: 18px; text-align: center; color: var(--grigio); background: white;
}
.sponsor-banner .sb-tag { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--oro); }
.sponsor-banner .sb-text { font-size: 12px; margin-top: 4px; }

/* ── BUROCRAZIA ── */
.guide-item {
  background: white; border: 1px solid var(--bordo); border-radius: 14px;
  padding: 14px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.guide-icon { font-size: 24px; }
.guide-info { flex: 1; }
.guide-title { font-size: 13px; font-weight: 700; }
.guide-desc { font-size: 11px; color: var(--grigio); margin-top: 2px; line-height: 1.4; }
.guide-arrow { color: var(--grigio); font-size: 18px; }

/* ── PROFILE ── */
.profile-hero { background: white; padding: 26px 20px; text-align: center; border-bottom: 1px solid var(--bordo); }
.profile-hero .ph-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-700); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 10px; }
.profile-hero .ph-name { font-family: var(--display); font-size: 20px; font-weight: 700; }
.profile-hero .ph-zone { font-size: 12px; color: var(--grigio); margin-top: 2px; }
/* Form "I tuoi dati" */
.prof-form-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }
.prof-form .field-label { margin-top: 2px; }
.prof-form .input { margin-bottom: 12px; }
.settings-row {
  background: white; border: 1px solid var(--bordo); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.settings-row .sr-icon { font-size: 20px; }
.settings-row .sr-label { flex: 1; font-size: 13px; font-weight: 600; }
.settings-row .sr-value { font-size: 12px; color: var(--grigio); }
.btn-logout { width: calc(100% - 32px); margin: 8px 16px; background: var(--rosso-light); color: var(--rosso); border: none; border-radius: 100px; padding: 13px; font-weight: 700; font-size: 14px; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 50;
}
.bottom-nav.hidden { display: none; }
.nav-item {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: var(--faint); font-weight: 600; flex: 1;
  min-height: 44px; justify-content: center;
  transition: color .18s ease, transform .12s ease;
}
.nav-item:active { transform: scale(.92); }
.nav-item.active { color: var(--brand); font-weight: 700; }
.nav-item .nav-icon { display: flex; align-items: center; justify-content: center; position: relative; padding: 4px 14px; border-radius: var(--r-pill); transition: background .18s ease; }
.nav-item .nav-ico { width: 24px; height: 24px; transition: stroke-width .18s ease; }
/* Stato attivo "nativo": pillola tenue + tratto piu marcato */
.nav-item.active .nav-icon { background: var(--brand-tint); }
.nav-item.active .nav-ico { stroke-width: 2.3; }
.nav-item[data-screen="toby"].active .nav-icon { background: var(--tommy-tint); }
.nav-emoji { font-size: 22px; line-height: 24px; }
.nav-item.nav-agent.active { color: var(--ink); }
.nav-item[data-screen="toby"].active { color: var(--tommy); }
.nav-item[data-screen="falco"].active { color: var(--brand); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--testo); color: white; padding: 12px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 100; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: fadeUp 0.4s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }

/* loading skeleton */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; color: transparent; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ════════════════════════════════════════
   AGENTI AI — FALCO 🦅 / TOBY 🤝
   ════════════════════════════════════════ */

/* Bottone fisso "Chiedi a Falco" */
.falco-fab {
  position: fixed;
  right: 16px;
  bottom: 84px;
  left: auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0A1A12, #00321C);
  color: white;
  border: 1.5px solid rgba(0,146,70,0.6);
  border-radius: 100px;
  padding: 10px 16px 10px 12px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 0 rgba(0,146,70,0.5);
  animation: falcoPulse 2.6s ease-in-out infinite;
}
@media (min-width: 480px) { .falco-fab { right: calc(50% - 220px + 16px); } }
.falco-fab.hidden { display: none; }
.falco-fab:active { transform: scale(0.97); }
.falco-fab-emoji { font-size: 20px; }
@keyframes falcoPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 0 rgba(0,146,70,0.45); }
  50% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 8px rgba(0,146,70,0); }
}

/* Schermata agente (layout chat a tutta altezza, sopra la bottom-nav) */
.agent-screen { display: flex; flex-direction: column; height: 100vh; padding-bottom: 60px; }
.screen#screen-falco, .screen#screen-toby { padding-bottom: 0; }

.agent-screen.falco { background: radial-gradient(120% 60% at 50% 0%, #0E2A1C 0%, #0A1410 55%, #070C0A 100%); color: #EAF3EE; }
.agent-screen.toby  { background: radial-gradient(120% 60% at 50% 0%, #FFF3E2 0%, #FFEAD2 60%, #FBE2C6 100%); color: #4A2F12; }

/* Header agente */
.agent-header {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 16px 14px;
  flex-shrink: 0; z-index: 5;
}
.agent-screen.falco .agent-header { background: linear-gradient(180deg, rgba(7,12,10,0.96), rgba(7,12,10,0.6)); border-bottom: 1px solid rgba(255,255,255,0.06); }
.agent-screen.toby  .agent-header { background: linear-gradient(180deg, rgba(255,243,226,0.96), rgba(255,243,226,0.5)); border-bottom: 1px solid rgba(217,119,6,0.15); }
.agent-back { background: none; border: none; font-size: 22px; color: inherit; opacity: 0.8; width: 28px; }
.agent-id { flex: 1; }
.agent-name { font-family: var(--display); font-size: 20px; font-weight: 700; }
.agent-tag { font-size: 11px; opacity: 0.7; margin-top: 1px; }
.agent-voice { background: rgba(127,127,127,0.15); border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; color: inherit; }

/* Orb pulsante */
.agent-orb {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.agent-orb .agent-emoji { font-size: 24px; position: relative; z-index: 2; }
/* Avatar aquila dentro l'orb (riempie il cerchio, inquadra la testa) */
.agent-orb .falco-figure { width: 100%; height: 100%; position: relative; z-index: 2; }
.agent-orb .falco-illu { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; border-radius: 50%; display: block; }
.agent-orb .falco-fallback { font-size: 24px; }
.falco-orb { background: radial-gradient(circle, #0c3a22, #062012); box-shadow: 0 0 0 2px rgba(0,146,70,0.5); overflow: hidden; }
.intro-orb { overflow: hidden; }
.toby-orb  { background: radial-gradient(circle, #FFD9A8, #F7B765); box-shadow: 0 0 0 2px rgba(217,119,6,0.45); }
.agent-orb::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  opacity: 0; transition: opacity 0.2s;
}
.falco-orb::before { box-shadow: 0 0 0 2px rgba(0,146,70,0.5); }
.toby-orb::before  { box-shadow: 0 0 0 2px rgba(217,119,6,0.5); }
.agent-orb.speaking { animation: orbPulse 1s ease-in-out infinite; }
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(127,127,127,0.4), 0 0 0 0 rgba(127,127,127,0.35); }
  50% { box-shadow: 0 0 0 2px rgba(127,127,127,0.4), 0 0 0 12px rgba(127,127,127,0); }
}
.falco-orb.speaking { animation: orbPulseFalco 1s ease-in-out infinite; }
@keyframes orbPulseFalco {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,146,70,0.6), 0 0 0 0 rgba(0,179,89,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(0,146,70,0.6), 0 0 0 14px rgba(0,179,89,0); }
}
.toby-orb.speaking { animation: orbPulseToby 1.2s ease-in-out infinite; }
@keyframes orbPulseToby {
  0%, 100% { box-shadow: 0 0 0 2px rgba(217,119,6,0.55), 0 0 0 0 rgba(245,158,11,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(217,119,6,0.55), 0 0 0 14px rgba(245,158,11,0); }
}

/* Lista messaggi */
.agent-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg-row { display: flex; align-items: flex-end; gap: 8px; animation: fadeUp 0.3s ease both; }
.msg-row.u { justify-content: flex-end; }
.msg-ava { width: 26px; height: 26px; flex-shrink: 0; font-size: 18px; text-align: center; }
.bubble {
  max-width: 78%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.45;
  word-wrap: break-word;
}
.agent-screen.falco .bubble.bot { background: rgba(255,255,255,0.07); border: 1px solid rgba(0,146,70,0.25); color: #EAF3EE; border-bottom-left-radius: 5px; }
.agent-screen.falco .bubble.usr { background: var(--verde); color: white; border-bottom-right-radius: 5px; }
.agent-screen.toby .bubble.bot { background: white; border: 1px solid rgba(217,119,6,0.2); color: #3a2a16; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.agent-screen.toby .bubble.usr { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; border-bottom-right-radius: 5px; }

/* Typing indicator */
.bubble.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: typing 1s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.3; } 30% { transform: translateY(-4px); opacity: 0.9; } }

/* Quick replies / mood chips */
.agent-quick { display: flex; gap: 7px; padding: 6px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.agent-quick::-webkit-scrollbar { display: none; }
.agent-quick.inline-yesno { padding: 2px 0 0 34px; }
.agent-chip {
  white-space: nowrap; border-radius: 100px; padding: 7px 14px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; background: rgba(127,127,127,0.12); color: inherit;
}
.agent-screen.falco .agent-chip { background: rgba(0,146,70,0.14); border-color: rgba(0,146,70,0.4); color: #CFEFDD; }
.agent-screen.falco .agent-chip:active { background: rgba(0,146,70,0.3); }
.agent-chip.toby-chip { background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.35); color: #8a5212; }
.agent-chip.toby-chip:active { background: rgba(217,119,6,0.25); }

/* Input */
.agent-input { display: flex; gap: 8px; padding: 10px 14px; flex-shrink: 0; }
.agent-screen.falco .agent-input { background: linear-gradient(0deg, #070C0A, rgba(7,12,10,0.85)); border-top: 1px solid rgba(255,255,255,0.06); }
.agent-screen.toby .agent-input { background: linear-gradient(0deg, #FBE2C6, rgba(251,226,198,0.85)); border-top: 1px solid rgba(217,119,6,0.15); }
.agent-input input {
  flex: 1; border-radius: 100px; padding: 12px 16px; font-size: 14px; outline: none; border: 1.5px solid transparent;
}
.agent-screen.falco .agent-input input { background: rgba(255,255,255,0.08); color: white; border-color: rgba(0,146,70,0.3); }
.agent-screen.falco .agent-input input::placeholder { color: rgba(234,243,238,0.5); }
.agent-screen.toby .agent-input input { background: white; color: #3a2a16; border-color: rgba(217,119,6,0.3); }
.agent-send {
  width: 44px; height: 44px; border-radius: 50%; border: none; color: white; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.falco-send { background: var(--verde); }
.toby-send { background: linear-gradient(135deg, #F59E0B, #D97706); }
.agent-send:active { transform: scale(0.94); }

/* ── MESSAGGI VOCALI ── */
.agent-mic {
  width: 44px; height: 44px; border-radius: 50%; border: none; color: white;
  font-size: 18px; flex-shrink: 0; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.1s, background 0.15s;
}
.falco-mic { background: rgba(0,146,70,0.85); }
.toby-mic { background: linear-gradient(135deg, #F59E0B, #D97706); opacity: 0.92; }
.agent-mic.hidden { display: none; }
.agent-mic.recording { background: var(--rosso) !important; transform: scale(1.12); animation: micPulse 1s infinite; }
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206,43,55,0.55); }
  50% { box-shadow: 0 0 0 12px rgba(206,43,55,0); }
}
.mic-hint { text-align: center; font-size: 10.5px; opacity: 0.55; padding: 0 0 10px; }

.rec-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 14px 8px; padding: 9px 14px; border-radius: 100px;
  animation: fadeUp 0.2s ease both;
}
.rec-bar.falco { background: rgba(206,43,55,0.16); border: 1px solid rgba(206,43,55,0.45); color: #FBE3E5; }
.rec-bar.toby { background: rgba(206,43,55,0.12); border: 1px solid rgba(206,43,55,0.4); color: #7f1d1d; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rosso); flex-shrink: 0; animation: recDot 1s infinite; }
@keyframes recDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.rec-wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 24px; overflow: hidden; }
.rec-wave i { width: 3px; height: 6px; background: var(--rosso); border-radius: 3px; animation: recWave 0.9s ease-in-out infinite; }
.rec-wave i:nth-child(2n) { animation-delay: 0.12s; }
.rec-wave i:nth-child(3n) { animation-delay: 0.28s; }
.rec-wave i:nth-child(4n) { animation-delay: 0.42s; }
.rec-wave i:nth-child(5n) { animation-delay: 0.56s; }
@keyframes recWave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.rec-timer { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 600; color: var(--rosso); flex-shrink: 0; }
.rec-hint { font-size: 10px; opacity: 0.75; flex-shrink: 0; }

.voice-tag { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; opacity: 0.9; margin-bottom: 4px; }

/* ── FEEDBACK 👍👎 ── */
.bot-col { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.bot-col .bubble { max-width: 100%; }
.fb-row { display: flex; gap: 4px; margin: 3px 0 0 4px; }
.fb-btn { background: transparent; border: none; font-size: 13px; line-height: 1; padding: 3px 5px; border-radius: 8px; opacity: 0.45; transition: opacity 0.15s, transform 0.1s; }
.fb-btn:hover { opacity: 0.8; }
.fb-btn:active { transform: scale(0.9); }
.fb-btn.chosen { opacity: 1; }
.fb-btn:disabled { cursor: default; }
.fb-btn:disabled:not(.chosen) { opacity: 0.2; }

/* ── LINK REALI: banner CambiaValute, bottoni, disclaimer ── */
.cv-banner { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: 0 8px 22px rgba(14,157,87,0.22); }
.cv-head { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cv-emoji { font-size: 16px; }
.cv-sub { font-size: 12px; opacity: 0.92; line-height: 1.45; margin: 6px 0 12px; }
.cv-btn { width: 100%; background: #fff; color: var(--verde-dark); border: none; border-radius: 100px; padding: 12px; font-weight: 800; font-size: 14px; }
.cv-btn:active { transform: scale(0.98); }
.cv-bonus { font-size: 11px; font-weight: 700; text-align: center; margin-top: 9px; background: rgba(255,255,255,0.18); padding: 6px 10px; border-radius: 100px; }
.cv-mini { width: 100%; margin-top: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border: none; border-radius: var(--r-md); padding: 11px; font-weight: 700; font-size: 12.5px; box-shadow: var(--sh-sm); }
.cv-mini:active { transform: scale(0.99); }

/* Banner Revolut (dopo CambiaValute) */
.rv-banner { background: linear-gradient(135deg, #0A1A2F, #122C4A); color: #fff; border-radius: 16px; padding: 16px; margin-top: 10px; box-shadow: 0 8px 22px rgba(10,26,47,0.3); }
.rv-head { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rv-emoji { font-size: 16px; }
.rv-sub { font-size: 12px; opacity: 0.85; line-height: 1.45; margin: 6px 0 12px; }
.rv-btn { width: 100%; background: var(--verde); color: #fff; border: none; border-radius: 100px; padding: 12px; font-weight: 800; font-size: 14px; }
.rv-btn:active { transform: scale(0.98); }
.rv-bonus { font-size: 11px; font-weight: 700; text-align: center; margin-top: 9px; background: rgba(255,255,255,0.12); padding: 6px 10px; border-radius: 100px; }

.calc-note { font-size: 11px; color: var(--grigio); line-height: 1.45; margin: 10px 0 2px; }

/* Stipendio mensile + risparmio */
.sal-out { font-size: 22px; margin: 10px 0 2px; color: var(--testo); }
.sal-out b { font-family: 'DM Mono', monospace; color: var(--verde-dark); }
.sal-out span { font-size: 13px; color: var(--grigio); }
.sal-savings { font-size: 13px; font-weight: 700; color: var(--verde-dark); background: var(--verde-light); border: 1px solid #BBF7D0; border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; line-height: 1.4; }
/* Toggle avviso cambio favorevole */
.alert-toggle { display: block; width: calc(100% - 32px); margin: 14px 16px 0; background: #fff; border: 1.5px solid var(--bordo); border-radius: 100px; padding: 12px; font-weight: 700; font-size: 13px; color: var(--testo); }
.alert-toggle.on { background: var(--verde-light); border-color: #BBF7D0; color: var(--verde-dark); }
.alert-toggle:active { transform: scale(0.99); }

/* CTA primaria in-app (azione dominante della schermata) */
.cta {
  width: 100%; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--r-md); padding: 14px 16px;
  font-family: var(--ui); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 8px 18px rgba(14,157,87,.28);
  transition: transform .15s ease, filter .2s ease;
}
.cta:hover { filter: brightness(1.03); }
.cta:active { transform: scale(.98); }
.cta .cta-ico { width: 18px; height: 18px; }
.cta.on { background: var(--brand-700); }

/* Raccomandazione secondaria (link esterni, mai dominante) */
.reco { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.reco .reco-fl { color: var(--brand-700); font-weight: 700; }
.reco .alt {
  color: var(--brand-700); font-weight: 700; text-decoration: none;
  white-space: nowrap; cursor: pointer; border-radius: var(--r-sm); padding: 1px 2px;
}
.reco .alt:active { opacity: .65; }
.ext-arrow { vertical-align: -1px; opacity: .9; }

.dual-btn { display: flex; gap: 8px; }
.dual-btn .btn-primary, .dual-btn .btn-outline { flex: 1; }
.dual-btn .btn-primary { margin: 0; }
.tcs-note { font-size: 11px; color: var(--grigio); text-align: center; margin-top: 8px; }

.maps-btn { background: var(--blu-light); color: var(--blu); border: 1px solid #BFDBFE; border-radius: 100px; padding: 7px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.maps-btn:active { transform: scale(0.96); }

.module-disclaimer { font-size: 10.5px; color: var(--grigio); line-height: 1.5; padding: 14px 18px 22px; text-align: center; opacity: 0.85; }

/* ── BUROCRAZIA: card referral ── */
.buro-card { background: #fff; border: 1px solid var(--bordo); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.buro-head { font-family: var(--display); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.buro-ic { font-size: 18px; }
.buro-text { font-size: 12.5px; color: var(--grigio); line-height: 1.45; margin: 6px 0 12px; }
.buro-links { display: flex; gap: 8px; }
.buro-link { flex: 1; background: var(--verde-light); color: var(--verde-dark); border: 1px solid #BBF7D0; border-radius: 100px; padding: 10px; font-weight: 700; font-size: 12.5px; }
.buro-link:active { transform: scale(0.98); }

/* CTA Bakeca + box "app gratuita" */
.bakeca-cta { width: 100%; background: white; border: 1.5px dashed var(--rosso); color: var(--rosso); border-radius: 14px; padding: 13px; font-weight: 700; font-size: 12.5px; }
.bakeca-cta:active { transform: scale(0.99); }
.free-box { margin: 8px 16px 16px; background: var(--verde-light); border: 1px solid #BBF7D0; border-radius: 16px; padding: 16px; }
.free-box .fbx-title { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--verde-dark); margin-bottom: 6px; }
.free-box .fbx-body { font-size: 12.5px; color: #166534; line-height: 1.5; }

/* ── Falco hero card (protagonista: "vede tutto") ── */
.falco-hero {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(135deg, #0B2A1C, #0E3A26);
  border: 1px solid #15452E; border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: var(--sh-md); color: #fff;
}
.falco-hero .fh-avatar {
  width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), rgba(255,255,255,0));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.falco-figure { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.falco-illu { width: 54px; height: 54px; object-fit: contain; display: block; }
.falco-fallback { font-size: 30px; align-items: center; justify-content: center; }
.falco-hero .fh-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.falco-hero .fh-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.falco-hero .fh-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  background: rgba(20,183,101,.22); color: #7DE8AE; padding: 2px 8px; border-radius: var(--r-pill); }
.falco-hero .fh-tip { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.82);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.falco-hero .fh-arrow { font-size: 22px; color: rgba(255,255,255,.55); flex: 0 0 auto; }
.falco-hero:active { transform: scale(.99); }

.tcs-link { display: block; width: 100%; background: none; border: none; text-align: center; color: var(--grigio); font-size: 10.5px; padding: 8px 0 0; text-decoration: underline; }

.weekly-note { text-align: center; font-size: 12px; font-weight: 600; color: var(--verde-dark); padding: 8px 16px 4px; }

.contact-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 210; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.contact-overlay.open { opacity: 1; }
.contact-sheet {
  background: #fff; width: 100%; max-width: 440px; border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); position: relative;
  transform: translateY(20px); transition: transform 0.24s cubic-bezier(.2,.8,.2,1); text-align: center;
}
.contact-overlay.open .contact-sheet { transform: translateY(0); }
.contact-close { position: absolute; top: 14px; right: 14px; background: var(--grigio-light); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; }
.contact-emoji { font-size: 34px; }
.contact-title { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 8px 0 4px; }
.contact-sub { font-size: 13px; color: var(--grigio); margin-bottom: 14px; }
.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-link { background: var(--verde-light); color: var(--verde-dark); border: 1px solid #BBF7D0; border-radius: 12px; padding: 13px; font-weight: 700; font-size: 14px; }
.contact-link:active { transform: scale(0.99); }
.contact-foot { font-size: 12px; color: var(--grigio); margin-top: 14px; line-height: 1.4; }
.contact-input { width: 100%; border: 1.5px solid var(--bordo); border-radius: 12px; padding: 13px 15px; font-size: 15px; outline: none; text-align: center; }
.contact-input:focus { border-color: var(--verde); }
.contact-send { width: 100%; margin-top: 12px; background: var(--verde); color: #fff; border: none; border-radius: 100px; padding: 14px; font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(0,146,70,0.22); }
.contact-send:active { transform: scale(0.99); }
#contact-form .field-error { margin: 8px 0 0; text-align: center; }

/* ── GUIDE INTERNE (Burocrazia) ── */
.guide-header { display: flex; align-items: center; gap: 8px; background: #fff; padding: 22px 16px 14px; border-bottom: 1px solid var(--bordo); }
.guide-h-title { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.25; }
.guide-body { padding: 16px; }
.g-lead { font-size: 14px; line-height: 1.55; color: var(--testo); margin-bottom: 14px; font-weight: 500; }
.g-sec { background: #fff; border: 1px solid var(--bordo); border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.g-sec .g-h { font-weight: 800; font-size: 13px; margin-bottom: 6px; color: var(--testo); }
.g-sec p { font-size: 13px; line-height: 1.55; color: #374151; }
.g-sec ul { list-style: none; margin: 0; }
.g-sec li { font-size: 13px; line-height: 1.6; color: #374151; padding-left: 2px; }
.g-sec.warn { background: #FFFBEB; border-color: #FDE68A; }
.g-sec.warn .g-h { color: #92400E; }
.g-sec.ok { border-left: 3px solid var(--verde); }
.g-sec.falco-tip-box { background: linear-gradient(135deg, #0E2A1C, #07140F); border: none; }
.g-sec.falco-tip-box .g-h { color: #6EE7A8; }
.g-sec.falco-tip-box p { color: #EAF3EE; }
.guide-cta { width: 100%; margin-top: 8px; background: var(--verde); color: #fff; border: none; border-radius: 100px; padding: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(0,146,70,0.22); }
.guide-cta.falco { background: linear-gradient(135deg, #0E2A1C, #07140F); border: 1px solid rgba(0,146,70,0.5); }
.guide-cta:active { transform: scale(0.99); }

/* ════════════════════════════════════════
   V2 — TRIAL/PRICING · MENU · CARPOOL EDIT · FALCO INTRO · MISC
   ════════════════════════════════════════ */

/* Pulsante indietro */
.back-btn { background: none; border: none; font-size: 22px; color: var(--testo); width: 30px; flex-shrink: 0; line-height: 1; }
.back-btn.light { color: white; position: absolute; left: 12px; top: 20px; z-index: 3; }
.fuel-header, .carpool-header { position: relative; }
.fuel-header .back-btn.light, .carpool-header .back-btn.light { top: 22px; }
.fuel-header .fh-title, .fuel-header .fh-sub { padding-left: 34px; }
.carpool-header .carpool-title, .carpool-header .carpool-sub { padding-left: 0; }

/* Hamburger */
.hamburger { background: none; border: none; width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 8px; }
.hamburger span { display: block; height: 2px; background: var(--testo); border-radius: 2px; }

/* Trial line onboarding */
.trial-line { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--verde-dark); }

/* Falco tip card (home) */
.falco-tip {
  width: 100%; text-align: left; background: linear-gradient(135deg, #0E2A1C, #07140F);
  color: #EAF3EE; border: 1px solid rgba(0,146,70,0.5); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); animation: fadeUp 0.4s ease both;
}
.falco-tip .ft-head { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #6EE7A8; display: flex; align-items: center; gap: 6px; }
.falco-tip .ft-emoji { font-size: 15px; }
.falco-tip .ft-body { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }

/* Share home button */
.share-home {
  margin: 18px 16px 24px; width: calc(100% - 32px); background: white; border: 1.5px dashed var(--verde);
  color: var(--verde-dark); border-radius: 14px; padding: 14px; font-weight: 700; font-size: 13px;
}
.share-home:active { transform: scale(0.99); }

/* Skeleton banner */
.skeleton-banner { background: linear-gradient(135deg,#0a3a22,#063018); display: flex; align-items: center; }
.skeleton-banner .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.12) 75%); background-size: 200% 100%; }

/* ── PRICING ── */
.pricing-wrap { padding: 14px 16px 28px; }
.value-hero { text-align: center; padding: 8px 0 14px; }
.value-hero .vh-big { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--verde-dark); }
.value-hero .vh-sub { font-size: 15px; font-weight: 700; color: var(--grigio); margin-top: 2px; }
.urgency-pill { background: linear-gradient(135deg,#CE2B37,#FF4757); color: white; font-size: 12px; font-weight: 700; text-align: center; padding: 9px 14px; border-radius: 100px; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(206,43,55,0.3); }
.plan-card { background: white; border: 1px solid var(--bordo); border-radius: 18px; padding: 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); position: relative; }
.plan-card.verde { border-top: 3px solid var(--verde); }
.plan-card.rosso { border-top: 3px solid var(--rosso); }
.plan-card.blu { border-top: 3px solid var(--blu); }
.plan-card.best { border: 2px solid var(--rosso); box-shadow: 0 10px 30px rgba(206,43,55,0.15); }
.plan-best { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--rosso); color: white; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 100px; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.plan-name { font-family: var(--display); font-size: 20px; font-weight: 700; }
.plan-price b { font-size: 24px; font-family: 'DM Mono', monospace; }
.plan-price span { font-size: 12px; color: var(--grigio); }
.plan-feats { list-style: none; margin-bottom: 14px; }
.plan-feats li { font-size: 13px; padding: 5px 0; color: var(--testo); border-bottom: 1px solid var(--grigio-light); }
.plan-feats li:last-child { border-bottom: none; }
.plan-cta { font-size: 14px; }
.guarantee { background: var(--verde-light); border: 1px solid #BBF7D0; border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--verde-dark); margin-top: 6px; }
.trial-note { text-align: center; font-size: 12px; color: var(--grigio); margin-top: 12px; }

/* ── MENU OVERLAY ── */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; opacity: 0; transition: opacity 0.2s; }
.menu-overlay.hidden { display: none; }
.menu-overlay.open { opacity: 1; }
.menu-sheet {
  position: absolute; top: 0; right: 0; height: 100%; width: 82%; max-width: 340px; background: white;
  transform: translateX(100%); transition: transform 0.24s cubic-bezier(.2,.8,.2,1); padding: 20px 16px;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.menu-overlay.open .menu-sheet { transform: translateX(0); }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.menu-title { font-family: var(--display); font-size: 22px; font-weight: 800; }
.menu-title::after { content: ' 🇮🇹🇨🇭'; font-size: 14px; }
.menu-close { background: var(--grigio-light); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 14px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 14px 8px; border-bottom: 1px solid var(--grigio-light); font-size: 14px; font-weight: 600; color: var(--testo); }
.menu-item:active { background: var(--crema); }
.menu-ic { font-size: 18px; width: 24px; text-align: center; }
.menu-label { flex: 1; }
.menu-arrow { color: var(--grigio); }
.menu-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rosso); margin-left: 4px; vertical-align: middle; }
.menu-foot { margin-top: auto; text-align: center; font-size: 11px; color: var(--grigio); padding-top: 14px; }

/* ── NAV badge ── */
.nav-icon { position: relative; }
.nav-badge { position: absolute; top: -4px; right: -8px; min-width: 15px; height: 15px; padding: 0 4px; background: var(--rosso); color: white; font-size: 9px; font-weight: 800; border-radius: 100px; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px white; }

/* ── OFFLINE bar ── */
.offline-bar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 600; text-align: center; padding: 8px; z-index: 150; }
.offline-bar.hidden { display: none; }

/* ── NOTIFICATIONS ── */
.notif-row { background: white; border: 1px solid var(--bordo); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.notif-text { font-size: 13px; line-height: 1.4; }
.notif-date { font-size: 10px; color: var(--grigio); margin-top: 4px; }

/* ── CARPOOL EDIT ── */
.edit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grigio-light); }
.edit-row:last-of-type { border-bottom: none; }
.edit-lbl { font-size: 13px; font-weight: 600; }
.edit-time, .edit-select { border: 1.5px solid var(--bordo); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-family: inherit; background: white; outline: none; max-width: 58%; }
.edit-time:focus, .edit-select:focus { border-color: var(--verde); }
.skip-toggle { width: 100%; margin-top: 10px; border: 1.5px solid var(--bordo); background: white; border-radius: 100px; padding: 11px; font-weight: 700; font-size: 13px; color: var(--testo); }
.skip-toggle.on { background: var(--rosso-light); border-color: #FECACA; color: var(--rosso); }
.member-x { background: var(--grigio-light); border: none; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; color: var(--grigio); flex-shrink: 0; margin-left: 6px; }
.member-x:active { background: var(--rosso-light); color: var(--rosso); }
.membro-row.skipped { opacity: 0.6; }
.guida-badge { cursor: pointer; }
.btn-outline { width: 100%; background: white; border: 1.5px dashed var(--verde); color: var(--verde-dark); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 13px; }
.btn-outline:disabled { border-color: var(--bordo); color: var(--grigio); cursor: default; }

/* ── FALCO INTRO ── */
.falco-intro { flex: 1; overflow-y: auto; padding: 10px 22px 24px; text-align: center; color: #EAF3EE; }
.intro-orb { width: 76px; height: 76px; margin: 6px auto 16px; }
.intro-orb .agent-emoji { font-size: 40px; }
.intro-h { font-family: var(--display); font-size: 26px; margin-bottom: 10px; }
.intro-p { font-size: 14px; line-height: 1.55; opacity: 0.9; margin-bottom: 10px; }
.intro-list { list-style: none; text-align: left; max-width: 320px; margin: 4px auto 14px; }
.intro-list li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.intro-cta { font-weight: 700; color: #6EE7A8; }
.intro-quick { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.intro-quick .agent-chip { white-space: normal; }
.intro-start { max-width: 320px; margin: 0 auto; }
.inline-bands { flex-wrap: wrap; padding: 4px 0 0 34px; }

/* ── TOBY → FALCO CTA ── */
.toby-falco-cta {
  margin: 0 14px 2px; background: linear-gradient(135deg, #0E2A1C, #07140F); color: #EAF3EE;
  border: 1px solid rgba(0,146,70,0.5); border-radius: 100px; padding: 10px 14px; font-size: 12px; font-weight: 700; width: calc(100% - 28px);
}

/* ════════════════════════════════════════
   MINI-AVATAR NEL TAB BAR (Falco / Tommy)
   ════════════════════════════════════════ */
.nav-item.nav-av .nav-icon { padding: 2px 14px; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; background: var(--brand-tint); }
.nav-avatar .toby-figure, .nav-avatar .falco-figure { width: 100%; height: 100%; }
.nav-avatar .toby-illu, .nav-avatar .falco-illu { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; border-radius: 50%; }
.nav-avatar .toby-cue { display: none; }
.nav-avatar .nav-emoji { font-size: 17px; }
.nav-item[data-screen="falco"] .nav-avatar { background: #0c3a22; }
.nav-item[data-screen="toby"] .nav-avatar { background: var(--tommy-tint); }
.nav-item.active .nav-avatar { box-shadow: 0 0 0 2px currentColor; }

/* ════════════════════════════════════════
   OVERLAY "IL PERSONAGGIO PARLA" (orb neon)
   ════════════════════════════════════════ */
.speak-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex;
  flex-direction: column; color: #fff;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease;
  --neon: var(--tommy-neon); --neon-2: #FFC8E0; --vol: 0;
  background: radial-gradient(120% 90% at 50% 18%, #3a1226 0%, #260b18 55%, #18060f 100%);
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
.speak-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.speak-overlay.falco {
  --neon: #FFC24B; --neon-2: #FFE2A6;
  background: radial-gradient(120% 90% at 50% 18%, #3a2a0c 0%, #221704 55%, #150d03 100%);
}
.spk-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.spk-who { display: flex; align-items: center; gap: 9px; }
.spk-name-top { font-family: var(--display); font-size: 18px; font-weight: 800; }
.spk-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--neon);
  background: color-mix(in srgb, var(--neon) 14%, transparent); border: 1px solid color-mix(in srgb, var(--neon) 35%, transparent);
  padding: 4px 10px; border-radius: var(--r-pill); text-transform: lowercase; }
.spk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: spkBlink 1s infinite; }
@keyframes spkBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.spk-x { background: rgba(255,255,255,.12); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; }

.spk-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 28px; text-align: center; }
.spk-orb { position: relative; width: 230px; height: 230px; display: grid; place-items: center; }
.spk-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--neon); opacity: 0; }
.spk-ring.r1 { animation: spkRipple 2.4s ease-out infinite; }
.spk-ring.r2 { animation: spkRipple 2.4s ease-out infinite .8s; }
.spk-ring.r3 { animation: spkRipple 2.4s ease-out infinite 1.6s; }
@keyframes spkRipple { 0% { transform: scale(.74); opacity: .5; } 80% { opacity: 0; } 100% { transform: scale(1.18); opacity: 0; } }
.spk-core {
  width: 186px; height: 186px; flex: 0 0 186px; border-radius: 50%; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #7a3a5c, #2e1622);
  border: 2.5px solid var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 30px -4px var(--neon), inset 0 0 26px rgba(255,255,255,.08);
  transform: scale(calc(1 + var(--vol) * .14));
  transition: transform .08s linear;
  animation: spkGlow 1.6s ease-in-out infinite;
}
.speak-overlay.falco .spk-core { background: radial-gradient(circle at 50% 35%, #3a2a0c, #1a1206); }
@keyframes spkGlow {
  0%,100% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--neon) 55%, transparent)); }
  50% { filter: drop-shadow(0 0 20px var(--neon)); }
}
.spk-core .toby-figure, .spk-core .falco-figure { width: 100%; height: 100%; }
/* IMPORTANTE: annullare il max-height base (.toby-illu) che schiaccerebbe il PNG in una banda */
.spk-core .toby-illu, .spk-core .falco-illu { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 30%; display: block; }
.spk-core .toby-cue { display: none; }
.spk-core .spk-emoji, .spk-core .agent-emoji { font-size: 76px; }

.spk-eq { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.spk-eq span { width: 5px; border-radius: 3px; background: linear-gradient(var(--neon-2), var(--neon)); box-shadow: 0 0 8px color-mix(in srgb, var(--neon) 60%, transparent); height: 7px; }
.spk-eq span:nth-child(1) { animation: spkBar 1s ease-in-out infinite; }
.spk-eq span:nth-child(2) { animation: spkBar .8s ease-in-out infinite .1s; }
.spk-eq span:nth-child(3) { animation: spkBar 1.2s ease-in-out infinite .2s; }
.spk-eq span:nth-child(4) { animation: spkBar .7s ease-in-out infinite .15s; }
.spk-eq span:nth-child(5) { animation: spkBar 1.1s ease-in-out infinite .05s; }
.spk-eq span:nth-child(6) { animation: spkBar .9s ease-in-out infinite .25s; }
.spk-eq span:nth-child(7) { animation: spkBar 1s ease-in-out infinite .12s; }
@keyframes spkBar { 0%,100% { height: 7px; } 50% { height: calc(14px + var(--vol) * 18px); } }
.spk-name { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.spk-name small { display: block; font-family: var(--ui); font-weight: 600; font-size: 13px; color: var(--neon-2); margin-top: 4px; }
.spk-caption { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); max-width: 320px; }
.spk-controls { display: flex; justify-content: center; gap: 16px; padding: 16px 0 28px; }
.spk-btn { width: 58px; height: 58px; border-radius: 50%; border: none; display: grid; place-items: center; }
.spk-stop { background: #fff; color: #06291b; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.spk-stop:active { transform: scale(.95); }

/* ── CARPOOL: banner coordinamento assenti ── */
.carpool-avviso {
  margin: 0 16px 14px;
  background: #FFF8F0;
  border: 1px solid #FECDA0;
}
.ca-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ca-icon { font-size: 18px; }
.ca-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ca-detail { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.4; }
.ca-btn { display: inline-flex; align-items: center; gap: 7px; width: 100%; justify-content: center;
  background: #25D366; color: #fff; border: none; border-radius: var(--r-pill);
  padding: 11px 16px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,211,102,.25); transition: transform .12s ease; }
.ca-btn:active { transform: scale(.97); }

/* ════════════════════════════════════════════════
   NINO — Argomenti da pausa caffè
   ════════════════════════════════════════════════ */
.nino-card {
  background: var(--surface);
  border: 1px solid #F0D8AA;
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: 0 2px 12px rgba(232,162,61,.12);
}
/* Header: avatar + nome + badge */
.nino-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nino-avatar-wrap { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--nino-tint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nino-figure { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.nino-illu { width: 44px; height: 44px; object-fit: cover; object-position: 50% 22%; display: block; border-radius: 50%; }
.nino-emoji-fb { font-size: 24px; }
.nino-head-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nino-nome { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.nino-badge { font-size: 11px; font-weight: 700; color: var(--nino-dark); }
.nino-badge-day { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  background: var(--nino-tint); color: var(--nino-dark); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
/* Contenuto */
.nino-frase { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-style: italic; line-height: 1.4; }
.nino-testo { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 10px; }
.nino-footer { font-size: 11.5px; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
/* Risposta di ieri */
.nino-ieri { background: var(--nino-tint); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; }
.nino-ieri-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--nino-dark); margin-bottom: 4px; }
.nino-ieri-risposta { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.nino-ieri-fonte { font-size: 10.5px; color: var(--muted); margin-top: 4px; opacity: .8; }
/* Share */
.nino-share { display: flex; gap: 7px; }
.nino-share-btn { display: inline-flex; align-items: center; gap: 5px; flex: 1; justify-content: center;
  border-radius: var(--r-pill); padding: 8px 6px; font-size: 12px; font-weight: 700; border: 1.5px solid transparent;
  background: var(--nino-tint); color: var(--nino-dark); transition: transform .12s ease, filter .15s ease; }
.nino-share-btn:active { transform: scale(.96); filter: brightness(.92); }
.nino-copy { background: var(--grigio-light); color: var(--muted); }
