/* הסוכן הקולי: חלון שיחה כהה בצבעי המותג (ירוק עמוק + זהב), כמו מסך שיחה בטלפון */
.va-lock, .va-lock body { overflow: hidden; }
.va {
  --va-bg: #10302A;
  --va-card: #163C34;
  --va-line: rgb(230 240 234 / .12);
  --va-gold: #D9B56E;
  --va-text: #EEF4F0;
  --va-muted: #A9BDB5;
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 16px;
  background: rgb(10 28 24 / .62);
  backdrop-filter: blur(6px);
  font-family: var(--font-body, 'Heebo', sans-serif);
}
.va[hidden] { display: none; }
.va-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  width: min(420px, 100%);
  height: min(720px, 100%);
  padding: 18px 18px 14px;
  border-radius: 28px;
  color: var(--va-text);
  background: radial-gradient(120% 60% at 50% 0%, #1F5A4B 0%, var(--va-bg) 62%);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45), inset 0 0 0 1px var(--va-line);
  overflow: hidden;
}
.va-head { display: flex; align-items: center; gap: 12px; }
.va-head > div { flex: 1; display: grid; line-height: 1.3; }
.va-head b { font-family: var(--font-head, 'Rubik', sans-serif); font-size: 17px; }
.va-time { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; color: var(--va-gold); letter-spacing: .5px; }
.va-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(217 181 110 / .16); color: var(--va-gold); box-shadow: inset 0 0 0 1.5px rgb(217 181 110 / .5); }
.va-avatar svg { width: 28px; height: 28px; }
.va-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--va-line); white-space: nowrap; }
.va-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--va-muted); }
.va[data-mode="listen"] .va-pill i { background: #3DDC84; box-shadow: 0 0 0 4px rgb(61 220 132 / .2); animation: va-blink 1.2s infinite; }
.va[data-mode="talk"] .va-pill i { background: var(--va-gold); }
.va[data-mode="think"] .va-pill i { background: var(--va-gold); animation: va-blink .6s infinite; }

/* גל קול: זהב כשהעוזר מדבר, ירוק כשמקשיבים */
.va-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 54px; }
.va-wave i { width: 4px; height: 6px; border-radius: 3px; background: rgb(217 181 110 / .35); transition: background .3s; }
.va[data-mode="talk"] .va-wave i { background: var(--va-gold); animation: va-bar 1s ease-in-out infinite; }
.va[data-mode="listen"] .va-wave i { background: #7FE3AE; animation: va-bar 1.4s ease-in-out infinite; }
.va[data-mode="think"] .va-wave i { animation: va-bar 2s ease-in-out infinite; }
.va-wave i:nth-child(3n) { animation-delay: -.2s; } .va-wave i:nth-child(3n+1) { animation-delay: -.5s; } .va-wave i:nth-child(4n) { animation-delay: -.8s; } .va-wave i:nth-child(5n) { animation-delay: -.35s; }

.va-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.va-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #1E2A20; background: var(--va-gold); animation: va-pop .35s ease-out; }
.va-chip svg { width: 13px; height: 13px; }

.va-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scrollbar-width: thin; }
.va-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; animation: va-pop .3s ease-out; }
.va-msg small { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; opacity: .7; }
.va-msg small svg { width: 14px; height: 14px; }
.va-msg p { margin: 2px 0 0; font-size: 17px; line-height: 1.5; }
.va-msg--bot { align-self: flex-start; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--va-line); border-start-start-radius: 6px; }
.va-msg--me { align-self: flex-end; color: #15312B; background: #F3F6F4; border-start-end-radius: 6px; }
.va-interim { margin: 0; align-self: flex-end; font-size: 16px; color: var(--va-muted); font-style: italic; }
.va-note { margin: 0; font-size: 15px; text-align: center; color: var(--va-gold); }
.va-notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgb(217 181 110 / .14); box-shadow: inset 0 0 0 1px rgb(217 181 110 / .45); }
.va-notice div { display: grid; gap: 4px; }
.va-notice b { font-size: 16px; }
.va-notice span { font-size: 15px; color: var(--va-muted); }
.va-ok { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2FBF71; color: #fff; }
.va-ok svg { width: 18px; height: 18px; }
.va-alt { display: flex; flex-wrap: wrap; gap: 8px; }
.va-form { padding: 8px 16px; border-radius: 99px; font-weight: 700; color: var(--va-text); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--va-gold); }
.va-wa { justify-self: start; padding: 8px 16px; border-radius: 99px; font-weight: 700; color: #fff; background: #25D366; text-decoration: none; }

.va-type { display: flex; gap: 8px; }
.va-type[hidden] { display: none; }
.va-type input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 99px; font: inherit; font-size: 16px; color: var(--va-text); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--va-line); }
.va-type input::placeholder { color: var(--va-muted); }
.va-type input:focus { outline: 2px solid var(--va-gold); outline-offset: 1px; }
.va-type button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #1E2A20; background: var(--va-gold); cursor: pointer; }
.va-type button svg { width: 20px; height: 20px; }

.va-ctrl { display: flex; align-items: center; justify-content: center; gap: 26px; }
.va-ctrl button { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; color: var(--va-text); background: rgb(255 255 255 / .09); cursor: pointer; transition: transform .15s; }
.va-ctrl button:active { transform: scale(.94); }
.va-ctrl button svg { width: 24px; height: 24px; }
.va-ctrl button:focus-visible { outline: 2px solid var(--va-gold); outline-offset: 3px; }
.va-ctrl .va-end { width: 66px; height: 66px; color: #fff; background: #E5484D; box-shadow: 0 10px 24px rgb(229 72 77 / .4); }
.va-ctrl .va-end svg { width: 30px; height: 30px; }
.va-ctrl .va-end.is-close { width: auto; padding: 0 28px; border-radius: 99px; font: 700 17px var(--font-body, 'Heebo', sans-serif); background: var(--va-gold); color: #1E2A20; box-shadow: none; }
.va-ctrl .va-mic.is-off { color: var(--va-muted); }
.va[data-mode="listen"] .va-mic { color: #10302A; background: #7FE3AE; box-shadow: 0 0 0 8px rgb(127 227 174 / .18); }
.va-ctrl [hidden] { display: none; }
.va-fine { margin: 0; font-size: 13px; text-align: center; color: var(--va-muted); }

/* כפתור צף לפתיחת הסוכן, ליד כפתור הוואטסאפ */
.va-float {
  position: fixed; left: 18px; bottom: 90px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px 0 14px;
  border: 0; border-radius: 99px; cursor: pointer;
  font: 700 16px var(--font-body, 'Heebo', sans-serif);
  color: #fff; background: var(--yellow, #A9843F);
  box-shadow: 0 0 0 3px #fff, 0 10px 26px rgb(21 49 43 / .35);
}
.va-float svg { width: 24px; height: 24px; color: #fff; }
.va-float:focus-visible { outline: 3px solid var(--yellow, #A9843F); outline-offset: 3px; }
/* כפתור בתוך הדף */
.btn--voice { display: inline-flex; align-items: center; gap: 8px; }
.btn--voice svg { width: 22px; height: 22px; }

@media (max-width: 520px) {
  .va { padding: 0; }
  .va-card { width: 100%; height: 100%; border-radius: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); }
  .va-float span { display: none; }
  .va-float { width: 56px; height: 56px; padding: 0; justify-content: center; bottom: 88px; }
}
@keyframes va-bar { 0%, 100% { height: 6px; } 50% { height: 40px; } }
@keyframes va-blink { 50% { opacity: .35; } }
@keyframes va-pop { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .va *, .va-chip { animation: none !important; }
}
