 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    /* Chat Container - Always Visible */
    .chat-container {
  width: 420px;
  height: 600px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: slideUp 0.4s ease;
  z-index: 999;
  position: fixed;
  bottom: 20px;
  left: 50%;           /* Center horizontally */
  transform: translateX(-50%);  /* Pull back by half its width */
}

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

    /* Chat Header */
    .chat-header {
      background: linear-gradient(135deg, #667eea, #764ba2);
      padding: 25px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 25px 25px 0 0;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      cursor: move;
    }

    .chat-header-info {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f093fb, #f5576c);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: bold;
      color: white;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      animation: avatarGlow 3s infinite;
      overflow: hidden;
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }
    
    @keyframes avatarGlow {
      0%, 100% {
        box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
      }
      50% {
      box-shadow: 0 4px 25px rgba(240, 147, 251, 0.8);
      }
    }

    .chat-title {
      color: white;
    }

    .chat-title h3 {
      font-size: 18px;
      margin-bottom: 3px;
    }

    .chat-title p {
      font-size: 12px;
      opacity: 0.9;
    }

    .status-indicator {
      width: 10px;
      height: 10px;
      background: #4ade80;
      border-radius: 50%;
      display: inline-block;
      margin-right: 5px;
      animation: blink 2s infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    .minimize-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .minimize-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }

    /* Chat Messages */
    .chat-messages {
      flex: 1;
      padding: 25px;
      overflow-y: auto;
      background: linear-gradient(to bottom, #f8f9fa, #ffffff);
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    .chat-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, #667eea, #764ba2);
      border-radius: 10px;
    }

    .message {
      display: flex;
      gap: 12px;
      animation: messageSlide 0.3s ease;
    }

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

    .message.user {
      flex-direction: row-reverse;
    }

    .message-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      overflow: hidden;
    }

    .message-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .message.bot .message-avatar {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
    }

    .message.user .message-avatar {
      background: linear-gradient(135deg, #f093fb, #f5576c);
      color: white;
    }

    .message-content {
      max-width: 70%;
      padding: 15px 18px;
      border-radius: 18px;
      font-size: 14px;
      line-height: 1.5;
      word-wrap: break-word;
    }

    .message.bot .message-content {
      background: linear-gradient(135deg, #667eea15, #764ba215);
      border: 1px solid #667eea30;
      color: #333;
      border-radius: 18px 18px 18px 5px;
    }

    .message.user .message-content {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border-radius: 18px 18px 5px 18px;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .timestamp {
      font-size: 11px;
      opacity: 0.6;
      margin-top: 5px;
      text-align: right;
    }

    /* Typing Indicator */
    .typing-indicator {
      display: none;
      gap: 12px;
      animation: messageSlide 0.3s ease;
    }

    .typing-indicator.active {
      display: flex;
    }

    .typing-dots {
      display: flex;
      gap: 5px;
      padding: 15px 18px;
      background: linear-gradient(135deg, #667eea15, #764ba215);
      border: 1px solid #667eea30;
      border-radius: 18px 18px 18px 5px;
    }

    .typing-dots span {
      width: 8px;
      height: 8px;
      background: #667eea;
      border-radius: 50%;
      animation: typingDot 1.4s infinite;
    }

    .typing-dots span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dots span:nth-child(3) {
      animation-delay: 0.4s;
    }
    
    @keyframes typingDot {
      0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
      }
      30% {
      transform: translateY(-10px);
        opacity: 1;
      }
    }

    /* Chat Input */
    .chat-input {
      padding: 20px;
      background: white;
      border-top: 1px solid #e5e7eb;
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .chat-input input {
      flex: 1;
      padding: 14px 18px;
      border: 2px solid #e5e7eb;
      border-radius: 25px;
      font-size: 14px;
      outline: none;
      transition: all 0.3s ease;
      background: #f9fafb;
    }

    .chat-input input:focus {
      border-color: #667eea;
      background: white;
      box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

    .send-btn {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea, #764ba2);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
      flex-shrink: 0;
    }

    .send-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: scale(1);
    }

    .send-btn svg {
      width: 20px;
      height: 20px;
      fill: white;
    }

    /* Welcome Message */
    .welcome-message {
      text-align: center;
      padding: 30px 20px;
      color: #667eea;
    }

    .welcome-message h4 {
      font-size: 20px;
      margin-bottom: 10px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .welcome-message p {
      font-size: 14px;
      color: #6b7280;
      line-height: 1.6;
    }

    /* Quick Actions */
    .quick-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 15px;
      padding: 0 25px;
    }

    .quick-action-btn {
      padding: 10px 16px;
      background: white;
      border: 2px solid #667eea30;
      border-radius: 20px;
      font-size: 13px;
      color: #667eea;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    .quick-action-btn:hover {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border-color: transparent;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    /* Minimized State */
    .chat-container.minimized {
      width: 350px;
      height: 80px;
      border-radius: 15px;
      position: fixed;
      bottom: 20px;
      right: 20px;
    }

    .chat-container.minimized .chat-messages,
    .chat-container.minimized .chat-input {
      display: none;
    }

    .chat-container.minimized .chat-header {
      border-radius: 15px;
      cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .chat-container {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        border-radius: 15px;
        position: fixed;
        bottom: 20px;
        right: 20px;
      }

      .chat-container.minimized {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
      }
    }

    /* Error Message */
    .error-message {
      background: #fee2e2;
      border: 1px solid #fca5a5;
      color: #dc2626;
      padding: 12px;
      border-radius: 12px;
      font-size: 13px;
      margin: 10px 25px;
      animation: messageSlide 0.3s ease;
    }

    /* Success Message */
    .success-message {
      background: #d1fae5;
      border: 1px solid #6ee7b7;
      color: #065f46;
      padding: 12px;
      border-radius: 12px;
      font-size: 13px;
      margin: 10px 25px;
      animation: messageSlide 0.3s ease;
    }

    /* Loading Animation */
    .loading-spinner {
      border: 2px solid #f3f4f6;
      border-top: 2px solid #667eea;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      animation: spin 1s linear infinite;
      display: inline-block;
      margin-right: 10px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .message-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex-shrink: 0 !important;
  position: relative;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}