/* CO-CHU-0311 */
/* ==========================================================================
   RQX CHINESE - TRỢ LÝ GIẢI ĐÁP (POP-UP WEB ĐỢT 1)
   Cùng tông màu navy/gold của site, gọn ở khổ 390px, không đè nút khác.
   ========================================================================== */

:root {
  --tl-fab-bottom: 16px;
  --tl-fab-right: 16px;
}

.rqx-tl-root {
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink, #0F172A);
  line-height: 1.5;
  box-sizing: border-box;
}

.rqx-tl-root *,
.rqx-tl-root *::before,
.rqx-tl-root *::after {
  box-sizing: border-box;
}

/* Khung bọc nút mở trợ lý: mặc định góc phải dưới, khách kéo đi được (27/10/2026) */
.rqx-tl-fabwrap {
  position: fixed;
  right: var(--tl-fab-right, 16px);
  bottom: var(--tl-fab-bottom, 16px);
  z-index: 95;
  transition: bottom 0.18s ease;
}

.rqx-tl-fabwrap.is-off {
  display: none;
}

.rqx-tl-fabwrap.is-dragging {
  transition: none;
}

.rqx-tl-fabwrap.is-dragging .rqx-tl-fab {
  cursor: grabbing;
  transform: scale(1.04);
  box-shadow: 0 18px 38px rgba(11, 27, 63, 0.45);
}

/* Nút ✕ tắt nút trợ lý: hiện khi rê chuột, luôn hiện trên màn cảm ứng */
.rqx-tl-fab-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #0B1B3F;
  background: #FFFFFF;
  color: #0B1B3F;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(11, 27, 63, 0.25);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.rqx-tl-fabwrap:hover .rqx-tl-fab-x,
.rqx-tl-fabwrap:focus-within .rqx-tl-fab-x {
  opacity: 1;
}

.rqx-tl-fab-x:hover {
  background: #E2EEFE;
  color: #1B4F99;
  border-color: #1B4F99;
}

@media (hover: none) {
  .rqx-tl-fab-x {
    opacity: 1;
  }
}

/* Mẩu nhỏ sát mép phải để hiện lại nút trợ lý sau khi tắt */
.rqx-tl-restore {
  position: fixed;
  right: 0;
  bottom: 96px;
  z-index: 95;
  width: 30px;
  height: 40px;
  padding: 0 0 0 4px;
  border: 1.5px solid rgba(96, 165, 250, 0.78);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(135deg, #0B1B3F 0%, #1E3A8A 100%);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  box-shadow: 0 6px 16px rgba(11, 27, 63, 0.25);
  transition: opacity 0.15s ease, width 0.15s ease;
}

.rqx-tl-restore.is-on {
  display: inline-flex;
}

.rqx-tl-restore:hover {
  opacity: 1;
  width: 36px;
}

/* Nút mở trợ lý */
.rqx-tl-fab {
  position: relative;
  touch-action: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 2px solid rgba(96, 165, 250, 0.78);
  background: linear-gradient(135deg, #0B1B3F 0%, #1E3A8A 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 27, 63, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.rqx-tl-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 27, 63, 0.42);
}

.rqx-tl-fab-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  color: #0B1B3F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  flex-shrink: 0;
}

.rqx-tl-fab-text {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.rqx-tl-fab.is-open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* Khi trang có thanh nộp bài cố định ở đáy (Phòng thi) hoặc thanh chấm điểm (Giáo trình) */
body:has(.submitbar),
body:has(.score) {
  --tl-fab-bottom: 76px;
}

/* Khung hộp thoại trợ lý */
.rqx-tl-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  margin: 0;
  /* site.css có quy tắc chung section { padding: 72px 0 } làm đầu và chân khung bị hở, phải đặt lại 0 */
  padding: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  /* 27/10/2026: cao bằng 140% bản cũ (560px), màn thấp thì tự co theo chiều cao màn hình */
  height: 784px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(11, 27, 63, 0.30);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Đang kéo khung chat bằng thanh đầu khung */
.rqx-tl-panel.is-dragging {
  transition: none;
  user-select: none;
  -webkit-user-select: none;
}

.rqx-tl-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (min-width: 641px) {
  .rqx-tl-head {
    cursor: move;
  }
}

/* Đầu hộp thoại */
.rqx-tl-head {
  background: linear-gradient(135deg, #0B1B3F 0%, #1E3A8A 100%);
  color: #FFFFFF;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.rqx-tl-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rqx-tl-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  color: #0B1B3F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rqx-tl-title-wrap {
  min-width: 0;
}

.rqx-tl-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rqx-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.rqx-tl-disclaimer {
  font-size: 12.5px;
  color: #BFDBFE;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.25;
}

.rqx-tl-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rqx-tl-hanh-top,
.rqx-tl-zalo-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #60A5FA;
  color: #0B1B3F !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.rqx-tl-hanh-top:hover,
.rqx-tl-zalo-top:hover {
  background: #60A5FA;
  transform: translateY(-1px);
}

.rqx-tl-close {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rqx-tl-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Vùng tin nhắn */
.rqx-tl-body {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 12px 12px 10px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.rqx-tl-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
  animation: rqxTlFadeIn 0.2s ease;
}

@keyframes rqxTlFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rqx-tl-msg.is-user {
  align-self: flex-end;
  align-items: flex-end;
}

.rqx-tl-msg.is-bot {
  align-self: flex-start;
  align-items: flex-start;
}

.rqx-tl-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  word-break: break-word;
}

.rqx-tl-msg.is-user .rqx-tl-bubble {
  background: linear-gradient(135deg, #1E3A8A, #2D5BD7);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
}

.rqx-tl-msg.is-bot .rqx-tl-bubble {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-top-left-radius: 4px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.rqx-tl-bubble p {
  margin: 0 0 6px;
}

.rqx-tl-bubble p:last-child {
  margin-bottom: 0;
}

.rqx-tl-bubble ul {
  margin: 4px 0 6px;
  padding-left: 18px;
}

.rqx-tl-bubble li {
  margin-bottom: 3px;
}

.rqx-tl-bubble code {
  background: #F1F5F9;
  color: #1E3A8A;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 13.5px;
}

/* Link đính kèm dưới câu trả lời */
.rqx-tl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rqx-tl-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rqx-tl-link:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
}

/* Hàng chấm 👍 👎 dưới mỗi câu trả lời */
.rqx-tl-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding-left: 2px;
  flex-wrap: wrap;
}

.rqx-tl-rate-label {
  font-size: 12.5px;
  color: #64748B;
}

.rqx-tl-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.rqx-tl-rate-btn:hover {
  border-color: #94A3B8;
  background: #F1F5F9;
}

.rqx-tl-rate-btn.is-good {
  background: #ECFDF5;
  border-color: #1056B9;
  color: #062B5F;
  font-weight: 700;
}

.rqx-tl-rate-btn.is-bad {
  background: #F2F7FE;
  border-color: #448BEF;
  color: #1B4F99;
  font-weight: 700;
}

/* Câu hỏi gợi ý */
.rqx-tl-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.rqx-tl-sug-title {
  width: 100%;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 2px;
}

.rqx-tl-sug-btn {
  text-align: left;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B1B3F;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rqx-tl-sug-btn:hover {
  border-color: #2D5BD7;
  background: #EFF6FF;
  color: #1E3A8A;
}

/* Thanh phụ chân khung: Gặp anh Hạnh (dòng cảnh báo AI chỉ để ở đầu khung) */
.rqx-tl-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: #EFF6FF;
  border-top: 1px solid #BFDBFE;
  font-size: 12.5px;
  color: #1E40AF;
  flex-shrink: 0;
}

.rqx-tl-subbar-note {
  font-weight: 600;
  color: #1E3A8A;
}

.rqx-tl-hanh-link,
.rqx-tl-handoff-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: #1E3A8A !important;
  text-decoration: none !important;
  background: #DBEAFE;
  border: 1px solid #3B82F6;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.rqx-tl-hanh-link:hover,
.rqx-tl-handoff-link:hover {
  background: #BFDBFE;
}

/* Ô nhập câu hỏi */
.rqx-tl-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.rqx-tl-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  font-family: inherit;
  font-size: 14.5px;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
}

.rqx-tl-input:focus {
  border-color: #2D5BD7;
  background: #FFFFFF;
}

.rqx-tl-send {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0B1B3F, #1E3A8A);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.rqx-tl-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hiệu ứng đang trả lời */
.rqx-tl-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.rqx-tl-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  animation: rqxTlDot 1.2s infinite;
}

.rqx-tl-typing i:nth-child(2) { animation-delay: 0.2s; }
.rqx-tl-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes rqxTlDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Đáp ứng màn hình nhỏ & khổ 390px: nút gọn góc phải, không che nút khác */
@media (max-width: 640px) {
  :root {
    --tl-fab-bottom: 12px;
    --tl-fab-right: 12px;
  }

  body:has(.submitbar),
  body:has(.score) {
    --tl-fab-bottom: 76px;
  }

  body:has(.rqx-rm-card:not(.hide)) {
    --tl-fab-bottom: 230px;
  }

  .rqx-tl-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .rqx-tl-fab-text {
    display: none;
  }

  .rqx-tl-fab-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .rqx-tl-panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    padding: 0;
    height: min(742px, calc(100vh - 20px));
    height: min(742px, calc(100dvh - 20px));
    border-radius: 18px;
  }
}

/* ==========================================================================
   NÚT MỞ A MAO (28/10/2026, anh Hạnh): to hơn, xanh mint nổi bật, hình cô gái A Mao thay robot
   ========================================================================== */
.rqx-tl-fab {
  height: 64px;
  gap: 10px;
  padding: 0 20px 0 7px;
  border: 3px solid #FFFFFF;
  background: linear-gradient(135deg, #2EE6A8 0%, #1056B9 55%, #054196 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(59, 139, 247, 0.45), 0 0 0 0 rgba(46, 230, 168, 0.55);
  animation: rqxTlFabPulse 2.6s ease-out infinite;
}
.rqx-tl-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(59, 139, 247, 0.55);
  animation: none;
}
.rqx-tl-fab-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: #E8FFF6;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(4, 120, 87, 0.35);
  overflow: visible;
}
.rqx-tl-fab-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.rqx-tl-fab-online {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22C55E;
  border: 2.5px solid #FFFFFF;
}
.rqx-tl-fab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(4, 120, 87, 0.35);
}
.rqx-tl-fab-text b {
  font-size: 18px;
  font-weight: 800;
}
.rqx-tl-fab-text small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}
@keyframes rqxTlFabPulse {
  0% { box-shadow: 0 12px 28px rgba(59, 139, 247, 0.45), 0 0 0 0 rgba(46, 230, 168, 0.55); }
  70% { box-shadow: 0 12px 28px rgba(59, 139, 247, 0.45), 0 0 0 16px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 12px 28px rgba(59, 139, 247, 0.45), 0 0 0 0 rgba(46, 230, 168, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .rqx-tl-fab { animation: none; }
}
.rqx-tl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E8FFF6;
  padding: 0;
  overflow: hidden;
  border: 2px solid #2EE6A8;
}
.rqx-tl-avatar svg { width: 100%; height: 100%; display: block; }
.rqx-tl-restore {
  width: 40px;
  height: 46px;
  border-color: #FFFFFF;
  background: linear-gradient(135deg, #2EE6A8 0%, #1056B9 100%);
  opacity: 0.85;
}
.rqx-tl-restore svg { width: 30px; height: 30px; border-radius: 50%; display: block; }

@media (max-width: 640px) {
  .rqx-tl-fab {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
  }
  .rqx-tl-fab-text { display: none; }
  .rqx-tl-fab-icon {
    width: 54px;
    height: 54px;
  }
}

/* ==========================================================================
   02/11/2026: Nút A Mao gọn gàng, lịch sự, bỏ bong bóng che nội dung & bỏ hiệu ứng nhảy rối mắt
   ========================================================================== */
.rqx-tl-fab {
  height: 48px;
  gap: 8px;
  padding: 0 15px 0 6px;
  border: 1px solid #A7F3D0;
  background: #0957C3;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  animation: none !important;
}
.rqx-tl-fab:hover {
  animation: none !important;
  transform: translateY(-1px);
  background: #11315E;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
.rqx-tl-fabwrap.is-dragging .rqx-tl-fab { animation: none; }
.rqx-tl-fab-icon { width: 36px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: none; }
.rqx-tl-fab-icon svg { animation: none !important; }
.rqx-tl-fab-online { width: 10px; height: 10px; border: 2px solid #FFFFFF; animation: none !important; }
.rqx-tl-fab-text b { font-size: 15px; letter-spacing: 0; color: #FFFFFF; text-shadow: none; }
.rqx-tl-fab-text small { font-size: 12.5px; font-weight: 500; color: #DBEAFE; opacity: 0.95; text-shadow: none; }
.rqx-tl-fabwrap::before,
.rqx-tl-fabwrap::after { display: none !important; }

@media (max-width: 640px) {
  .rqx-tl-fab { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
  .rqx-tl-fab-icon { width: 38px; height: 38px; }
}
/* 03/11/2026: nút thu nhỏ trên thanh đầu */
.rqx-tl-min { font-size: 20px; font-weight: 800; }
.rqx-tl-panel.is-mini { height: auto !important; }
.rqx-tl-panel.is-mini .rqx-tl-body,
.rqx-tl-panel.is-mini .rqx-tl-foot { display: none; }
.rqx-tl-panel.is-mini .rqx-tl-head { cursor: pointer; }
@media (max-width: 640px) {
  .rqx-tl-panel.is-mini { top: auto !important; bottom: 8px; }
}


/* 04/11/2026: nền trong mờ, vẫn nhìn được chữ phía sau, khỏi che nội dung trang */
.rqx-tl-panel { background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: blur(3px) saturate(1.1); backdrop-filter: blur(3px) saturate(1.1); border-color: rgba(148, 163, 184, 0.7); }
.rqx-tl-head { background: rgba(11, 27, 63, 0.82); }
.rqx-tl-body, .rqx-tl-form, .rqx-tl-foot { background: transparent; }
.rqx-tl-subbar { background: rgba(239, 246, 255, 0.6); }
.rqx-tl-msg.is-bot .rqx-tl-bubble { background: rgba(255, 255, 255, 0.86); }
.rqx-tl-sug-btn { background: rgba(255, 255, 255, 0.8); }
.rqx-tl-input { background: rgba(255, 255, 255, 0.85); }
.rqx-tl-fab { background: rgba(15, 118, 110, 0.8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rqx-tl-fab:hover { background: rgba(17, 94, 89, 0.9); }

/* 04/11/2026 (anh Hạnh): nút A Mao thu thành nút tròn chỉ còn ảnh A Mao + chấm online, rê chuột mới hiện chữ, khỏi che chữ trang */
.rqx-tl-fab { width: 52px; height: 52px; padding: 0; gap: 0; justify-content: center; border-radius: 999px; overflow: hidden; white-space: nowrap; }
.rqx-tl-fab-icon { width: 42px; height: 42px; flex: 0 0 auto; }
.rqx-tl-fab-text { display: none; }
@media (hover: hover) and (min-width: 641px) {
  .rqx-tl-fab:hover, .rqx-tl-fab:focus-visible { width: auto; padding: 0 14px 0 5px; gap: 8px; }
  .rqx-tl-fab:hover .rqx-tl-fab-text, .rqx-tl-fab:focus-visible .rqx-tl-fab-text { display: flex; }
  .rqx-tl-fab-text small { display: none; }
}

/* 04/11/2026 (chiều): khôi phục nhãn tên thường trực, VI "Hỏi A Mao", ZH "咨询阿毛". Nút gọn: ảnh + tên, bỏ dòng phụ */
.rqx-tl-fab { width: auto; height: 48px; padding: 0 14px 0 5px; gap: 8px; }
.rqx-tl-fab-icon { width: 38px; height: 38px; }
.rqx-tl-fab-text { display: flex; flex-direction: column; line-height: 1.1; }
.rqx-tl-fab-text small { display: none; }
@media (max-width: 640px) {
  .rqx-tl-fab { width: auto; height: 44px; padding: 0 12px 0 4px; gap: 6px; border-radius: 999px; }
  .rqx-tl-fab-icon { width: 34px; height: 34px; }
  .rqx-tl-fab-text b { font-size: 13.5px; }
}

/* ===== 04/11/2026: RÀ SOÁT MÀU - mỗi trang tối đa 3 màu (trắng/xám, xanh dương #0B6CF3, đỏ nhấn) =====
   Nút và khung Trợ lý giải đáp chuyển từ xanh lá/ngọc sang xanh dương chủ đạo. */
html body .rqx-tl-fab { background: linear-gradient(135deg, #0565EE 0%, #2B82FB 100%) !important; border-color: #FFFFFF !important; box-shadow: 0 10px 24px rgba(11, 108, 243, .35) !important; animation: none !important; }
html body .rqx-tl-fab:hover { background: linear-gradient(135deg, #0450C2 0%, #0B6CF3 100%) !important; }
html body .rqx-tl-fab-text small { color: #E7F0FE !important; }
html body .rqx-tl-fab-icon, html body .rqx-tl-avatar { background: #E7F0FE !important; border-color: #FFFFFF !important; }
html body .rqx-tl-avatar { border-color: #9CC4FD !important; }
html body .rqx-tl-fab-online, html body .rqx-tl-dot { background: #2B82FB !important; box-shadow: 0 0 0 3px rgba(43, 130, 251, .25) !important; }
html body .rqx-tl-fab-online { box-shadow: none !important; border-color: #FFFFFF !important; }
html body .rqx-tl-restore { background: linear-gradient(135deg, #0565EE 0%, #2B82FB 100%) !important; }
html body .rqx-tl-rate-btn.is-good { background: #E7F0FE !important; border-color: #0B6CF3 !important; color: #0450C2 !important; }
