#ex-chat-btn {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #B8E04C, #6FD9C2);
    border: none; cursor: pointer;
    box-shadow: 0 4px 24px rgba(184,224,76,0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  #ex-chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(184,224,76,0.6); }
  #ex-chat-btn .ex-close-icon { display: none; }
  #ex-chat-btn.open .ex-chat-icon { display: none; }
  #ex-chat-btn.open .ex-close-icon { display: block; }

  #ex-chat-win {
    position: fixed; bottom: 104px; right: 28px; z-index: 9998;
    width: 400px; height: 560px; max-height: 80vh;
    background: #0B1929; border-radius: 20px;
    border: 1px solid rgba(184,224,76,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,224,76,0.08);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.25s, transform 0.25s;
  }
  #ex-chat-win.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

  #ex-chat-head {
    padding: 14px 18px; border-bottom: 1px solid rgba(184,224,76,0.1);
    background: linear-gradient(135deg, rgba(184,224,76,0.06), rgba(111,217,194,0.06));
    display: flex; align-items: center; gap: 11px; flex-shrink: 0;
  }
  .ex-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: rgba(184,224,76,0.08); border: 1px solid rgba(184,224,76,0.3);
    display: flex; align-items: center; justify-content: center;
  }
  .ex-avatar svg { width: 18px; height: 18px; }
  .ex-hname { font-family: 'Bricolage Grotesque',sans-serif; font-weight:700; color:#ECF2EE; font-size:0.88rem; }
  .ex-hsub { font-size:0.69rem; color:rgba(184,224,76,0.7); margin-top:1px; }
  .ex-dot { width:8px; height:8px; border-radius:50%; background:#B8E04C; box-shadow:0 0 6px #B8E04C; flex-shrink:0; }

  #ex-chat-tabs {
    display: flex; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15); flex-shrink: 0;
  }
  .ex-tab {
    flex: 1; padding: 10px 4px; font-size: 0.72rem; text-align: center;
    cursor: pointer; color: rgba(255,255,255,0.4); border: none; background: none;
    font-family: 'Open Sans',sans-serif; transition: color 0.15s;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    min-height: 40px; -webkit-tap-highlight-color: transparent;
  }
  .ex-tab.active { color: #B8E04C; border-bottom-color: #B8E04C; }
  .ex-tab:focus-visible { outline: 2px solid rgba(184,224,76,0.7); outline-offset: -2px; }

  #ex-chat-msgs {
    flex:1; overflow-y:auto; padding:14px 12px 8px;
    display:flex; flex-direction:column; gap:10px;
    scrollbar-width:thin; scrollbar-color:rgba(184,224,76,0.15) transparent;
  }
  #ex-chat-msgs::-webkit-scrollbar { width:4px; }
  #ex-chat-msgs::-webkit-scrollbar-thumb { background:rgba(184,224,76,0.2); border-radius:4px; }

  .ex-msg { display:flex; gap:8px; max-width:94%; animation: exFadeIn 0.2s ease; }
  @keyframes exFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
  .ex-msg.user { align-self:flex-end; flex-direction:row-reverse; }
  .ex-msg.bot  { align-self:flex-start; }
  .ex-bubble {
    padding:9px 13px; border-radius:14px; font-size:0.82rem;
    line-height:1.55; font-family:'Open Sans',sans-serif;
  }
  .ex-msg.bot  .ex-bubble {
    background:rgba(255,255,255,0.055); color:rgba(255,255,255,0.9);
    border-radius:4px 14px 14px 14px; border:1px solid rgba(255,255,255,0.07);
  }
  .ex-msg.user .ex-bubble {
    background:linear-gradient(135deg,rgba(184,224,76,0.18),rgba(111,217,194,0.18));
    color:#ECF2EE; border-radius:14px 4px 14px 14px;
    border:1px solid rgba(184,224,76,0.2);
  }
  .ex-mavatar {
    width:24px; height:24px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; align-self:flex-end;
  }
  .ex-msg.bot  .ex-mavatar { background:rgba(184,224,76,0.1); border:1px solid rgba(184,224,76,0.2); }
  .ex-msg.user .ex-mavatar { background:rgba(184,224,76,0.15); border:1px solid rgba(184,224,76,0.3); }
  .ex-mavatar svg { width:12px; height:12px; }

  .ex-typing { display:flex; gap:4px; align-items:center; padding:9px 13px; }
  .ex-typing span {
    width:6px; height:6px; border-radius:50%; background:rgba(184,224,76,0.5);
    display:inline-block; animation:exBounce 1.2s infinite ease-in-out;
  }
  .ex-typing span:nth-child(2){animation-delay:.2s} .ex-typing span:nth-child(3){animation-delay:.4s}
  @keyframes exBounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-6px);opacity:1}}

  .ex-chips { display:flex; flex-wrap:wrap; gap:6px; padding:4px 2px 6px; }
  .ex-chip {
    font-size:0.74rem; padding:8px 12px; border-radius:20px; cursor:pointer;
    background:rgba(184,224,76,0.07); border:1px solid rgba(184,224,76,0.22);
    color:rgba(184,224,76,0.85); font-family:'Open Sans',sans-serif;
    transition:background 0.15s, color 0.15s; white-space:nowrap;
    min-height:32px; -webkit-tap-highlight-color:transparent;
  }
  .ex-chip:hover { background:rgba(184,224,76,0.16); color:#B8E04C; }
  .ex-chip:focus-visible { outline:2px solid rgba(184,224,76,0.7); outline-offset:2px; }
  @media (max-width: 640px) { .ex-chip { font-size:0.8rem; padding:10px 14px; min-height:40px; } }

  #ex-chat-inp-area {
    padding:10px 12px; border-top:1px solid rgba(255,255,255,0.06);
    background:rgba(0,0,0,0.2); display:flex; gap:7px; align-items:center; flex-shrink:0;
  }
  #ex-chat-inp {
    flex:1; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
    border-radius:20px; padding:8px 15px; color:#ECF2EE; font-size:0.82rem;
    font-family:'Open Sans',sans-serif; transition:border-color 0.2s;
  }
  #ex-chat-inp:focus { border-color:rgba(184,224,76,0.4); outline:none; }
  #ex-chat-inp:focus-visible { outline:2px solid rgba(184,224,76,0.7); outline-offset:2px; }
  #ex-chat-inp::placeholder { color:rgba(255,255,255,0.3); }
  #ex-chat-send {
    width:36px; height:36px; border-radius:50%; flex-shrink:0;
    background:linear-gradient(135deg,#B8E04C,#6FD9C2);
    border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:opacity 0.2s, transform 0.2s;
  }
  #ex-chat-send:hover { opacity:.85; transform:scale(1.05); }
  #ex-chat-send svg { width:14px; height:14px; }
  #ex-chat-powered { text-align:center; font-size:0.62rem; color:rgba(255,255,255,0.2); padding:4px 0 8px; flex-shrink:0; }

  @media(max-width:480px){
    #ex-chat-win{width:calc(100vw - 20px);right:10px;bottom:82px;}
    #ex-chat-btn{right:10px;bottom:10px;}
  }