/* ============================================================
   VLYRA AI Chatbot Widget
   ============================================================ */
@keyframes vbounce { 0%,60%,100% { transform: translateY(0); opacity: .6 } 30% { transform: translateY(-7px); opacity: 1 } }
@keyframes vfadeSlideIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: translateY(0) } }
@keyframes vslideUp { from { opacity: 0; transform: translateY(28px) scale(.96) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes vpulseRing {
  0% { box-shadow: 0 0 0 0 rgba(245,200,66,.55), 0 12px 40px rgba(245,200,66,.35) }
  70% { box-shadow: 0 0 0 18px rgba(245,200,66,0), 0 12px 40px rgba(245,200,66,.25) }
  100% { box-shadow: 0 0 0 0 rgba(245,200,66,0), 0 12px 40px rgba(245,200,66,.35) }
}
@keyframes vshimmer { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes vstatusPulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .55; transform: scale(.85) } }
@keyframes vfloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }

#vlyra-launcher {
  position: fixed; bottom: 32px; right: 32px;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #fcd957 0%, #f5c842 45%, #e89c0c 100%);
  border: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 12px 40px rgba(245,200,66,.45), 0 4px 12px rgba(0,0,0,.3);
  animation: vpulseRing 2.8s infinite, vfloat 3.5s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
#vlyra-launcher:hover { transform: scale(1.1) rotate(-4deg); }
#vlyra-launcher svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

#vlyra-window {
  position: fixed; bottom: 112px; right: 32px;
  width: 380px; height: 600px;
  background: linear-gradient(180deg, #1a1838 0%, #100f24 100%);
  border: 1px solid rgba(245,200,66,.18);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 80px rgba(245,200,66,.08);
  display: none; flex-direction: column; overflow: hidden;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(20px);
}
#vlyra-window.open { display: flex; animation: vslideUp .4s cubic-bezier(.34,1.56,.64,1); }
#vlyra-window::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: radial-gradient(ellipse at top, rgba(245,200,66,.12) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

#vlyra-header {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%);
  border-bottom: 1px solid rgba(245,200,66,.1);
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; position: relative; z-index: 1;
}

.v-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #fcd957 0%, #f5c842 50%, #e89c0c 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px;
  color: #0a0a1a; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245,200,66,.4), 0 0 0 1px rgba(255,255,255,.2) inset;
  letter-spacing: .02em;
}
.v-sm-avatar { width: 32px; height: 32px; font-size: 13px; }

.v-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: #fff; letter-spacing: .02em; margin-bottom: 3px; }
.v-subtitle { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(232,232,240,.55); font-weight: 400; }
.v-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px rgba(61,220,132,.7); animation: vstatusPulse 2s ease-in-out infinite; }

#vlyra-close {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  width: 32px; height: 32px; cursor: pointer;
  color: rgba(232,232,240,.55); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
#vlyra-close:hover { background: rgba(255,255,255,.08); color: #fff; }

#vlyra-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(245,200,66,.2) transparent;
  position: relative; z-index: 1;
}
#vlyra-messages::-webkit-scrollbar { width: 5px; }
#vlyra-messages::-webkit-scrollbar-thumb { background: rgba(245,200,66,.18); border-radius: 10px; }

.v-row { display: flex; align-items: flex-end; gap: 8px; animation: vfadeSlideIn .35s ease-out; }
.v-row.user { flex-direction: row-reverse; }

.v-bubble {
  max-width: 78%;
  padding: 12px 16px;
  font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  font-family: 'DM Sans', sans-serif;
}
.v-bubble.bot {
  background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.04) 100%);
  color: #eaeaf2;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.v-bubble.user {
  background: linear-gradient(135deg, #fcd957 0%, #f5c842 50%, #e89c0c 100%);
  color: #0a0a1a;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 6px 20px rgba(245,200,66,.3), 0 0 0 1px rgba(255,255,255,.1) inset;
  font-weight: 500;
}

#vlyra-typing { display: none; align-items: flex-end; gap: 8px; }
.v-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5c842; animation: vbounce 1.3s ease-in-out infinite; }
.v-dot:nth-child(2) { animation-delay: .18s; }
.v-dot:nth-child(3) { animation-delay: .36s; }

#vlyra-qr { display: none; flex-wrap: wrap; gap: 8px; padding: 6px 16px 4px 56px; position: relative; z-index: 1; }
.vqr-btn {
  background: rgba(245,200,66,.06);
  border: 1px solid rgba(245,200,66,.25);
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: #f5c842;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all .2s;
}
.vqr-btn:hover {
  background: linear-gradient(135deg, #fcd957 0%, #f5c842 100%);
  color: #0a0a1a;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,200,66,.3);
}

#vlyra-input-area {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(245,200,66,.1);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 100%);
  flex-shrink: 0; position: relative; z-index: 1;
}
#vlyra-wrap {
  display: flex; gap: 10px; align-items: flex-end;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  transition: all .25s;
}
#vlyra-wrap:focus-within { border-color: rgba(245,200,66,.45); box-shadow: 0 0 0 3px rgba(245,200,66,.08); }
#vlyra-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #eaeaf2; font-size: 14px; line-height: 1.5;
  font-family: 'DM Sans', sans-serif; resize: none;
  max-height: 90px; overflow-y: auto;
}
#vlyra-input::placeholder { color: rgba(255,255,255,.3); }

#vlyra-send {
  width: 36px; height: 36px;
  border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
#vlyra-send.active {
  background: linear-gradient(135deg, #fcd957 0%, #f5c842 50%, #e89c0c 100%);
  box-shadow: 0 4px 14px rgba(245,200,66,.4);
}
#vlyra-send.active:hover { transform: scale(1.06); }

#vlyra-credit {
  text-align: center; margin-top: 10px;
  font-size: 10px; color: rgba(232,232,240,.3);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
#vlyra-credit span {
  background: linear-gradient(90deg, #f5c842, #fcd957, #f5c842);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: vshimmer 4s linear infinite;
  font-weight: 700;
}

@media (max-width: 480px) {
  #vlyra-window { width: calc(100vw - 24px); right: 12px; bottom: 96px; height: 75vh; }
  #vlyra-launcher { right: 20px; bottom: 20px; }
}
