/* Timelsa Chatbot */
    @keyframes chatFabIn {
      from {
        opacity: 0;
        transform: scale(0.75);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes chatMessageIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .chat-fab {
      position: fixed;
      bottom: 88px;
      right: 16px;
      width: 58px;
      height: 58px;
      border: 0;
      border-radius: 9999px;
      background: #0066CC;
      color: #fff;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 25px rgba(0, 102, 204, 0.35);
      cursor: pointer;
      z-index: 10002;
      animation: chatFabIn 0.35s ease-out;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .chat-fab:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 14px 26px rgba(0, 102, 204, 0.45);
    }

    .chat-popup {
      position: fixed;
      bottom: 156px;
      right: 16px;
      width: min(320px, calc(100vw - 24px));
      max-height: min(520px, calc(100vh - 120px));
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 10001;
      border: 1px solid #e5e7eb;
    }

    .chat-popup.open {
      display: flex;
      animation: chatFabIn 0.25s ease-out;
    }

    .chat-header {
      background: #0066CC;
      color: #fff;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .chat-close {
      border: 0;
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      width: 30px;
      height: 30px;
      border-radius: 9999px;
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
    }

    .chat-body {
      flex: 1;
      padding: 12px;
      overflow-y: auto;
      background: #f8fbff;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .chat-message {
      max-width: 85%;
      padding: 9px 12px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.5;
      word-break: break-word;
      animation: chatMessageIn 0.2s ease-out;
    }

    .chat-message.bot {
      align-self: flex-start;
      background: #E6F2FF;
      color: #0f172a;
      border-bottom-left-radius: 4px;
    }

    .chat-message.user {
      align-self: flex-end;
      background: #0066CC;
      color: #fff;
      border-bottom-right-radius: 4px;
    }

    .chat-message.typing {
      align-self: flex-start;
      background: #fff4cc;
      color: #7c4a00;
      border: 1px solid #FFCC00;
    }

    .chat-footer {
      border-top: 1px solid #eef2f7;
      padding: 10px;
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .chat-quick-replies,
    .chat-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chat-reply-btn,
    .chat-control-btn {
      border: 0;
      border-radius: 9999px;
      padding: 6px 10px;
      font-size: 12px;
      cursor: pointer;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .chat-reply-btn {
      background: #0066CC;
      color: #fff;
    }

    .chat-control-btn {
      background: #f1f5f9;
      color: #1f2937;
    }

    .chat-control-btn.restart {
      background: #FF3333;
      color: #fff;
    }

    .chat-reply-btn:hover,
    .chat-control-btn:hover {
      transform: translateY(-1px);
      opacity: 0.92;
    }

    @media (min-width: 1024px) {
      .chat-fab {
        bottom: 20px;
      }

      .chat-popup {
        bottom: 92px;
      }
    }
