  #fmx-tooltip {
    position: fixed; bottom: 36px; right: 96px;
    background: #fff; border: 0.5px solid #e0ddf5;
    border-radius: 12px 12px 4px 12px;
    padding: 10px 14px; font-size: 13px;
    font-family: 'DM Sans', sans-serif; color: #1a1a1a;
    white-space: nowrap; z-index: 9998;
    transition: opacity 0.3s ease; pointer-events: none;
  }
  #fmx-tooltip.hide { opacity: 0; }

  #fmx-fab {
    position: fixed; bottom: 28px; right: 28px;
    width: 60px; height: 60px; border-radius: 50%;
    background: #0ABF53; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; overflow: hidden; padding: 0;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  #fmx-fab:hover { background: #89BD28; transform: scale(1.06); }
  #fmx-fab:active { transform: scale(0.97); }
  #fmx-fab .logo-img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    transition: opacity 0.2s ease, transform 0.3s ease; position: absolute;
  }
  #fmx-fab .close-icon {
    position: absolute; opacity: 0;
    transform: rotate(-45deg) scale(0.7);
    transition: opacity 0.25s ease, transform 0.3s ease;
  }
  #fmx-fab.open .logo-img { opacity: 0; transform: scale(0.7) rotate(45deg); }
  #fmx-fab.open .close-icon { opacity: 1; transform: rotate(0deg) scale(1); }
  #fmx-badge {
  position: fixed;
  bottom: 68px;
  right: 24px;
  width: 20px;
  height: 20px;
  background: #e53935;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
  z-index: 10000;
}

  #fmx-modal {
    position: fixed; bottom: 96px; right: 28px;
    width: 376px; height: 496px;
    background: #fff; border: 0.5px solid #ddd;
    border-radius: 16px; display: flex; flex-direction: column;
    overflow: hidden; z-index: 9997;
    transform: scale(0.88) translateY(18px);
    transform-origin: bottom right;
    opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.52,0.64,1), opacity 0.2s ease;
    font-family: 'DM Sans', sans-serif;
  }

  @media (max-width: 768px) {
    #fmx-modal {
    position: fixed; bottom: 96px; right: 28px;
    width: 376px; height: 496px;
    background: #fff; border: 0.5px solid #ddd;
    border-radius: 16px; display: flex; flex-direction: column;
    overflow: hidden; z-index: 9997;
    transform: scale(0.88) translateY(18px);
    transform-origin: bottom right;
    opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.52,0.64,1), opacity 0.2s ease;
    font-family: 'DM Sans', sans-serif;
  }
  }

  #fmx-modal.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

  .fmx-header {
    background: #0ABF53; padding: 14px 16px 13px;
    display: flex; align-items: center; gap: 10px;
  }
  .fmx-hav {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0;
  }
  .fmx-hav img { width: 100%; height: 100%; object-fit: cover; }
  .fmx-hname {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 14.5px; color: #fff; line-height: 1.2;
  }
  .fmx-hsub {
    font-size: 11px; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 5px; margin-top: 2px;
  }
  .fmx-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #048136;
    animation: fmx-pulse 2s infinite; flex-shrink: 0;
  }
  @keyframes fmx-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

  .fmx-msgs {
    flex: 1; overflow-y: auto; padding: 14px 13px;
    display: flex; flex-direction: column; gap: 10px;
    background: #f5f4fb;
  }
  .fmx-msgs::-webkit-scrollbar { width: 3px; }
  .fmx-msgs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

  .fmx-row { display: flex; align-items: flex-end; gap: 6px; }
  .fmx-row.user { flex-direction: row-reverse; }

  .fmx-bubble {
    max-width: 80%; font-size: 13px; line-height: 1.5;
    padding: 9px 12px; border-radius: 14px;
    animation: fmx-in 0.22s ease;
  }
  @keyframes fmx-in { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
  .fmx-bubble.bot {
    background: #fff; border: 0.5px solid #e0ddf5;
    color: #1a1a1a; border-bottom-left-radius: 4px;
  }
  .fmx-bubble.user {
    background: #0ABF53; color: #fff; border-bottom-right-radius: 4px;
  }

  .fmx-mini-av {
    width: 24px; height: 24px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0; border: 1px solid #e0ddf5;
  }
  .fmx-mini-av img { width: 100%; height: 100%; object-fit: cover; }

  .fmx-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-left: 30px; margin-top: 2px;
  }
  .fmx-chip {
    font-size: 11.5px; padding: 5px 10px; border-radius: 20px;
    background: #fff; border: 0.5px solid #0ABF53; color: #161418;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: background 0.15s;
  }
  .fmx-chip:hover { background: #ede7f6; }

  .fmx-typing {
    display: flex; gap: 4px; padding: 10px 13px;
    background: #fff; border: 0.5px solid #e0ddf5;
    border-radius: 14px; border-bottom-left-radius: 4px; align-items: center;
  }
  .fmx-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: #0ABF53; animation: fmx-bounce 1.2s infinite;
  }
  .fmx-typing span:nth-child(2) { animation-delay: 0.2s; }
  .fmx-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes fmx-bounce { 0%,60%,100%{transform:translateY(0);opacity:0.35} 30%{transform:translateY(-5px);opacity:1} }

  .fmx-footer {
    padding: 10px 12px; background: #fff;
    border-top: 0.5px solid #e5e2f0;
    display: flex; align-items: center; gap: 8px;
  }
  .fmx-input {
    flex: 1; border: 0.5px solid #ccc; border-radius: 20px;
    padding: 8px 14px; font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    background: #f5f4fb; color: #1a1a1a; outline: none;
    transition: border-color 0.15s;
  }
  .fmx-input:focus { border-color: #0ABF53; }
  .fmx-input::placeholder { color: #aaa; }
  .fmx-send {
    width: 35px; height: 35px; border-radius: 50%;
    background: #0ABF53; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s; flex-shrink: 0;
  }
  .fmx-send:hover { background: #044913; }
  .fmx-send:active { transform: scale(0.93); }
  .fmx-brand {
    text-align: center; font-size: 10px; color: #aaa;
    padding: 4px 0 2px; font-family: 'DM Sans', sans-serif;
  }
  .fmx-brand a { color: #0ABF53; font-weight: 500; text-decoration: none; }