/* ==========================================================================
   HAIKS AI Assistant Floating Widget (Maja) - Executive Light Compatible
   ========================================================================== */

.haiks-assistant-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.haiks-assistant-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #2563EB;
  background: #0F172A;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 15px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  outline: none;
}

.haiks-assistant-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 22px rgba(37, 99, 235, 0.5);
}

.haiks-assistant-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.haiks-assistant-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10B981;
  border: 2px solid #0F172A;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.haiks-assistant-bubble {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 300px;
  background: #0F172A;
  color: #F8FAFC;
  padding: 14px 16px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  animation: bubblePop 0.4s ease-out;
}

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.haiks-assistant-bubble .bubble-text {
  margin-right: 18px;
  display: block;
}

.haiks-assistant-bubble .bubble-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.haiks-assistant-bubble .bubble-close:hover {
  color: #F8FAFC;
}

/* Chat Modal */
.haiks-chat-modal {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.haiks-chat-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.haiks-chat-header {
  background: #0F172A;
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.haiks-chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.haiks-chat-header-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #2563EB;
}

.haiks-chat-header-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;

}

.haiks-chat-header-info span {
  font-size: 11px;
  color: #94A3B8;
}

.haiks-chat-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
}

.haiks-chat-body {
  padding: 20px;
}

.haiks-chat-msg-intro {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.haiks-form-group {
  margin-bottom: 12px;
}

.haiks-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 4px;
}

.haiks-form-group input,
.haiks-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.haiks-form-group input:focus,
.haiks-form-group textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.haiks-submit-btn {
  width: 100%;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.haiks-submit-btn:hover {
  background: #1D4ED8;
}

.haiks-chat-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.haiks-chat-success.is-active {
  display: block;
}

.haiks-success-icon {
  width: 48px;
  height: 48px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.haiks-hp-field {
  display: none !important;
}
