.aviavin-fc{
  position: fixed;
  bottom: 22px;
  z-index: 99999;
  font-family: Arial, sans-serif;
  --aviavin-fc-bg: #ffffff;
  --aviavin-fc-header: #0f172a;
  --aviavin-fc-button: #25D366;
  --aviavin-fc-button-text: #ffffff;
}

.aviavin-fc-right{ right: 22px; }
.aviavin-fc-left{ left: 22px; }

.aviavin-fc-launcher{
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: var(--aviavin-fc-button);
  color: var(--aviavin-fc-button-text);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aviavin-fc-launcher-icon{
  font-size: 26px;
  position: relative;
  z-index: 2;
}

.aviavin-fc-launcher-image{
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.aviavin-fc-pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: aviavinPulse 2s infinite;
  background: rgba(37, 211, 102, 0.35);
}

@keyframes aviavinPulse{
  0%{ transform: scale(1); opacity: .8; }
  70%{ transform: scale(1.45); opacity: 0; }
  100%{ transform: scale(1.45); opacity: 0; }
}

.aviavin-fc-panel,
.aviavin-fc-popup{
  position: absolute;
  bottom: 78px;
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
}

.aviavin-fc-right .aviavin-fc-panel,
.aviavin-fc-right .aviavin-fc-popup{
  right: 0;
}

.aviavin-fc-left .aviavin-fc-panel,
.aviavin-fc-left .aviavin-fc-popup{
  left: 0;
}

.aviavin-fc-panel.active,
.aviavin-fc-popup.active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aviavin-fc-popup-card,
.aviavin-fc-panel{
  background: var(--aviavin-fc-bg);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}

.aviavin-fc-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  background: var(--aviavin-fc-header);
  color: #fff;
}

.aviavin-fc-title,
.aviavin-fc-popup-title{
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.aviavin-fc-subtitle,
.aviavin-fc-popup-text{
  font-size: 13px;
  opacity: 0.92;
  margin-top: 4px;
  line-height: 1.4;
}

.aviavin-fc-body{
  padding: 14px;
  background: var(--aviavin-fc-bg);
}

.aviavin-fc-action{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.aviavin-fc-action:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: #fff;
}

.aviavin-fc-action-icon{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.aviavin-fc-action span small{
  display: block;
  color: #6b7280;
  margin-top: 3px;
  font-size: 12px;
}

.aviavin-fc-close,
.aviavin-fc-popup-close{
  background: transparent;
  border: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.aviavin-fc-popup-card{
  position: relative;
  padding: 14px 16px;
}

.aviavin-fc-popup-close{
  position: absolute;
  top: 8px;
  right: 10px;
  color: #64748b;
}

.aviavin-fc-typing-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.aviavin-fc-typing-panel{
  margin-bottom: 14px;
  margin-top: 0;
}

.aviavin-fc-typing-dots{
  display: inline-flex;
  gap: 4px;
}

.aviavin-fc-typing-dots span{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: aviavinTyping 1.2s infinite ease-in-out;
}
.aviavin-chat-widget {
    bottom: 90px;
    right: 25px;
}

.aviavin-fc-typing-dots span:nth-child(2){ animation-delay: .15s; }
.aviavin-fc-typing-dots span:nth-child(3){ animation-delay: .3s; }

@keyframes aviavinTyping{
  0%, 80%, 100%{ transform: scale(.75); opacity: .5; }
  40%{ transform: scale(1); opacity: 1; }
}

.aviavin-fc-typing-label{
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 768px){
  .aviavin-fc{
    bottom: 16px;
  }

  .aviavin-fc-right{ right: 16px; }
  .aviavin-fc-left{ left: 16px; }

  .aviavin-fc-panel,
  .aviavin-fc-popup{
    width: 290px;
    bottom: 72px;
  }

  .aviavin-fc-launcher{
    width: 56px;
    height: 56px;
  }

  .aviavin-fc-launcher-image{
    width: 24px;
    height: 24px;
  }
}