
/* Menxar website assistant */
#menxar-chat-launcher{position:fixed;right:26px;bottom:24px;z-index:9998;display:flex;align-items:center;gap:11px;border:0;border-radius:999px;padding:10px 18px 10px 10px;background:linear-gradient(135deg,#1765e8,#5546ed);color:#fff;font:700 14px/1.2 "DM Sans",Arial,sans-serif;box-shadow:0 12px 34px rgba(25,76,170,.28);cursor:pointer;transition:transform .2s,box-shadow .2s}
#menxar-chat-launcher:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(25,76,170,.36)}
#menxar-chat-launcher:focus-visible,#menxar-chat-close:focus-visible,#menxar-chat-send:focus-visible{outline:3px solid #ff9a55;outline-offset:3px}
.menxar-chat-launch-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#2167e8;font-size:21px}
.menxar-chat-launch-label{display:flex;flex-direction:column;gap:3px;text-align:left}
.menxar-chat-launch-label small{font-size:10px;font-weight:600;opacity:.82;letter-spacing:.07em;text-transform:uppercase}
#menxar-chat-panel{position:fixed;right:26px;bottom:94px;z-index:9999;display:none;flex-direction:column;width:min(390px,calc(100vw - 28px));height:min(590px,calc(100dvh - 125px));min-height:390px;overflow:hidden;border:1px solid #dce6f6;border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(11,35,77,.24);font-family:"DM Sans",Arial,sans-serif;color:#172d50}
#menxar-chat-panel.is-open{display:flex;animation:menxarChatIn .2s ease-out}
@keyframes menxarChatIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.menxar-chat-head{display:flex;align-items:center;gap:12px;padding:17px 18px;background:linear-gradient(120deg,#102e55,#174b88);color:#fff}
.menxar-chat-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(255,255,255,.32);border-radius:14px;background:linear-gradient(135deg,#2876f5,#7545ed);font-weight:800;font-size:18px}
.menxar-chat-head-copy{flex:1;min-width:0}
.menxar-chat-head-copy strong{display:block;font-size:14px;letter-spacing:.01em}
.menxar-chat-head-copy span{display:flex;align-items:center;gap:6px;margin-top:4px;color:#d7e6ff;font-size:11px}
.menxar-chat-online{width:7px;height:7px;border-radius:50%;background:#52e0a2;box-shadow:0 0 0 3px rgba(82,224,162,.14)}
#menxar-chat-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:20px;cursor:pointer}
.menxar-chat-messages{display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:18px 15px 12px;background:linear-gradient(180deg,#f6f9ff,#fff 42%)}
.menxar-chat-message{max-width:88%;padding:11px 13px;border-radius:15px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.menxar-chat-message.bot{align-self:flex-start;border:1px solid #e3eaf6;border-top-left-radius:5px;background:#fff;color:#334a6c;box-shadow:0 3px 12px rgba(21,55,102,.04)}
.menxar-chat-message.user{align-self:flex-end;border-top-right-radius:5px;background:#2168e9;color:#fff}
.menxar-chat-message a{color:#1765e8;font-weight:700;text-decoration:underline}
.menxar-chat-message.user a{color:#fff}
.menxar-chat-quick{display:flex;flex-wrap:wrap;gap:7px;padding:0 15px 12px;background:#fff}
.menxar-chat-quick button{border:1px solid #d9e5fa;border-radius:999px;padding:7px 10px;background:#f7faff;color:#24518e;font:600 11px "DM Sans",Arial,sans-serif;cursor:pointer}
.menxar-chat-quick button:hover{border-color:#2875f5;background:#edf4ff}
.menxar-chat-compose{display:flex;gap:8px;align-items:center;padding:12px;border-top:1px solid #e8eef8;background:#fff}
#menxar-chat-input{flex:1;min-width:0;height:43px;border:1px solid #d9e3f1;border-radius:12px;padding:0 12px;background:#fbfcff;color:#172d50;font:13px "DM Sans",Arial,sans-serif;outline:none}
#menxar-chat-input:focus{border-color:#397bf2;box-shadow:0 0 0 3px rgba(57,123,242,.12)}
#menxar-chat-send{display:grid;place-items:center;width:43px;height:43px;border:0;border-radius:12px;background:linear-gradient(135deg,#1765e8,#6548ed);color:#fff;font-size:18px;cursor:pointer}
.menxar-chat-note{padding:0 14px 10px;background:#fff;color:#8291a8;text-align:center;font-size:10px}
@media(max-width:520px){#menxar-chat-launcher{right:14px;bottom:14px;padding:8px 14px 8px 8px}#menxar-chat-panel{right:10px;bottom:76px;width:calc(100vw - 20px);height:min(590px,calc(100dvh - 94px));min-height:360px;border-radius:18px}.menxar-chat-head{padding:14px}.menxar-chat-messages{padding:14px 12px 10px}}
@media(prefers-reduced-motion:reduce){#menxar-chat-panel.is-open{animation:none}#menxar-chat-launcher{transition:none}}


/* Menxar premium compact mobile assistant */
@media (max-width: 520px) {
  #menxar-chat-launcher {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    min-width: 54px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(22, 71, 157, .28);
  }
  #menxar-chat-launcher .menxar-chat-launch-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 21px;
  }
  #menxar-chat-launcher .menxar-chat-launch-label { display: none; }

  #menxar-chat-panel {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: min(350px, calc(100vw - 32px));
    height: min(490px, calc(100dvh - 150px));
    min-height: 300px;
    max-height: calc(100dvh - 120px);
    border-radius: 20px;
    box-shadow: 0 18px 54px rgba(11,35,77,.22);
  }
  .menxar-chat-head {
    gap: 10px;
    padding: 12px 14px;
  }
  .menxar-chat-avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }
  .menxar-chat-head-copy strong { font-size: 13px; }
  .menxar-chat-head-copy span { font-size: 10px; }
  #menxar-chat-close { width: 32px; height: 32px; }
  .menxar-chat-messages {
    gap: 9px;
    padding: 12px 11px 9px;
  }
  .menxar-chat-message {
    max-width: 91%;
    padding: 9px 11px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.5;
  }
  .menxar-chat-quick {
    gap: 6px;
    padding: 0 11px 9px;
  }
  .menxar-chat-quick button {
    padding: 6px 9px;
    font-size: 10px;
  }
  .menxar-chat-compose {
    gap: 7px;
    padding: 9px 10px;
  }
  #menxar-chat-input {
    height: 40px;
    border-radius: 11px;
    padding: 0 10px;
    font-size: 12px;
  }
  #menxar-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 17px;
  }
  .menxar-chat-note {
    padding: 0 10px 8px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  #menxar-chat-panel {
    right: 12px;
    width: calc(100vw - 24px);
    bottom: calc(76px + env(safe-area-inset-bottom));
    height: min(455px, calc(100dvh - 132px));
  }
  #menxar-chat-launcher {
    right: 14px;
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  #menxar-chat-launcher .menxar-chat-launch-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}


/* V100 — Menxar robot mascot identity and responsive premium chat */
#menxar-chat-launcher .menxar-chat-launch-icon {
  width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.88); border-radius: 50%;
  background: #071638; box-shadow: 0 0 0 2px rgba(0,211,255,.3), 0 0 22px rgba(0,175,255,.35);
}
#menxar-chat-launcher .menxar-chat-launch-icon img {
  display:block; width:100%; height:100%; object-fit:cover; border-radius:50%;
}
.menxar-chat-avatar {
  overflow:hidden !important; border-radius:50% !important;
  border:1px solid rgba(67,211,255,.8) !important;
  background:#071638 !important; box-shadow:0 0 16px rgba(0,174,255,.24);
}
.menxar-chat-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.menxar-chat-head {
  background: radial-gradient(circle at 88% 0%,rgba(25,111,255,.32),transparent 42%),
    linear-gradient(120deg,#06132f 0%,#102a5b 62%,#24205d 100%) !important;
}
#menxar-chat-panel { border-color:rgba(79,160,255,.35); }
@media(max-width:700px) {
  #menxar-chat-launcher {
    width:64px !important;height:64px !important;min-width:64px !important;
    min-height:64px !important;max-width:64px !important;max-height:64px !important;
    padding:3px !important;border:1px solid rgba(91,221,255,.8) !important;
    background:linear-gradient(145deg,#071638,#172a66 60%,#5525a0) !important;
    box-shadow:0 7px 28px rgba(0,110,255,.35),0 0 0 4px rgba(26,169,255,.12) !important;
  }
  #menxar-chat-launcher .menxar-chat-launch-icon {
    width:100% !important;height:100% !important;flex:0 0 100% !important;
    border:0 !important;box-shadow:none !important;
  }
  #menxar-chat-panel {
    right:max(10px,env(safe-area-inset-right)) !important;
    bottom:calc(86px + env(safe-area-inset-bottom)) !important;
    left:max(10px,env(safe-area-inset-left)) !important;
    width:auto !important;max-width:480px !important;
    height:min(620px,calc(100dvh - 108px - env(safe-area-inset-bottom))) !important;
    min-height:280px !important;max-height:calc(100dvh - 100px - env(safe-area-inset-bottom)) !important;
    margin-left:auto !important;margin-right:auto !important;
    border-radius:22px !important;
  }
  .menxar-chat-head { min-height:68px !important;padding:12px 14px !important; }
  .menxar-chat-avatar { width:44px !important;height:44px !important;flex:0 0 44px !important; }
  .menxar-chat-head-copy strong { font-size:14px !important; }
  .menxar-chat-head-copy span { font-size:10px !important; }
  .menxar-chat-messages { padding:14px 12px !important; }
  .menxar-chat-message { font-size:13px !important;line-height:1.55 !important; }
  .menxar-chat-quick { max-height:78px;overflow-y:auto; }
}
@media(max-width:380px) {
  #menxar-chat-panel {
    right:8px !important;left:8px !important;width:auto !important;
    bottom:calc(78px + env(safe-area-inset-bottom)) !important;
    height:min(570px,calc(100dvh - 96px - env(safe-area-inset-bottom))) !important;
  }
  #menxar-chat-launcher { width:58px !important;height:58px !important;min-width:58px !important;min-height:58px !important; }
}
