/* ============================================================
   VaiMarche - Wizard registrazione, scelta tipo, attivazione
   ============================================================ */

.vm-reg-page {
    padding: 110px 0 80px;
    background: var(--vm-bg, #FAFAF8);
    min-height: 100vh;
}
.vm-reg-page--wizard { padding-top: 100px; }

/* ----- Choice page ----- */
.vm-reg-choice {
    max-width: 980px; margin: 0 auto;
}
.vm-reg-choice-header { text-align: center; margin-bottom: 40px; }
.vm-reg-choice-header h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800; color: var(--vm-dark, #1C1C1E);
    margin-bottom: 10px; letter-spacing: -.5px;
}
.vm-reg-choice-header p { color: var(--vm-text-muted, #8E8E93); font-size: 1.05rem; }
.vm-reg-choice-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.vm-reg-card {
    background: #fff; border: 1px solid var(--vm-border, #E5E5EA);
    border-radius: 20px; padding: 38px 32px; text-align: center;
    transition: all .3s; color: var(--vm-dark);
    text-decoration: none; display: block;
}
.vm-reg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    border-color: var(--vm-coral, #FF6B6B);
    color: var(--vm-dark);
}
.vm-reg-card-icon { font-size: 3.5rem; margin-bottom: 16px; }
.vm-reg-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.vm-reg-card p {
    color: var(--vm-text-muted); font-size: .92rem;
    line-height: 1.55; margin-bottom: 20px;
}
.vm-reg-card-cta {
    display: inline-block; font-weight: 600; font-size: .9rem;
    color: var(--vm-coral, #FF6B6B); transition: gap .2s;
}
.vm-reg-card--pro:hover { border-color: var(--vm-pink, #E84393); }
.vm-reg-card--pro .vm-reg-card-cta { color: var(--vm-pink, #E84393); }
.vm-reg-choice-login {
    text-align: center; margin-top: 36px;
    color: var(--vm-text-muted); font-size: .95rem;
}
.vm-reg-choice-login a { color: var(--vm-coral, #FF6B6B); font-weight: 600; }

@media (max-width: 720px) {
    .vm-reg-choice-cards { grid-template-columns: 1fr; }
    .vm-reg-card { padding: 28px 22px; }
}

/* ----- Wizard ----- */
.vm-wizard {
    max-width: 760px; margin: 0 auto;
    background: #fff; border: 1px solid var(--vm-border, #E5E5EA);
    border-radius: 20px; padding: 38px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.vm-wizard-header { text-align: center; margin-bottom: 28px; }
.vm-wizard-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2rem); font-weight: 800;
    color: var(--vm-dark, #1C1C1E); margin-bottom: 6px;
}
.vm-wizard-header p { color: var(--vm-text-muted); font-size: .95rem; }

.vm-wizard-progress {
    display: flex; align-items: center; justify-content: space-between;
    margin: 8px 0 32px; padding: 0 6px; position: relative; gap: 4px;
}
.vm-wizard-progress::before {
    content: ""; position: absolute; left: 22px; right: 22px; top: 17px; height: 2px;
    background: var(--vm-border, #E5E5EA); z-index: 0;
}
.vm-step-dot {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1;
}
.vm-step-dot span {
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 2px solid var(--vm-border, #E5E5EA);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--vm-text-muted);
    transition: all .2s;
}
.vm-step-dot em {
    font-style: normal; font-size: .72rem; color: var(--vm-text-muted);
    font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
}
.vm-step-dot.is-current span {
    background: var(--vm-coral, #FF6B6B); border-color: var(--vm-coral, #FF6B6B);
    color: #fff; transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(255,107,107,.35);
}
.vm-step-dot.is-current em { color: var(--vm-coral, #FF6B6B); }
.vm-step-dot.is-done span {
    background: var(--vm-coral-light, #FF8E8E);
    border-color: var(--vm-coral-light, #FF8E8E); color: #fff;
}
.vm-wizard-progress--compact .vm-step-dot span { width: 30px; height: 30px; font-size: .85rem; }
.vm-wizard-progress--compact::before { top: 14px; }

/* ----- Form ----- */
.vm-step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; color: var(--vm-dark); }
.vm-step-sub { color: var(--vm-text-muted); font-size: .9rem; margin-bottom: 22px; }
.vm-form { margin-top: 8px; }
.vm-form .vm-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.vm-field { margin-bottom: 16px; }
.vm-field > label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--vm-text, #3A3A3C); margin-bottom: 6px;
}
.vm-field > label small {
    color: var(--vm-text-muted); font-weight: 500; margin-left: 6px;
}
.vm-field input[type="text"],
.vm-field input[type="email"],
.vm-field input[type="password"],
.vm-field input[type="tel"],
.vm-field input[type="url"],
.vm-field input[type="date"],
.vm-field input[type="time"],
.vm-field input[type="number"],
.vm-field select,
.vm-field textarea {
    width: 100%; padding: 11px 14px; font-size: .94rem;
    font-family: inherit; color: var(--vm-dark);
    border: 1px solid var(--vm-border, #E5E5EA); border-radius: 10px;
    background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.vm-field input:focus, .vm-field select:focus, .vm-field textarea:focus {
    border-color: var(--vm-coral, #FF6B6B);
    box-shadow: 0 0 0 3px rgba(255,107,107,.12);
}
.vm-field textarea { min-height: 80px; resize: vertical; }
.vm-field small { display: block; color: var(--vm-text-muted); font-size: .78rem; margin-top: 4px; }
.vm-hint { color: var(--vm-text-muted); font-size: .78rem; margin-top: 4px; }
.vm-error { color: #DC2626; font-size: .8rem; margin-top: 4px; min-height: 0; }

/* Checkbox / chips */
.vm-checkbox {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; font-weight: 500; color: var(--vm-text);
    font-size: .9rem;
}
.vm-checkbox input { width: 18px; height: 18px; margin: 0; }
.vm-checkbox--inline { font-size: .82rem; }
.vm-checkbox--required span::after { content: ""; }

.vm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vm-chip {
    position: relative; cursor: pointer;
    background: #F5F4F1; border: 1px solid var(--vm-border, #E5E5EA);
    padding: 7px 14px; border-radius: 20px;
    font-size: .85rem; font-weight: 500; color: var(--vm-text);
    transition: all .15s;
}
.vm-chip:hover { border-color: var(--vm-coral, #FF6B6B); }
.vm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.vm-chip input:checked + span {
    color: #fff;
}
.vm-chip:has(input:checked) {
    background: var(--vm-coral, #FF6B6B);
    border-color: var(--vm-coral, #FF6B6B);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,107,107,.3);
}

/* Plan cards */
.vm-plan-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.vm-plan-card {
    border: 2px solid var(--vm-border, #E5E5EA); border-radius: 14px;
    padding: 18px; cursor: pointer; transition: all .2s; text-align: center;
    background: #fff;
}
.vm-plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.vm-plan-card strong { display: block; font-size: 1.05rem; color: var(--vm-dark); margin-bottom: 6px; }
.vm-plan-card small { display: block; color: var(--vm-text-muted); font-size: .78rem; line-height: 1.4; }
.vm-plan-card:has(input:checked) {
    border-color: var(--vm-coral, #FF6B6B);
    background: rgba(255,107,107,.05);
    box-shadow: 0 4px 14px rgba(255,107,107,.12);
}

/* Hours table */
.vm-hours-table { display: flex; flex-direction: column; gap: 6px; }
.vm-hours-row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px; background: #F9F9F7; border-radius: 8px;
    flex-wrap: wrap;
}
.vm-hours-day { font-weight: 700; width: 50px; color: var(--vm-dark); font-size: .85rem; }
.vm-hours-row input[type="time"] { width: 95px; padding: 6px 8px; font-size: .82rem; }
.vm-hours-row .vm-hours-sep { color: var(--vm-text-muted); margin: 0 4px; }
.vm-hours-row .vm-checkbox--inline { background: #fff; padding: 2px 8px; border-radius: 6px; }

/* FAQ/event pairs */
.vm-faq-pair, .vm-event-pair {
    background: #F9F9F7; border-radius: 10px; padding: 12px;
    margin-bottom: 10px;
}
.vm-faq-pair input, .vm-event-pair input {
    display: block; width: 100%; margin-bottom: 6px;
    padding: 8px 10px; border: 1px solid var(--vm-border);
    border-radius: 7px; font-size: .88rem; background: #fff;
}
.vm-faq-pair textarea, .vm-event-pair textarea {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--vm-border); border-radius: 7px;
    font-size: .88rem; background: #fff; font-family: inherit;
}
.vm-event-pair {
    display: grid; grid-template-columns: 2fr 1fr 2fr 1.5fr; gap: 8px;
}
.vm-event-pair input { margin: 0; }

/* Actions */
.vm-actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-top: 28px;
    padding-top: 22px; border-top: 1px solid var(--vm-border, #E5E5EA);
}
.vm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; padding: 11px 22px;
    font-family: inherit; font-weight: 600; font-size: .92rem;
    border-radius: 10px; text-decoration: none;
    transition: all .15s; min-width: 110px;
}
.vm-btn--lg { padding: 14px 28px; font-size: 1rem; }
.vm-btn--sm { padding: 7px 14px; font-size: .82rem; }
.vm-btn--primary {
    background: var(--vm-coral, #FF6B6B); color: #fff;
    box-shadow: 0 2px 10px rgba(255,107,107,.3);
}
.vm-btn--primary:hover {
    background: var(--vm-coral-dark, #E05555);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,107,107,.4);
}
.vm-btn--ghost {
    background: transparent; color: var(--vm-text);
    border: 1px solid var(--vm-border, #E5E5EA);
}
.vm-btn--ghost:hover { background: #F5F4F1; color: var(--vm-dark); }

/* Alerts */
.vm-alert {
    padding: 12px 16px; border-radius: 10px;
    margin-bottom: 18px; font-size: .9rem;
}
.vm-alert--error { background: rgba(220,38,38,.08); color: #DC2626; border: 1px solid rgba(220,38,38,.2); }
.vm-alert--success { background: rgba(34,197,94,.08); color: #15803D; border: 1px solid rgba(34,197,94,.2); }
.vm-alert ul { margin: 0; padding-left: 18px; }

/* Activation card */
.vm-activation { max-width: 560px; margin: 40px auto; }
.vm-activation-card {
    background: #fff; border: 1px solid var(--vm-border, #E5E5EA);
    border-radius: 20px; padding: 50px 36px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.vm-activation-card h1 { font-size: 1.6rem; font-weight: 800; margin: 12px 0; color: var(--vm-dark); }
.vm-activation-card p { color: var(--vm-text-muted); line-height: 1.55; margin-bottom: 16px; }
.vm-activation-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--vm-coral, #FF6B6B); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.8rem; font-weight: 700;
}
.vm-activation-card--ok .vm-activation-icon { background: #22C55E; }
.vm-activation-card--err .vm-activation-icon { background: #DC2626; }
.vm-activation-card--warn .vm-activation-icon { background: #F59E0B; }
.vm-activation-card .vm-btn { margin-top: 8px; }

/* TomSelect overrides */
.ts-wrapper.single .ts-control {
    border: 1px solid var(--vm-border, #E5E5EA) !important;
    border-radius: 10px !important;
    padding: 9px 12px !important;
    min-height: 42px !important;
    font-size: .94rem !important;
    background: #fff !important;
}
.ts-wrapper.focus .ts-control {
    border-color: var(--vm-coral, #FF6B6B) !important;
    box-shadow: 0 0 0 3px rgba(255,107,107,.12) !important;
}
.ts-dropdown { border-radius: 10px !important; box-shadow: 0 8px 28px rgba(0,0,0,.12) !important; }
.ts-dropdown .active { background: rgba(255,107,107,.08) !important; color: var(--vm-coral, #FF6B6B) !important; }

/* ============================================================
   Signup modal (triggered da chat AI)
   ============================================================ */
.vm-signup-modal {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.vm-signup-modal.is-open { display: flex; }
.vm-signup-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: vmFadeIn .2s ease;
}
.vm-signup-modal__dialog {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 24px;
    padding: 40px 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: vmModalIn .25s cubic-bezier(.22,1,.36,1);
}
.vm-signup-modal__close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: transparent; border: none; cursor: pointer;
    color: #8E8E93; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.vm-signup-modal__close:hover { background: #F5F4F1; color: #1C1C1E; }
.vm-signup-modal__brand { margin-bottom: 20px; }
.vm-signup-modal__brand img { height: 36px; }
.vm-signup-modal__eyebrow {
    color: #8E8E93; font-size: .85rem; margin-bottom: 4px; font-weight: 500;
}
.vm-signup-modal__title {
    font-size: 1.55rem; font-weight: 800; color: #1C1C1E;
    margin: 0 0 24px; letter-spacing: -.4px;
}
.vm-signup-modal__form { margin-bottom: 14px; }
.vm-signup-modal__field { display: block; margin-bottom: 12px; }
.vm-signup-modal__field span {
    display: block; font-size: .78rem; font-weight: 600;
    color: #3A3A3C; margin-bottom: 6px;
}
.vm-signup-modal__field input {
    width: 100%; padding: 13px 16px; font-size: 1rem;
    border: 1.5px solid #E5E5EA; border-radius: 12px;
    background: #fff; outline: none; font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.vm-signup-modal__field input:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 4px rgba(255,107,107,.12);
}
.vm-signup-modal__cta {
    display: block; width: 100%;
    padding: 14px 20px; font-size: 1rem; font-weight: 700;
    background: #1C1C1E; color: #fff;
    border: none; border-radius: 12px; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.vm-signup-modal__cta:hover {
    background: #FF6B6B;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,107,107,.35);
}
.vm-signup-modal__legal {
    font-size: .76rem; color: #8E8E93;
    line-height: 1.5; margin: 16px 0 0;
}
.vm-signup-modal__legal a { color: #1C1C1E; text-decoration: underline; }
.vm-signup-modal__login,
.vm-signup-modal__pro {
    font-size: .82rem; color: #8E8E93;
    margin: 12px 0 0; text-align: center;
}
.vm-signup-modal__login a, .vm-signup-modal__pro a {
    color: #FF6B6B; font-weight: 600;
}

/* ============================================================
   Footer extras (brand-of + blocchi sedi)
   ============================================================ */
.vm-footer .footer-brand-of {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    line-height: 1.55;
    letter-spacing: .2px;
}
.vm-footer .footer-brand-of strong {
    color: rgba(255,255,255,.8);
    font-weight: 700;
}
.vm-footer .footer-legal + .footer-legal { margin-top: 14px; }
.vm-footer .footer-legal strong {
    color: rgba(255,255,255,.78);
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: .7rem;
    display: block;
    margin-bottom: 4px;
}
.vm-footer .footer-legal a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .15s;
}
.vm-footer .footer-legal a:hover { color: #fff; }

/* ============================================================
   Auth pages (login, recupera/reset password) - Lovable/ElevenLabs style
   ============================================================ */
.vm-auth-page {
    min-height: 100vh;
    padding: 96px 16px 60px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,107,107,.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232,67,147,.05) 0%, transparent 50%),
        #FAF7F2;
    display: flex; align-items: center; justify-content: center;
}
.vm-auth-page .container { max-width: 480px; }
.vm-auth-card {
    background: #fff;
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow:
        0 1px 3px rgba(0,0,0,.03),
        0 24px 60px rgba(28,28,30,.10);
    border: 1px solid rgba(0,0,0,.04);
    position: relative;
}
.vm-auth-card__brand {
    margin-bottom: 18px;
    display: none; /* in stile compatto: niente logo nella card; titolo è protagonista */
}
.vm-auth-card__title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1C1C1E;
    margin: 0 0 24px;
    letter-spacing: -.5px;
}
.vm-auth-card__sub {
    display: none; /* compatto: niente subtitle */
}
.vm-auth-card__bottom {
    text-align: center;
    margin: 18px 0 0;
    font-size: .85rem;
    color: #8E8E93;
}
.vm-auth-card__bottom a {
    color: #1C1C1E;
    font-weight: 600;
    text-decoration: none;
}
.vm-auth-card__bottom a:hover { color: #FF6B6B; }
.vm-auth-card__link {
    color: #1C1C1E;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.vm-auth-card__link:hover { color: #FF6B6B; text-decoration: underline; }

/* Form variant per auth: input grandi e wrapper per icona checkmark */
.vm-form--auth .vm-field { margin-bottom: 18px; }
.vm-form--auth .vm-field > label {
    font-size: .82rem;
    font-weight: 500;
    color: #8E8E93;
    margin-bottom: 8px;
    letter-spacing: .1px;
}
.vm-form--auth .vm-field--input-wrap {
    position: relative;
}
.vm-form--auth input[type="email"],
.vm-form--auth input[type="password"],
.vm-form--auth input[type="text"] {
    padding: 15px 44px 15px 18px;
    font-size: .98rem;
    border: 1.5px solid #E5E5EA;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.vm-form--auth input:focus {
    border-color: #1C1C1E;
    box-shadow: 0 0 0 4px rgba(28,28,30,.06);
}
.vm-form--auth input:valid:not(:placeholder-shown) ~ .vm-input-check {
    opacity: 1; transform: scale(1);
}
.vm-input-check {
    position: absolute; right: 12px; top: 50%;
    width: 26px; height: 26px;
    transform: translateY(-50%) scale(.7);
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.vm-input-check svg { width: 14px; height: 14px; }
.vm-form--auth input:valid:not(:placeholder-shown) ~ .vm-input-check {
    transform: translateY(-50%) scale(1);
}

.vm-form--auth small {
    color: #8E8E93;
    font-size: .78rem;
    margin-top: 4px;
    display: block;
}
.vm-auth-card__legal {
    font-size: .78rem;
    color: #8E8E93;
    margin: 0 0 22px;
    line-height: 1.5;
}
.vm-auth-card__legal a {
    color: #1C1C1E;
    text-decoration: underline;
    font-weight: 500;
}
.vm-auth-card__legal a:hover { color: #FF6B6B; }

.vm-auth-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
}

/* CTA pill compact con freccia */
.vm-btn--auth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1C1C1E;
    color: #fff;
    padding: 13px 22px;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all .2s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 4px 14px rgba(28,28,30,.18);
}
.vm-btn--auth::after {
    content: "";
    width: 22px; height: 1.5px;
    background: currentColor;
    display: inline-block;
    transition: width .2s;
}
.vm-btn--auth:hover {
    background: #FF6B6B;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255,107,107,.38);
}
.vm-btn--auth:hover::after { width: 30px; }
.vm-btn--auth:active { transform: translateY(0); }

/* Block è legacy: ora il default auth è il pill — manteniamo per compatibilità altrove */
.vm-btn--block {
    display: block; width: 100%;
    background: #1C1C1E; color: #fff;
    padding: 14px 22px; font-size: 1rem; font-weight: 700;
    border-radius: 12px; border: none; cursor: pointer;
    transition: all .18s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 4px 14px rgba(28,28,30,.18);
}
.vm-btn--block:hover { background: #FF6B6B; color: #fff; transform: translateY(-1px); }

.vm-field--row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin: -2px 0 16px;
}
.vm-field--row .vm-checkbox { font-size: .85rem; color: #8E8E93; font-weight: 500; }

@media (max-width: 480px) {
    .vm-auth-card { padding: 28px 22px 22px; border-radius: 18px; }
    .vm-auth-card__title { font-size: 1.4rem; }
    .vm-auth-page { padding-top: 90px; }
    .vm-auth-actions { flex-direction: column-reverse; align-items: stretch; }
    .vm-btn--auth { justify-content: center; }
    .vm-auth-card__link { text-align: center; }
}

/* ============================================================
   User pill (navbar quando loggato)
   ============================================================ */
.vm-user-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-size: .85rem; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.vm-user-pill:hover { background: rgba(255,255,255,.28); color: #fff; }
.vm-navbar.scrolled .vm-user-pill {
    background: #F5F4F1; border-color: var(--vm-border, #E5E5EA);
    color: var(--vm-dark, #1C1C1E);
}
.vm-navbar.scrolled .vm-user-pill:hover { background: #ECE9E2; }
.vm-user-pill__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--vm-coral, #FF6B6B); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem;
}

/* ============================================================
   Chat full-screen overlay (Lovable-style)
   ============================================================ */
.vm-chat {
    position: fixed; inset: 0; z-index: 4000;
    background: #FAF7F2;
    display: none; flex-direction: column;
    overflow: hidden;
}
.vm-chat.is-open {
    display: flex;
    animation: vmChatIn .42s cubic-bezier(.22,1,.36,1);
}
.vm-chat.is-open .vm-chat__header,
.vm-chat.is-open .vm-chat__body,
.vm-chat.is-open .vm-chat__composer {
    animation: vmChatPartIn .55s cubic-bezier(.22,1,.36,1) both;
}
.vm-chat.is-open .vm-chat__body { animation-delay: .05s; }
.vm-chat.is-open .vm-chat__composer { animation-delay: .1s; }
body.vm-chat-open { overflow: hidden; }

@keyframes vmChatIn {
    from { opacity: 0; transform: scale(.96) translateY(28px); filter: blur(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes vmChatPartIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vm-chat__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px; background: #fff;
    border-bottom: 1px solid var(--vm-border, #E5E5EA);
    z-index: 2;
}
.vm-chat__brand { display: flex; align-items: center; gap: 10px; }
.vm-chat__brand-name { font-weight: 700; color: var(--vm-dark, #1C1C1E); font-size: .98rem; }
.vm-chat__actions { display: flex; align-items: center; gap: 14px; }
.vm-chat__user {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; color: var(--vm-text, #3A3A3C); font-weight: 500;
}
.vm-chat__user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--vm-coral, #FF6B6B); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem;
}
.vm-chat__close {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; cursor: pointer;
    background: #F5F4F1; color: var(--vm-text, #3A3A3C);
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.vm-chat__close:hover { background: var(--vm-dark, #1C1C1E); color: #fff; }

.vm-chat__body {
    flex: 1; overflow-y: auto; padding: 28px 0;
    background: #FAFAF8;
}
.vm-chat__msg {
    max-width: 760px; margin: 0 auto 18px;
    padding: 0 24px;
    display: flex; gap: 12px; align-items: flex-start;
}
.vm-chat__msg--user { flex-direction: row-reverse; }
.vm-chat__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--vm-dark, #1C1C1E); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.vm-chat__avatar--ai {
    background: linear-gradient(135deg, var(--vm-coral, #FF6B6B), var(--vm-pink, #E84393));
}
.vm-chat__bubble {
    background: #fff; border: 1px solid var(--vm-border, #E5E5EA);
    padding: 14px 18px; border-radius: 18px;
    font-size: .94rem; line-height: 1.55;
    color: var(--vm-text, #3A3A3C);
    max-width: 70%;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.vm-chat__msg--user .vm-chat__bubble {
    background: var(--vm-dark, #1C1C1E); color: #fff;
    border-color: var(--vm-dark, #1C1C1E);
}

.vm-chat__composer {
    background: #fff; border-top: 1px solid var(--vm-border, #E5E5EA);
    padding: 16px 24px 12px;
}
.vm-chat__form {
    max-width: 760px; margin: 0 auto;
    background: #F5F4F1; border-radius: 18px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow .15s, background .15s;
}
.vm-chat__form:focus-within {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.vm-chat__input {
    border: none; background: transparent; outline: none;
    resize: none; min-height: 24px; max-height: 200px;
    font-family: inherit; font-size: .98rem; line-height: 1.5;
    color: var(--vm-dark, #1C1C1E); width: 100%;
}
.vm-chat__input::placeholder { color: var(--vm-text-muted, #8E8E93); }
.vm-chat__composer-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.vm-chat__icon-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: transparent; cursor: pointer;
    color: var(--vm-text-muted, #8E8E93);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.vm-chat__icon-btn:hover { background: rgba(0,0,0,.06); color: var(--vm-dark, #1C1C1E); }
.vm-chat__icon-btn.is-recording { color: var(--vm-coral, #FF6B6B); animation: vmPulse 1.2s infinite; }
@keyframes vmPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.vm-chat__send {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--vm-dark, #1C1C1E); color: #fff; border: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.vm-chat__send:hover {
    background: var(--vm-coral, #FF6B6B);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255,107,107,.35);
}
.vm-chat__legal {
    text-align: center; font-size: .72rem; color: var(--vm-text-muted, #8E8E93);
    margin: 10px 0 0;
}

/* Thinking dots */
.vm-chat__bubble--thinking {
    display: inline-flex; gap: 6px; align-items: center;
    padding: 16px 22px;
}
.vm-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--vm-text-muted, #8E8E93);
    animation: vmDotBounce 1.2s infinite ease-in-out;
}
.vm-dot:nth-child(2) { animation-delay: .15s; }
.vm-dot:nth-child(3) { animation-delay: .3s; }
@keyframes vmDotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

.vm-chat__bubble--followup {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--vm-text-muted, #8E8E93) !important;
    font-style: italic;
    padding-left: 0 !important; padding-top: 4px !important;
}

/* Chat result cards (AI answer) */
/* Masonry a colonne: pacchetto gradevole con card di altezze variabili */
.vm-chat__cards {
    max-width: 760px; margin: 6px auto 18px;
    padding: 0 24px;
    column-count: 2; column-gap: 14px;
}
/* la prima card (più rilevante) un po' più grande nel titolo */
.vm-chat__card--lg .vm-chat__card-title { font-size: 1.12rem; }
@media (max-width: 560px) {
    .vm-chat__cards { column-count: 1; padding: 0 16px; }
}
.vm-chat__card {
    display: flex; flex-direction: column;
    break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
    width: 100%; margin-bottom: 14px;
    background: #fff; border: 1px solid var(--vm-border, #E5E5EA);
    border-radius: 16px; overflow: hidden;
    text-decoration: none; color: var(--vm-dark, #1C1C1E);
    transition: all .22s cubic-bezier(.22,1,.36,1);
    opacity: 0; transform: translateY(14px);
    animation: vmCardIn .55s cubic-bezier(.22,1,.36,1) forwards;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.vm-chat__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.10);
    border-color: rgba(255,107,107,.5);
    color: var(--vm-dark, #1C1C1E);
}
.vm-chat__card-img {
    width: 100%; aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #F5F4F1, #ECE9E2);
    overflow: hidden; position: relative;
}
.vm-chat__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.vm-chat__card:hover .vm-chat__card-img img { transform: scale(1.05); }
.vm-chat__card-img.is-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--vm-text-muted, #8E8E93); font-size: .8rem; font-weight: 600;
    background: linear-gradient(135deg, rgba(255,107,107,.08), rgba(232,67,147,.06));
}
.vm-chat__card-img.is-empty::after { content: "VaiMarche"; }
.vm-chat__card-body {
    padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.vm-chat__card-tag {
    align-self: flex-start;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(255,107,107,.08); color: var(--vm-coral, #FF6B6B);
    padding: 3px 9px; border-radius: 999px;
    margin-bottom: 2px;
}
.vm-chat__card--ristorante .vm-chat__card-tag { background: rgba(232,67,147,.08); color: var(--vm-pink, #E84393); }
.vm-chat__card--news       .vm-chat__card-tag { background: rgba(28,28,30,.06);  color: var(--vm-dark, #1C1C1E); }
.vm-chat__card-title {
    font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3;
    color: var(--vm-dark, #1C1C1E);
}
.vm-chat__card-desc {
    margin: 0; font-size: .85rem; line-height: 1.5; color: var(--vm-text, #3A3A3C);
}
.vm-chat__card-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: .78rem; color: var(--vm-text-muted, #8E8E93);
    margin-top: auto; padding-top: 6px;
}

@keyframes vmCardIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
    .vm-chat__cards { padding: 0 16px; }
    .vm-chat__card--lg, .vm-chat__card--md, .vm-chat__card--sm { grid-column: span 12; }
    .vm-chat__card--sm .vm-chat__card-desc { display: block; }
}

@media (max-width: 720px) {
    .vm-chat__header { padding: 14px 18px; }
    .vm-chat__msg { padding: 0 16px; }
    .vm-chat__bubble { max-width: 85%; }
    .vm-chat__composer { padding: 12px 14px; }
}

@keyframes vmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmModalIn {
    from { opacity: 0; transform: scale(.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 480px) {
    .vm-signup-modal__dialog { padding: 32px 22px 22px; border-radius: 18px; }
    .vm-signup-modal__title { font-size: 1.3rem; }
}

@media (max-width: 720px) {
    .vm-wizard { padding: 24px 18px; border-radius: 16px; }
    .vm-form .vm-row { grid-template-columns: 1fr; }
    .vm-plan-cards { grid-template-columns: 1fr; }
    .vm-event-pair { grid-template-columns: 1fr; }
    .vm-step-dot em { display: none; }
    .vm-hours-row { gap: 4px; }
    .vm-hours-row input[type="time"] { width: 80px; }
    .vm-actions { flex-direction: column-reverse; }
    .vm-actions .vm-btn { width: 100%; }
}
