:root{
  --vof-smart-blue:#0055A5;
  --vof-smart-blue-deep:#073B70;
  --vof-smart-navy:#102A43;
  --vof-smart-yellow:#FFC928;
  --vof-smart-white:#ffffff;
}

.vof-smart-assistant{
  position:fixed;
  right:24px;
  left:auto;
  bottom:calc(var(--vof-smart-safe-bottom,24px) + env(safe-area-inset-bottom,0px));
  z-index:99998;
  font-family:"Nunito Sans",sans-serif;
  transition:left .28s ease,right .28s ease;
}

body.vof-menu-open .vof-smart-assistant{
  left:24px;
  right:auto;
}

body.vof-menu-open .vof-smart-cloud{
  left:0;
  right:auto;
  transform-origin:bottom left;
}

.vof-smart-launcher{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:0 22px;
  border:2px solid rgba(255,255,255,.96);
  border-radius:999px 999px 999px 26px;
  background:linear-gradient(135deg,var(--vof-smart-blue) 0%,var(--vof-smart-blue-deep) 100%);
  color:#fff;
  box-shadow:0 14px 35px rgba(7,59,112,.34),0 0 0 5px rgba(0,85,165,.12);
  font-family:"Barlow Condensed",sans-serif;
  font-size:18px;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
  cursor:pointer;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}

.vof-smart-launcher::before,
.vof-smart-launcher::after{
  content:"";
  position:absolute;
  background:var(--vof-smart-blue);
  border:2px solid #fff;
  border-bottom:0;
  pointer-events:none;
}

.vof-smart-launcher::before{
  width:18px;height:18px;border-radius:50%;
  top:-8px;left:17px;
}

.vof-smart-launcher::after{
  width:11px;height:11px;border-radius:50%;
  top:-5px;left:35px;
}

.vof-smart-launcher:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(7,59,112,.42),0 0 0 7px rgba(0,85,165,.12);
}

.vof-smart-launcher-icon{
  display:grid;
  place-items:center;
}

.vof-smart-cloud{
  position:absolute;
  right:0;
  bottom:82px;
  width:min(390px,calc(100vw - 32px));
  color:#fff;
  background:
    radial-gradient(circle at 18% 18%,rgba(73,191,232,.35),transparent 30%),
    linear-gradient(145deg,#0870cf 0%,#0055A5 48%,#073B70 100%);
  border:2px solid rgba(255,255,255,.97);
  border-radius:52px 44px 38px 50px / 46px 54px 40px 46px;
  box-shadow:0 30px 70px rgba(16,42,67,.36),inset 0 1px 0 rgba(255,255,255,.2);
  opacity:0;
  visibility:hidden;
  transform:translateY(18px) scale(.82) rotate(1deg);
  transform-origin:bottom right;
  transition:opacity .28s ease,transform .34s cubic-bezier(.2,.8,.2,1),visibility .28s ease;
  isolation:isolate;
}

.vof-smart-cloud::before,
.vof-smart-cloud::after,
.vof-smart-cloud-puff{
  content:"";
  position:absolute;
  display:block;
  background:#0870cf;
  border:2px solid rgba(255,255,255,.97);
  border-radius:50%;
  z-index:-1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);
}

.vof-smart-cloud::before{
  width:94px;height:94px;
  top:-46px;left:40px;
}

.vof-smart-cloud::after{
  width:126px;height:126px;
  top:-62px;right:52px;
  background:#0764ba;
}

.vof-smart-cloud-puff{
  width:78px;height:78px;
  top:-35px;left:135px;
  background:#0870cf;
}

.vof-smart-assistant.is-open .vof-smart-cloud{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1) rotate(0);
}

.vof-smart-assistant.is-open .vof-smart-launcher{
  transform:translateY(-2px) scale(.96);
}

.vof-smart-cloud-inner{
  position:relative;
  z-index:2;
  padding:72px 30px 28px;
}

.vof-smart-close{
  position:absolute;
  top:26px;
  right:20px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  transition:background .2s ease,transform .2s ease;
}

.vof-smart-close:hover{
  background:rgba(255,255,255,.2);
  transform:rotate(4deg);
}

.vof-smart-kicker{
  margin:0 48px 7px 0;
  color:#D8F3FF;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
}

.vof-smart-cloud h2{
  margin:0 36px 10px 0!important;
  color:#fff!important;
  font-family:"Barlow Condensed",sans-serif!important;
  font-size:34px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.01em;
}

.vof-smart-intro{
  margin:0 0 20px;
  max-width:310px;
  color:rgba(255,255,255,.88);
  font-size:14px;
  line-height:1.5;
}

.vof-smart-input-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 7px 7px 16px;
  border:1px solid rgba(255,255,255,.48);
  border-radius:999px;
  background:rgba(5,35,67,.28);
  box-shadow:inset 0 1px 10px rgba(3,25,48,.16);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.vof-smart-input{
  min-width:0;
  flex:1;
  height:42px;
  padding:0;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fff!important;
  box-shadow:none!important;
  font-family:"Nunito Sans",sans-serif;
  font-size:15px;
}

.vof-smart-input::placeholder{
  color:rgba(255,255,255,.65);
}

.vof-smart-send{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:var(--vof-smart-yellow);
  color:var(--vof-smart-navy);
  cursor:pointer;
  box-shadow:0 8px 20px rgba(16,42,67,.22);
  transition:transform .2s ease,filter .2s ease;
}

.vof-smart-send:hover{
  transform:scale(1.06) rotate(-3deg);
  filter:brightness(1.03);
}

.vof-smart-send:disabled{
  cursor:wait;
  opacity:.7;
}

.vof-smart-response{
  margin-top:18px;
  min-height:86px;
  padding:17px 18px;
  border:1px solid rgba(255,255,255,.23);
  border-radius:24px 28px 20px 28px;
  background:rgba(255,255,255,.11);
  color:rgba(255,255,255,.94);
  font-size:14px;
  line-height:1.55;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.vof-smart-response p{
  margin:0 0 10px!important;
  color:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
}

.vof-smart-response p:last-child{
  margin-bottom:0!important;
}

.vof-smart-response a{
  color:#fff!important;
  font-weight:800;
  text-decoration:underline;
  text-decoration-color:rgba(255,201,40,.85);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.vof-smart-response strong{
  color:#fff;
}

.vof-smart-question-label{
  display:block;
  margin-bottom:9px;
  color:#BFEAFF;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vof-smart-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.vof-smart-suggestions button{
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-family:"Nunito Sans",sans-serif;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.vof-smart-suggestions button:hover{
  background:rgba(255,255,255,.19);
  border-color:rgba(255,255,255,.6);
  transform:translateY(-1px);
}

.vof-smart-thinking{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
}

.vof-smart-dots{
  display:inline-flex;
  gap:4px;
}

.vof-smart-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fff;
  animation:vofSmartPulse .9s infinite ease-in-out;
}

.vof-smart-dots span:nth-child(2){animation-delay:.14s}
.vof-smart-dots span:nth-child(3){animation-delay:.28s}

@keyframes vofSmartPulse{
  0%,80%,100%{transform:scale(.65);opacity:.45}
  40%{transform:scale(1);opacity:1}
}

.vof-smart-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 34px 8px 0;
}

.vof-smart-title-row h2{
  margin:0!important;
}

.vof-smart-reset{
  flex:0 0 auto;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.82);
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  cursor:pointer;
}

.vof-smart-reset:hover{
  background:rgba(255,255,255,.16);
  color:#fff;
}

.vof-smart-response{
  max-height:none;
  overflow:visible;
  scrollbar-width:auto;
}

.vof-smart-message,
.vof-smart-thinking-live,
.vof-smart-actions{
  animation:vofSmartReveal .22s ease-out both;
}

@keyframes vofSmartReveal{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

.vof-smart-form{
  margin-top:14px;
}

.vof-smart-message{
  width:fit-content;
  max-width:92%;
  margin:0 0 10px;
  padding:10px 12px;
  border-radius:18px;
}

.vof-smart-message p{
  margin:0 0 8px!important;
}

.vof-smart-message p:last-child{
  margin-bottom:0!important;
}

.vof-smart-message-assistant{
  margin-right:auto;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-bottom-left-radius:7px;
}

.vof-smart-message-user{
  margin-left:auto;
  background:var(--vof-smart-yellow);
  color:var(--vof-smart-navy);
  border-bottom-right-radius:7px;
  font-weight:800;
}

.vof-smart-message-user strong,
.vof-smart-message-user a{
  color:var(--vof-smart-navy)!important;
}

.vof-smart-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:2px 0 12px;
}

.vof-smart-action{
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-family:"Nunito Sans",sans-serif;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.vof-smart-action:hover{
  background:rgba(255,255,255,.19);
  border-color:rgba(255,255,255,.6);
  transform:translateY(-1px);
}

.vof-smart-privacy{
  color:rgba(255,255,255,.72)!important;
  font-size:11px!important;
  line-height:1.45!important;
}

.vof-smart-honeypot{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

.vof-smart-thinking-live{
  margin:6px 0 12px;
  padding:10px 12px;
  width:fit-content;
  border-radius:18px 18px 18px 7px;
  background:rgba(255,255,255,.10);
}

@media (max-width:767px){
  .vof-smart-assistant{right:16px;left:auto;bottom:calc(var(--vof-smart-safe-bottom,16px) + env(safe-area-inset-bottom,0px))}
  body.vof-menu-open .vof-smart-assistant{left:16px;right:auto}
  .vof-smart-launcher{min-height:54px;padding:0 18px;font-size:17px}
  .vof-smart-cloud{right:0;bottom:74px;width:min(365px,calc(100vw - 32px))}
  .vof-smart-cloud-inner{padding:66px 23px 23px}
  .vof-smart-close{top:24px;right:18px}
  .vof-smart-cloud h2{font-size:30px!important}
}

@media (prefers-reduced-motion:reduce){
  .vof-smart-cloud,
  .vof-smart-launcher,
  .vof-smart-close,
  .vof-smart-send,
  .vof-smart-suggestions button{transition:none!important}
  .vof-smart-dots span,
  .vof-smart-message,
  .vof-smart-thinking-live,
  .vof-smart-actions{animation:none!important}
}
