#anu-chat {
  --anu-green: #1d4d3f;
  --anu-deep: #102f27;
  --anu-gold: #c59a48;
  position: fixed;
  right: 18px;
  bottom: 0;
  width: 270px;
  height: 470px;
  z-index: 999999;
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(108%);
  animation: anu-slide-in .95s 3s cubic-bezier(.18,.82,.28,1) forwards;
}

#anu-button {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 255px;
  height: 450px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.22));
}

#anu-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  transform-origin: center bottom;
  animation: anu-presence 4.8s 2.15s ease-in-out infinite;
}

#anu-welcome {
  display: none;
  position: absolute;
  right: 205px;
  bottom: 350px;
  width: max-content;
  max-width: 230px;
  padding: 12px 17px;
  color: #17372d;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(197,154,72,.72);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 12px 32px rgba(12,42,32,.2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  pointer-events: auto;
}

#anu-welcome.show { display: block; animation: anu-welcome .45s ease both; }

#anu-window {
  display: none;
  position: absolute;
  right: 235px;
  bottom: 28px;
  width: 370px;
  max-width: calc(100vw - 315px);
  overflow: hidden;
  color: #1d3029;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(197,154,72,.62);
  border-radius: 24px;
  box-shadow: 0 24px 65px rgba(5,35,25,.25), inset 0 1px 0 #fff;
  pointer-events: auto;
  transform-origin: bottom right;
}

#anu-window.open { display: block; animation: anu-open .32s cubic-bezier(.2,.82,.3,1); }

.anu-header {
  position: relative;
  min-height: 78px;
  padding: 16px 54px 15px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #17372d;
  background: linear-gradient(105deg, rgba(230,244,236,.96), rgba(255,249,232,.96));
  border-bottom: 1px solid rgba(29,77,63,.12);
  font-size: 17px;
  font-weight: 800;
}

.anu-header::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(145deg, var(--anu-green), #456e54);
  border: 1px solid rgba(197,154,72,.8);
  border-radius: 15px;
  font-size: 20px;
  font-weight: 800;
}

.anu-header::after {
  content: "Layanila Guest Assistant  •  Online";
  margin-top: 4px;
  color: #5f765e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

#anu-close {
  position: absolute;
  top: 20px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #456459;
  border-radius: 11px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#anu-messages {
  min-height: 190px;
  max-height: 330px;
  padding: 20px 17px 10px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.anu-bot-message,
.anu-user-message {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 13px;
  padding: 12px 15px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 7px 20px rgba(20,50,38,.11);
}

.anu-bot-message {
  margin-right: auto;
  color: #1b342b;
  background: #f1f8f3;
  border: 1px solid rgba(29,77,63,.12);
  border-bottom-left-radius: 5px;
}

.anu-user-message {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--anu-green), #527456);
  border-bottom-right-radius: 5px;
}

#anu-form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(29,77,63,.12);
  background: #fbfdfb;
}

#anu-input {
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  color: #21352e;
  background: #fff;
  border: 1px solid rgba(29,77,63,.28);
  border-radius: 13px;
  outline: none;
  font: inherit;
  font-size: 14px;
}

#anu-input:focus { border-color: var(--anu-gold); box-shadow: 0 0 0 3px rgba(197,154,72,.14); }

#anu-send {
  height: 43px;
  padding: 0 17px;
  color: #fff;
  background: var(--anu-green);
  border: 1px solid var(--anu-green);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#anu-send:disabled,
#anu-input:disabled { cursor: wait; opacity: .55; }

.anu-read-aloud {
  display: block;
  margin-top: 8px;
  padding: 5px 8px;
  color: #456459;
  background: transparent;
  border: 1px solid rgba(29,77,63,.18);
  border-radius: 9px;
  font-size: 11px;
  cursor: pointer;
}

.anu-typing { display: flex; gap: 5px; align-items: center; }
.anu-typing span { width: 7px; height: 7px; background: #6d8b7e; border-radius: 50%; animation: anu-dot 1s infinite; }
.anu-typing span:nth-child(2) { animation-delay: .16s; }
.anu-typing span:nth-child(3) { animation-delay: .32s; }

.anu-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes anu-slide-in { to { opacity: 1; transform: translateY(0); } }
@keyframes anu-open { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes anu-welcome { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes anu-presence { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes anu-dot { 0%,80%,100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 760px) {
  #anu-chat { right: 2px; width: 170px; height: 315px; }
  #anu-button { width: 165px; height: 295px; }
  #anu-welcome { right: 128px; bottom: 232px; max-width: 175px; padding: 9px 12px; font-size: 12px; }
  #anu-window { position: fixed; right: 8px; bottom: 10px; width: calc(100vw - 16px); max-width: none; max-height: calc(100dvh - 20px); }
  #anu-window.open ~ #anu-button { opacity: .16; pointer-events: none; }
  #anu-messages { max-height: calc(100dvh - 260px); }
}

@media (prefers-reduced-motion: reduce) {
  #anu-chat, #anu-button img, #anu-window.open { animation: none; opacity: 1; transform: none; }
}
