@font-face {
  font-family: "Roboto";
  src: url('../fonts/Roboto-Regular.ttf');
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.check.checking {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 12px;
}

h1 {
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 16px;
  font-size: 15px;
  display: flex;
  gap: 16px;
  font-size: 15px;
  line-height: 2.2;
}

.tabs a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
}

.tabs a.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 10px;
  padding-right: 10px;
}

.question {
  display: flex;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
  cursor: pointer;
  animation: questionFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vote {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.Fvl {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Fvl .num {
  font-weight: 600;
}

.question .contentHCD {
  margin-left: 15px;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.question-list .question .contentHCD {
  position: relative;
}

.question>.vote span {
  display: block;
  font-weight: bold;
  margin-top: 4px;
  font-size: 16px;
}

.question .likeImg img {
  max-height: 150px;
  max-width: 150px;
  margin-right: 10px;
}

.question .likeImg .vote {
  margin-top: 5px;
}

.question .likeImg .vote span {
  font-weight: bold;
  margin-top: 4px;
}

.tabHot .question:hover {
  background: #f6f9fb;
}

.content h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
}

.tag {
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.tag.orange {
  background: #ffedd5;
  color: #c2410c;
}

.tag.yellow {
  background: #fef9c3;
  color: #a16207;
}

.author .fa-user {
  margin-right: 5px;
}

.lvAcc {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 3px;
  font-size: 0;
  line-height: 0;
}

.lvAcc::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #1a8cd8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.FPost .ant .lvAcc,
.question-Popup .ant .lvAcc {
  margin-left: -7px;
  transform: translateY(1px);
}

.meta .lvAcc {
  margin-left: -5px;
  transform: translateY(-4px);
}

.FPost .ant .UrlSharePost,
.question-Popup .ant [data-timeago],
.question-Popup .ant .UrlSharePost {
  margin-left: -5px;
}

.meta .time {
  margin-left: -4px;
}

.back-arrow {
  display: inline-block;
  font-size: 18px;
  color: #444;
  text-decoration: none;
  margin-bottom: 10px;
}

.question-card {
  max-height: calc(100vh - 160px);
  overflow-x: hidden;
  width: 100%;
  padding: 10px 25px;
  margin: auto;
}

.question-header {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.question-header .post-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-actions .tn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-actions .tn .num {
  line-height: 1;
}

.question-header i.met1,
.question-header .timpost.met1 {
  color: rgb(29, 191, 212);
}

.question-header .timpost.met1 svg path {
  fill: rgb(29, 191, 212);
}

.question-header i.met0,
.question-header .timpost.met0 {
  color: #b5b0ad;
}

.question-header .timpost.met0 svg path {
  fill: #b5b0ad;
}

.question-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 8px;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.question-description {
  font-size: 15px;
  margin-bottom: 15px;
}

.report-button {
  background: #f97316;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.answers {
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.answers h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.answer {
  display: flex;
  gap: 10px;
  position: relative;
  margin-bottom: 12px;
}

.answerreply {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.answer-content {
  flex: 1;
}

.answer-text {
  margin-bottom: 6px;
}

.answer-footer {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmt-time-link {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  margin-left: 5px;
  white-space: nowrap;
  position: relative;
  top: 1px;
}

.cmt-time-link:hover {
  text-decoration: underline;
  color: #666;
}

.btnreplyM,
.btntranslateM {
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btnreplyM:hover,
.btntranslateM:hover {
  color: #428bca;
  text-decoration: underline;
}

.btntranslateM {
  font-weight: 600;
  color: #667eea;
}

.btntranslateM:hover {
  color: #5a67d8;
}

.fam {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.answer-footer i {
  color: #666;
}

.nameacc {
  font-weight: bold;
}

.replyitem {
  margin-top: -5px;
}

.timpost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease;
}

.timpost:hover {
  transform: scale(1.15);
  color: rgb(29, 191, 212) !important;
}

.timpost:hover svg path {
  fill: rgb(29, 191, 212);
}

.timpost:active {
  transform: scale(0.9);
}

.comment-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #f0f2f5;
  border-radius: 16px;
  padding: 10px 12px;
  width: 100%;
}

.comment-box .reply-container .imgr,
.messageItemM .bubbleContent .imgr {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.input-text {
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 14px;
  line-height: 18px;
  color: #333;
  width: 100%;
  overflow-y: hidden;
}

.commentBoxViewPost .input-text {
  max-height: 60vh;
  overflow: auto;
}

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icons-box {
  display: flex;
  gap: 3px;
}

.icons-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.icons-box img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.icons-box img:hover {
  opacity: 1;
}

.btncamera {
  width: 25px;
}

.send-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.question .meta .pt8 {
  padding-top: 8px;
}

.privewtxt {
  margin-top: 10px;
}

.question-Popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  animation: qpOverlayIn 0.3s ease forwards;
}

@keyframes qpOverlayIn {
  from {
    background: transparent;
    backdrop-filter: blur(0px);
  }

  to {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
  }
}

.question-Popup .FPost {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 70px);
}

.question-Body {
  position: relative;
  background: white;
  width: max-content;
  margin: 30px auto;
  border-radius: 16px;
  min-width: 400px;
  max-width: 720px;
  animation: qpCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes qpCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-button {
  width: 40px;
  height: 40px;
  background-color: #f7f7f7;
  /* màu nền xám nhạt */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  position: absolute;
  right: 15px;
  top: 5px;
  z-index: 999;
  transition: background-color 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}

.close-button:hover {
  background-color: #ede9fe;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.18);
}

.close-button:active {
  transform: rotate(90deg) scale(0.95);
  background-color: #ddd6fe;
  transition-duration: 0.1s;
}

.close-button span {
  font-size: 20px;
  /*color: #1c1e21;*/
  color: #969697;
  font-weight: bold;
  line-height: 1;
  transition: color 0.25s ease;
}

.close-button:hover span {
  color: #667eea;
}

/* ─── Lang Switcher in Popup ─── */
.lang-switcher.lang-switcher-popup {
  position: absolute !important;
  right: 65px;
  top: 10px;
  z-index: 999;
}

.lang-switcher-popup .lang-dropdown {
  right: 0;
  z-index: 10000;
}

.question-Popup .marginT {
  height: 12px;
}

.scroll-container {
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  /* Giữ chỗ cho scrollbar */
}

/* Thiết kế scrollbar mặc định (ẩn nhưng vẫn chiếm chỗ) */
.scroll-container::-webkit-scrollbar {
  width: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: transparent;
  /* ẩn nhưng vẫn chiếm chỗ */
  border-radius: 3px;
}

/* Khi hover thì hiện thanh cuộn bằng cách đổi màu */
.scroll-container:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  /* hiện thanh cuộn */
}

/* Firefox */
.scroll-container {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.scroll-container:hover {
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}


.scrollmessage {
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  /* Giữ chỗ cho scrollbar */
}

/* Thiết kế scrollbar mặc định (ẩn nhưng vẫn chiếm chỗ) */
.scrollmessage::-webkit-scrollbar {
  width: 6px;
}

.scrollmessage::-webkit-scrollbar-thumb {
  background-color: transparent;
  /* ẩn nhưng vẫn chiếm chỗ */
  border-radius: 3px;
}

/* Khi hover thì hiện thanh cuộn bằng cách đổi màu */
.scrollmessage:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  /* hiện thanh cuộn */
}

/* Firefox */
.scrollmessage {
  scrollbar-width: thin;
  /*scrollbar-color: transparent transparent;*/
}

.scrollmessage:hover {
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}


.xphk {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
}


.question-message {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  align-items: flex-start;
  margin-bottom: 8px;

  display: flex;
  flex-direction: column;
  min-height: 310px;
  max-height: calc(100vh - 120px);
}

.question-message .input-text {
  max-height: 50vh;
  overflow: auto;
}

.chat-container {
  margin-left: 12px;
  font-size: 13.4px;
  overflow: auto;
  height: calc(100vh - 300px);
  padding-top: 12px;
  padding-bottom: 20px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chat-message img.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

.message-content {
  border-radius: 12px;
  padding: 6px 10px;
  width: 100%;
  position: relative;
}

.user-name {
  font-weight: bold;
  margin-bottom: 4px;
  cursor: pointer;
}

.bubble {
  background: #f0f2f5;
  max-width: calc(100% - 85px);
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 9px;
  line-height: 1.4;
  word-wrap: break-word;
  float: left;
}

.tabHot .time {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.question-message .time {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  display: none;
}

.date-separator {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  padding: 0 10px;
  user-select: none;
}

.date-separator::before,
.date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d4d4d4;
}

.date-separator span {
  padding: 4px 14px;
  font-size: 12px;
  color: #65676b;
  font-weight: 500;
  white-space: nowrap;
  background: #f0f2f5;
  border-radius: 12px;
}

.reaction {
  margin-top: 8px;
  font-size: 13px;
  color: #d00;
}

.question-message .comment-box {
  max-width: 100%;
}

/* Home Chat (tabDiscuss) — Trạng thái tạm tắt gửi tin nhắn mới */
.home-chat-disabled-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px 4px 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  box-sizing: border-box;
}

.home-chat-disabled-notice .hcdn-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.home-chat-disabled-notice .hcdn-text {
  flex: 1;
  min-width: 0;
}

.tabDiscuss .commentBoxM.chat-send-disabled {
  user-select: none;
}

.tabDiscuss .commentBoxM.chat-send-disabled .avatar,
.tabDiscuss .commentBoxM.chat-send-disabled .commentBox-avatar-fallback {
  opacity: 0.65;
}

.tabDiscuss .commentBoxM.chat-send-disabled .input-area {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  opacity: 0.78;
  cursor: not-allowed;
}

.tabDiscuss .commentBoxM.chat-send-disabled .input-text {
  color: #64748b !important;
  cursor: not-allowed !important;
  user-select: none;
}

.tabDiscuss .commentBoxM.chat-send-disabled .input-text:empty::before {
  color: #64748b !important;
  font-style: italic;
}

.tabDiscuss .commentBoxM.chat-send-disabled #emojiBtn,
.tabDiscuss .commentBoxM.chat-send-disabled .btncamera,
.tabDiscuss .commentBoxM.chat-send-disabled .send-btn {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(100%);
  pointer-events: auto;
}

.tabDiscuss .commentBoxM.chat-send-disabled #emojiBtn:hover,
.tabDiscuss .commentBoxM.chat-send-disabled .btncamera:hover,
.tabDiscuss .commentBoxM.chat-send-disabled .send-btn:hover {
  background: transparent !important;
  transform: none !important;
}

.tabDiscuss .commentBoxM.chat-send-disabled .send-btn.active svg {
  fill: #999 !important;
}

.bubble .reaction {
  position: absolute;
  right: 0;
  margin-right: 20px;
}

.bubble .reaction1 {
  background: #f0f2f5;
  padding: 3px 8px;
  border-radius: 12px;
}

.action-icons {
  display: flex;
  gap: 3px;
  margin-top: -7px;
  width: max-content;
  margin-left: 8px;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f2f5;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #606770;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background-color: #d8dce0;
}

.action-btn.replybtn {
  transform: rotateX(180deg) rotateY(180deg);
}

.replybtn .rp {
  margin-top: 8px;
}

.messageItem {
  display: flex;
}

.messageItem:hover {}

.bubbleContent {
  position: relative;
  min-width: 62px;
}

.comment-wrapper {
  margin: 10px 0;
  cursor: pointer;
}

.username {
  font-weight: bold;
  margin-bottom: 4px;
}

.quoted-comment {
  background-color: #ffffff;
  padding: 8px 12px;
  border-left: 4px solid #1877f2;
  /* xanh Facebook */
  border-radius: 8px;
  margin-bottom: 6px;
}

.quoted-username {
  font-weight: bold;
  margin-bottom: 2px;
}

.quoted-text {
  color: #050505;
}

.messageItem a {
  color: #1877f2;
  text-decoration: none;
  font-weight: 500;
}

.reaction .reaction2 {
  font-size: 18px;
  color: #b0b3b8;
  position: absolute;
  cursor: pointer;
  margin-left: 6px;
  transform: translateY(-1px);
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.reaction2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E") center/contain no-repeat;
  vertical-align: middle;
}

.reaction2:hover {
  transform: translateY(-1px) scale(1.3);
  color: #e74c5e;
}

.reaction2:hover::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.reaction2:active {
  transform: translateY(-1px) scale(0.9);
}

.reaction2.met1 {
  color: #e74c5e;
  transform: translateY(-5px);
}

.reaction2.met1::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.reaction1::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #e74c5e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  vertical-align: middle;
}

.reaction-menu .icontim::before {
  content: "\2764\FE0F";
  /* ❤️ */
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.reaction-menu .icontim.met0::before {
  filter: grayscale(0.15) opacity(0.88);
}

.reaction-menu .icontim.met1::before {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(231, 76, 94, 0.35));
}

.reaction-menu .action-btn.timbtn.met1 {
  background-color: #fff0f3;
}

.messageItem {
  position: relative;
}

.bubble {
  position: relative;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.messageItemM.menu-open .bubble {
  background: #e8f0fe;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.22);
}

.bubbleContent {
  padding: 8px;
  -webkit-touch-callout: none;
  user-select: text;
}

@keyframes reactionPillPop {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px)) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes reactionDropdownIn {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reaction-menu {
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: var(--rx-offset, 0px);
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
  z-index: 1002;
  width: max-content;
  min-width: unset;
  animation: reactionPillPop 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

.reaction-menu .cg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reaction-menu .action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: transparent;
  color: #334155;
  font-size: 15px;
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.reaction-menu .action-btn:hover,
.reaction-menu .action-btn:active {
  background-color: #f1f5f9;
  transform: scale(1.08);
}

.reaction-menu .action-btn.replybtn {
  transform: rotateX(180deg) rotateY(180deg);
}

.reaction-menu .action-btn.replybtn:hover,
.reaction-menu .action-btn.replybtn:active {
  transform: rotateX(180deg) rotateY(180deg) scale(1.08);
}

.reaction-menu .action-btn.select {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reaction-menu .action-btn.select .menu {
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: -6px;
  display: inline-block;
}

.reaction-menu button {
  background: none;
  border: none;
  font-size: 18px;
  margin: 0 5px;
}

.messageItemM .shmenuai0 {
  display: none;
}

.messageItemM .reaction2 {
  display: none;
}

.messageItemM:hover .action-icons {
  display: flex;
}

.messageItemM:hover .reaction2 {
  display: unset;
}

.activeHide {
  display: none;
}

.activeAtop {
  margin-top: -70px;
}

.activeColor {
  background: #f0f2f5;
}

.question-message .time.showblock {
  display: block;
  padding-left: 49px;
  margin-bottom: 10px;
}

.messageItemM .reaction2.timshow {
  display: unset;
}

.timN0 {
  display: none;
}

.chat-message .avatar-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.chat-message .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-message .avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.avatar .avatar-fallback,
.sav .avatar-fallback,
.avatarS .avatar-fallback,
.avatarS .avatarNt {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-Popup .ant {
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-Popup .ant .nameA {
  font-weight: bold;
}

.question-Popup .sav {
  width: 32px;
  height: 32px;
}

.reply-container {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 10px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #007bff;
  padding-left: 10px;
  margin-bottom: 8px;
}

.reply-info {
  display: flex;
  align-items: center;
}

.reply-icon {
  font-size: 20px;
  margin-right: 6px;
  color: #007bff;
}

.reply-text span {
  font-size: 13px;
  color: #666;
}

.reply-close {
  cursor: pointer;
  color: #888;
  font-size: 18px;
  padding: 2px 8px;
}

.reply-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 10px;
}

.reply-input input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.mention {
  color: #007bff;
  font-weight: bold;
}

.reply-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.replyNone {
  display: none;
}

.comment-box .input-text:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
  display: block;
}

.comment-box .input-text strong {
  color: #007bff;
}

.input-text .link-highlight {
  color: #1a73e8;
  text-decoration: underline;
  cursor: text;
}

.reply-close:hover {
  color: #202020;
}

.reply-container .reply-text img {
  max-width: 80px;
  max-height: 50px;
}

.reply-container .reply-text .smart-image-gallery {
  height: auto !important;
  max-height: 60px;
  grid-template-rows: none !important;
  margin-top: 4px;
  gap: 3px;
  background: transparent;
}

.reply-container .reply-text .smart-image-gallery .gallery-item {
  height: 50px;
  width: auto;
}

.reply-container .reply-text .smart-image-gallery img {
  max-width: 80px;
  max-height: 50px;
  width: auto;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.replyimageNone {
  display: none;
}

.messageItemM .bubbleContent strong {
  color: #1877f2;
  font-weight: 500;
  cursor: pointer;
}

.replySimage img {
  max-width: 150px;
  max-height: 80px;
}

.highlight {
  background: #cfedff;
  animation: highlightAnimation 3s ease forwards;
}



.send-btn {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.send-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.send-btn.active svg {
  fill: #0db6f7;
}



/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999991;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}







/* Avatar style */
/* ============================================================
   ACCOUNT POPUP — MODERN REDESIGN
   ============================================================ */
#accountPopup {
  display: flex;
  display: none;
  position: fixed;
  z-index: 9999992;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  animation: qpOverlayIn 0.3s ease forwards;
}

#accountPopup .avatar,
.avatarS .avatar-fallback,
.avatarS .avatarNt {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
}

.avatarS .avatar-fallback {
  margin: 0px auto;
  font-size: 28px;
  padding-top: 5px;
}

.avatarS .avatarNt {
  margin: 0px auto;
  font-size: 28px;
}

/* Overlay covers entire screen */
#accountPopup .popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ── Popup card ── */
#accountPopup .popup-content {
  background: #fff;
  border-radius: 20px;
  min-width: 400px;
  max-width: 420px;
  position: relative;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13.5px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: acpCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes acpCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Cover photo ── */
#accountPopup .cover-photo {
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ── Avatar & name ── */
#accountPopup .avatar-info {
  text-align: center;
  margin-top: -36px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

#accountPopup .popup-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

#accountPopup .popup-name {
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  margin-top: 8px;
}

#accountPopup .popup-name.sttacc {
  font-weight: 500;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* ── Buttons ── */
#accountPopup .popup-buttons {
  margin: 12px 0 10px;
}

#accountPopup .btn {
  padding: 8px 20px;
  margin: 0 4px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  transition: all 0.2s ease;
}

#accountPopup .btn.gray {
  background: #f1f5f9;
  color: #334155;
}

#accountPopup .btn.gray:hover {
  background: #e2e8f0;
}

#accountPopup .btn.blue {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#accountPopup .btn.blue:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

/* ── Reputation Badge ── */
#accountPopup .reputation-badge-wrapper {
  text-align: center;
  margin: 16px 24px 0;
}

#accountPopup .reputation-badge {
  display: inline-block;
  background-color: #f1f5f9;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#accountPopup .reputation-badge .ReputationScore {
  color: #059669;
  /* Green color for good reputation */
  font-weight: 700;
}

/* ── Stats ── */
#accountPopup .stat-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 24px 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 0;
}

#accountPopup .stat-item {
  flex: 1;
  text-align: center;
  position: relative;
}

#accountPopup .stat-item:not(:last-child)::after {
  display: none;
}

#accountPopup .stat-number {
  font-weight: 700;
  font-size: 17px;
  color: #1e293b;
}

#accountPopup .stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

#accountPopup .sttacc {
  font-weight: 500;
}

/* ── Info & Actions ── */
#accountPopup .info-section,
#accountPopup .actions {
  padding: 12px 24px;
  font-size: 13px;
  line-height: 1.8;
  color: #334155;
  border-top: 1px solid #f1f5f9;
  margin-top: 0;
}

#accountPopup .info-section h4 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#accountPopup .info-section p,
#accountPopup .actions p {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
}

#accountPopup .actions p {
  margin: 2px 0;
  color: #475569;
  transition: color 0.15s ease;
}

#accountPopup .actions p:hover {
  color: #667eea;
}

/* ── Close button ── */
#accountPopup .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  z-index: 11;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#accountPopup .close-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  transform: rotate(90deg) scale(1.1);
}

#accountPopup .close-btn:active {
  transform: rotate(90deg) scale(0.95);
  transition-duration: 0.1s;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.attached-image .image-wrapper img {
  border-radius: 8px;
  max-height: 50px;
  max-width: 80px;
}

.attached-image {
  max-width: 100%;
}

.attached-image img.comment-image {
  max-width: 100%;
  border-radius: 8px;
  max-height: 200px;
  display: block;
}

.attached-image .image-wrapper {
  position: relative;
}

.attached-image .remove-image {
  position: absolute;
  right: 2px;
  top: 1px;
  background: #d9d9d9;
  padding: 2px 5px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 8px;
  color: #383232;
}

.attached-image .remove-image:hover {
  background: #c9c9c9;
}



#emojiPicker {
  width: 248px;
  max-width: calc(100vw - 16px);
  overflow-wrap: break-word;
  white-space: normal;
  transform: none;
}

#emojiPicker span {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  font-size: 20px;
  display: inline-block;
}

/* ẩn mặc định */
.emoji-picker {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  z-index: 9999;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  white-space: normal;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.emoji-picker::-webkit-scrollbar {
  width: 6px;
}

.emoji-picker::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.emoji-picker span {
  padding: 4px;
}

.emoji-picker span:hover {
  background: #f0f0f0;
  border-radius: 4px;
}

.comment-box .input-text img {
  margin-left: 2px;
  width: 20px;
  vertical-align: middle;
}

.answers .imgEmojiCty,
.contentP .imgEmojiCty,
.question .imgEmojiCty,
.bubbleContent .imgEmojiCty,
.reply-container .reply-text .imgEmojiCty {
  width: 27px;
  height: 17px;
}

.answers .emoji-big,
.contentP .emoji-big,
.question .emoji-big,
.bubbleContent .emoji-big,
.reply-container .reply-text .emoji-big {
  font-size: 22px;
  vertical-align: middle;
}

.bubbleContent .imgEmojiCty,
.reply-container .reply-text .imgEmojiCty {
  margin-left: 3px;
}

.comment-image.img1 {
  cursor: pointer;
  width: 100%;
}

.comment-image.img200 {
  cursor: pointer;
  width: 48%;
  flex: 1 1 48%;
  max-width: 100%;
  height: auto;
  max-height: 200px;
}

.margincontent {
  margin-bottom: 8px;
}

.comment-wrapper .comment-image {
  width: 50px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s;
}

.bubbleContent>.comment-image:hover {
  transform: scale(1.05);
}

.bubbleContent>div>.comment-image:hover {
  transform: scale(1.05);
}

.comment-wrapper .quoted-comment:hover {
  background-color: #fdfdfd;
  border-left: 4px solid #18c0f2;
}

.sort-dropdown {
  position: relative;
  display: inline-flex;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.sort-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  transition: background 0.2s ease,
    box-shadow 0.2s ease;
}

.sort-button:hover {
  background: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sort-button .label {
  color: #667eea;
}

.sort-button .arrow {
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.25s ease;
  display: inline-block;
}

.sort-dropdown.open .sort-button {
  background: #ede9fe;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}

.sort-dropdown.open .sort-button .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  display: none;
  z-index: 100;
  padding: 4px;
  opacity: 0;
  transform: translateY(-4px);
  animation: dropMenuIn 0.2s ease forwards;
}

.dropdown-menu[style*="block"] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dropMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu div {
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu div:hover {
  background: #f1f5f9;
  color: #667eea;
}

.dropdown-menu div.active {
  background: #ede9fe;
  color: #667eea;
  font-weight: 600;
}

/* ── Selectrp: reply count + sort bar ── */
.selectrp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.selectrp h3 {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selectrp h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}


.tabHot .filter-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  user-select: none;
}

.tabHot .dropdown-wrapper {
  position: relative;
  cursor: pointer;
  margin-top: -10px;
  margin-bottom: 10px;
  background: #f1f5f9;
  max-width: max-content;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tabHot .dropdown-wrapper:hover {
  background: #e2e8f0;
}

.tabHot .dropdown-wrapper .label {
  color: #667eea;
  font-weight: 600;
}

.tabHot .dropdown-wrapper .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.tabHot .dropdown-wrapper.open .arrow {
  transform: rotate(180deg);
}

/* Fixed horizontal tab bar — visible when dropdown scrolls past top */
.tab-fixed-bar {
  position: fixed;
  top: 68px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 12px 12px;
}

.tab-fixed-bar.visible {
  display: flex;
}

.tab-fixed-bar div[data-value] {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  color: #64748b;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.tab-fixed-bar div[data-value]:hover {
  background: #f1f5f9;
  color: #334155;
}

.tab-fixed-bar div[data-value].active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (min-width: 889px) {
  .tab-fixed-bar {
    top: 0;
  }
}

@media (max-width: 443px) {
  .tab-fixed-bar {
    gap: 20px;
    padding: 6px 8px;
  }

  .tab-fixed-bar div[data-value] {
    font-size: 0;
    padding: 8px;
  }

  .tab-fixed-bar div[data-value] svg {
    width: 16px;
    height: 16px;
    margin-right: 0 !important;
  }
}

.tabHot .dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 5;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 10;
  padding: 4px;
  min-width: max-content;
  animation: dropdownFadeIn 0.15s ease;
}

.tabHot .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 3px 0 0 0;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabHot .dropdown-menu div {
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.tabHot .dropdown-menu div:hover {
  background: #f1f5f9;
  color: #667eea;
}

.tabHot .dropdown-menu div.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}


.ask-question-btn {
  background-color: #2f6fed;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.ask-question-btn:hover {
  background-color: #1c56d0;
  /* Màu hover */
}

.tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
}

.modal-contentPost {
  background: white;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  height: max-content;
  margin: 50px auto;
}

.modal-contentPost h2 {
  margin-top: 0;
  font-size: 20px;
}

.modal-contentPost label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 500;
}

.modal-contentPost input {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background-color: #f0f2f5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-actions button[type="submit"] {
  background-color: #2f6fed;
  color: white;
}

.modal-actions button#closeModal {
  background-color: #e5e7eb;
}

.modal-contentPost .action-row {
  width: 100%;
}

.modal-contentPost .input-area {
  min-height: 62px;
}

.modal-contentPost .title {
  display: flex;
  justify-content: space-between;
}

.commentBoxPost {
  margin-top: 10px;
}

.commentBoxPost .input-text {
  min-height: 100px;
}




.post-options {
  position: relative;
  margin-left: auto;
}

.post-options .menu-button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #94a3b8;
  transition: background 0.2s, color 0.2s;
  margin: -7px -6px -6px 0;
}

.post-options .menu-button:hover {
  background: #e5eff9;
  color: #475569;
}

.post-options .menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: -8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  list-style: none;
  z-index: 10;
  overflow: hidden;
  padding: 4px;
  transform-origin: top right;
  min-width: 160px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.9) translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
}

.menu-dropdown li {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.menu-dropdown li svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s;
}

.menu-dropdown li:hover {
  background: #f1f5f9;
}

.menu-dropdown li:hover svg {
  color: #667eea;
}

.menu-dropdown li:active {
  background: #e2e8f0;
}

.menu-dropdown.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.tabHot .nameacc .lvAcc,
.user-name .lvAcc {
  margin-left: 2px;
}

.question-Popup .post-actions span .menu {
  padding: 5px;
  border-radius: 6px;
}

.question-Popup .post-actions span i {
  cursor: pointer;
  margin-top: 3px;
}

.question-Popup .post-actions span i.met0:hover {
  color: #585f69;
}

.question-Popup .post-actions span.hv {
  cursor: pointer;
}

.question-Popup .post-actions span .menu:hover {
  background: #e6e8e9;
}

.btnreplyM {
  cursor: pointer;
}

.commentBoxPadding {
  padding: 0px 10px;
}

.votecmt {
  cursor: pointer;
}

.votecmt svg:hover path {
  fill: #585f69;
}

.answer-footer .iconL {
  display: flex;
  align-items: center;
  gap: 5px;
}

.likeImg .vote {
  display: flex;
  align-items: center;
}

.likeImg .vote span {
  margin-left: 3px;
}

.imgVL {
  width: max-content;
  margin: 0px auto;
}

.answer-footer .iconL .met1 svg path {
  fill: rgb(29, 191, 212);
}








.comment-child {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.avatar-wrapper {
  width: 40px;
  position: relative;
}

.answerreply .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

/* Trục dọc từ avatar đi xuống */
.vertical-line {
  position: absolute;
  top: 36px;
  /* ngay dưới avatar */
  width: 2px;
  background-color: #e7e7e7;
  transform: translateX(15px);
}

/* Container chứa các comment con */
.comment-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 8px;
  padding-left: 16px;
  position: relative;
}

.comment-line {
  position: relative;
  padding-left: 20px;
}

/* Đường cong từ trục dọc rẽ sang comment */
.line-bent {
  position: absolute;
  top: 5px;
  left: -27;
  width: 27px;
  height: 16px;
  border-left: 2px solid #e7e7e7;
  border-bottom: 2px solid #e7e7e7;
  border-bottom-left-radius: 8px;
}

.answerreply .avatar-fallback {
  position: relative;
}

.answerreply .avatarxphk {
  display: block;
  margin: auto;
}

.answerreply .avatar-fallbackxphk {
  position: relative;
  top: -3px;
}

.avatar-fallbackxphk .line-bent {
  top: -8px;
}

.answerreply .answer-text strong {
  font-weight: bold;
  cursor: pointer;
}

.messageItemM .reaction .met1 {
  display: unset;
  margin-top: 5px;
}

.messageItemM .reaction .met1::before {
  content: "\2764\FE0F";
  /* ❤️ */
  font-size: 13px;
}

.margincontent .comment-image.img1 {
  max-width: none;
}

.answer-content .fam {
  display: flex;
  align-items: center;
}

.answer-content .fam .select {
  margin-left: auto;
  margin-right: 5px;
  margin-top: -5px;
  position: relative;
}

.answer-content .fam .select .menu {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  cursor: pointer;
  border-radius: 39%;
  display: none;
}

.answer-content .contentM:hover .select .menu {
  display: block;
  border-radius: 12px;
}

.answerreply:hover .select .menu {
  display: block;
}

.answer-content .contentM {
  padding: 5px;
  border-radius: 12px;
  margin: -5px 0 0 -5px;
}

.answer-content .contentM:hover {
  background: #f3f7ff;
}

.answerreply {
  border-radius: 12px;
}

.answerreply:hover {
  background: #f3f7ff;
}

.answerreply.xphkn:hover {
  background: none;
}

.FPost .answers {
  overflow: hidden;
}

.dropdown-menucmt {
  position: absolute;
  width: max-content;
  right: -30px;
  margin-top: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  min-width: 150px;
  display: none;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  z-index: 10000;
  overflow: hidden;
  padding: 4px 0;
  animation: menuSlideIn 0.15s ease-out;
  transform-origin: top right;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dropdown-menucmt div {
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  white-space: nowrap;
}

.dropdown-menucmt div::before {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-menucmt div:hover {
  background: #f5f5fa;
}

.dropdown-menucmt div:active {
  background: #ebebf0;
}

.dropdown-menucmt .delete::before {
  content: "🗑️";
}

.dropdown-menucmt .delete:hover {
  background: #fff0f0;
  color: #e53935;
}

.dropdown-menucmt .report::before {
  content: "⚠️";
}

.dropdown-menucmt .report:hover {
  background: #fff8e1;
  color: #e65100;
}

.dropdown-menucmt .DelP::before {
  content: "✓";
}

.dropdown-menucmt .DelP:hover {
  background: #fff0f0;
  color: #e53935;
}

.dropdown-menucmt .ShareP::before {
  content: "🔗";
}

.dropdown-menucmt .ShareP:hover {
  background: #e8f5e9;
  color: #2e7d32;
}

.dropdown-menucmt .ReportP::before {
  content: "✓";
}

.dropdown-menucmt .ReportP:hover {
  background: #fff8e1;
  color: #e65100;
}

/* === Violation menu items === */
.dropdown-menucmt .vp-separator {
  height: 1px;
  background: #e8e8e8;
  margin: 4px 0;
  padding: 0 !important;
  cursor: default !important;
}

.dropdown-menucmt .vp-separator:hover {
  background: #e8e8e8 !important;
}

.dropdown-menucmt .delete-vp,
.dropdown-menucmt .del-post-vp {
  font-size: 12.5px;
}

.dropdown-menucmt .vp1::before {
  content: "🟡";
}

.dropdown-menucmt .vp1:hover {
  background: #fffde7;
  color: #f9a825;
}

.dropdown-menucmt .vp2::before {
  content: "🟠";
}

.dropdown-menucmt .vp2:hover {
  background: #fff3e0;
  color: #e65100;
}

.dropdown-menucmt .vp3::before {
  content: "🔴";
}

.dropdown-menucmt .vp3:hover {
  background: #ffebee;
  color: #b71c1c;
}

/* === Violation confirm popup === */
.vp-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease;
}

.vp-confirm-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 22px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: menuSlideIn 0.2s ease-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vp-confirm-box .vp-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.vp-confirm-box .vp-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.vp-confirm-box .vp-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.vp-confirm-box .vp-desc strong {
  color: #1a1a2e;
}

.vp-confirm-box .vp-level-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}

.vp-level-badge.lv1 {
  background: #fffde7;
  color: #f9a825;
  border: 1px solid #f9a825;
}

.vp-level-badge.lv2 {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #e65100;
}

.vp-level-badge.lv3 {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #b71c1c;
}

.vp-confirm-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.vp-confirm-btns .vp-btn {
  padding: 9px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}

.vp-confirm-btns .vp-btn:active {
  transform: translateY(0);
}

.vp-confirm-btns .vp-btn-cancel {
  background: none;
  border: 2px solid #e0e0e0;
  color: #666;
}

.vp-confirm-btns .vp-btn-cancel:hover {
  border-color: #ccc;
  background: #fafafa;
}

.vp-confirm-btns .vp-btn-confirm {
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.vp-confirm-btns .vp-btn-confirm:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Report Popup */
.report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease;
}

.report-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: menuSlideIn 0.2s ease-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.report-icon {
  font-size: 24px;
}

.report-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
}

.report-desc {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 16px;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: #333;
}

.report-reason:hover {
  background: #f5f5f5;
}

.report-reason input[type="radio"] {
  accent-color: #e53935;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.report-reason span {
  user-select: none;
}

.report-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.report-btn {
  padding: 9px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}

.report-btn:active {
  transform: translateY(0);
}

.report-btn-cancel {
  background: none;
  border: 2px solid #e0e0e0;
  color: #666;
}

.report-btn-cancel:hover {
  border-color: #ccc;
  background: #fafafa;
}

.report-btn-submit {
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.report-btn-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.report-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.report-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.messageItemM .dropdown-menucmt {
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  margin-top: 0;
  min-width: 168px;
  max-width: calc(100vw - 36px);
  border-radius: 12px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
  transform-origin: top left;
  animation: reactionDropdownIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.messageItemM .reaction-menu .dropdown-menucmt {
  left: 0;
  right: auto;
  top: calc(100% + 8px);
}

.messageItemM .dropdown-menucmt div {
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 500;
}

.menucmt.item .dropdown-menucmt {
  right: 0;
}

.contentM .dropdown-menucmt,
.replyitem .dropdown-menucmt {
  right: 0;
}

.action-icons .action-btn.select {
  position: relative;
  display: grid;
  place-items: center;
}

.smenuai {
  display: flex;
}

.action-icons .cg {
  display: grid;
  place-items: center;
}

.post-actions .btn-del .menu::before {
  color: red;
  margin-right: 5px;
}

.contentM .dropdown-menucmt,
.replyitem .dropdown-menucmt {
  margin-top: -3px;
}

.answer-content.answerM {
  position: relative;
  width: 90%;
}

.replyitem .answerreply .answer-content {
  width: 90%;
}

.removeingcmtM,
.removeingcmtItem,
.removeingPost {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: 999;
  display: none;
}

.removeingPost::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: delSpin 0.6s linear infinite;
}

.removeingMessageItem {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.del-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #d0d0d0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: delSpin 0.7s linear infinite;
}

@keyframes delSpin {
  to {
    transform: rotate(360deg);
  }
}

.question-Popup .post-actions .select {
  position: relative;
}

.question-Popup .comment-image {
  border-radius: 5px;
}

.select .fonts {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.messageItemM .reaction .tim0 {
  display: none;
}

.toping .user-name {
  display: none;
}

.messageItemM .avatarname {
  display: flex;
}

.messageItemM .messageItem {
  padding-left: 49px;
}

.messageItemM .avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.messageItemM .avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.avatarname .user-name {
  margin-top: 6px;
  margin-left: 12px;
}

.messageItemM img.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

.avatarnamehide {
  display: none;
}

.commentBoxViewRp {
  position: relative;
}

.delmess {
  color: #d5d5d5;
}

.Notification a {
  all: unset;
}

.question-message .fullmd {
  position: relative;
  overflow: hidden;
}

.double-arrow-down {
  position: absolute;
  bottom: 10;
  right: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.double-arrow-down::before,
.double-arrow-down::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #4b5c6b;
  border-bottom: 2px solid #4b5c6b;
  position: absolute;
  transform: rotate(45deg);
}

.double-arrow-down::before {
  margin-top: -6px;
}

.double-arrow-down::after {
  margin-top: 6px;
}

.double-arrow-down .numNewMess {
  transform: translateY(-11px);
  color: red;
  font-weight: bold;
}

.numNewMess[data-value="0"] {
  display: none;
}

.hidedad {
  display: none;
}

@keyframes pulse1 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.badge-new {
  animation: pulse1 0.5s;
}

@keyframes pulse2 {
  0% {
    transform: translateY(-11px) scale(1);
  }

  70% {
    transform: translateY(-11px) scale(1.15);
  }

  100% {
    transform: translateY(-11px) scale(1);
  }
}

.numNewMess:not([data-value="0"]) {
  animation: pulse2 1s infinite ease-in-out;
}


/*Tim bay trong tin nhắn*/
.heart {
  position: absolute;
  font-size: 20px;
  color: red;
  animation: flyUp 1s ease-out forwards;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

@keyframes flyUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(calc(var(--fly-height) * 0.5)) scale(1.4);
    opacity: 0.8;
  }

  100% {
    transform: translateY(var(--fly-height)) scale(0.7);
    opacity: 0;
  }
}

/*End Tim bay trong tin nhắn*/


/*Tim bay trong Khung chát*/
.floating-heart {
  position: absolute;
  font-size: 22px;
  color: red;
  opacity: 0.9;
  user-select: none;
  pointer-events: none;
}

@keyframes flyUpCustom {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }

  70% {
    transform: translateY(calc(var(--fly-height) * 0.7)) scale(1.3) rotate(calc(var(--rotate-deg) * 0.7));
    opacity: 1;
  }

  100% {
    transform: translateY(var(--fly-height)) scale(0.8) rotate(var(--rotate-deg));
    opacity: 0;
  }
}

/*End Tim bay trong Khung chát*/



.question-message .iconchatcx {
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
}

.question-message .iconchatcx .ntb {
  margin: 0px auto;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff00;
  height: 30px;
  transform: translateY(-30px);
  width: max-content;
}

.question-message .iconchatcx .ntb span {
  cursor: pointer;
  user-select: none;
  /* Chuẩn hiện đại */
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE/Edge cũ */
}

.question-message .iconchatcx .ntb span:hover {
  /*font-size: 26px;*/
}








.icon-emoji {
  /*font-size: 32px;*/
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease;
}

.icon-heart:hover {
  animation: heartPulse 0.6s infinite;
}

@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.icon-laugh:hover {
  animation: laughShake 0.5s ease infinite;
}

@keyframes laughShake {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0);
  }
}

.icon-wow:hover {
  animation: wowZoom 0.3s ease-in-out;
}

@keyframes wowZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.icon-fire:hover {
  animation: fireFlicker 1s infinite alternate;
}

@keyframes fireFlicker {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(0.95);
  }
}

.icon-dice:hover {
  animation: diceRoll 0.6s ease;
  transform-style: preserve-3d;
}

@keyframes diceRoll {
  0% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}













/* ============================================================
   LEADERBOARD — MODERN REDESIGN
   ============================================================ */
.leaderboard {
  max-width: 600px;
  margin: auto;
  color: #334155;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.leaderboard-tabs {
  display: flex;
  gap: 4px;
}

.leaderboard-tabs .tab {
  background: none;
  border: none;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  color: #64748b;
  position: relative;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.leaderboard-tabs .tab:hover {
  background: #f1f5f9;
  color: #334155;
}

.leaderboard-tabs .tab.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.leaderboard-tabs .tab.active::after {
  display: none;
}

.leaderboard-country {
  font-size: 12px;
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 8px;
  color: #64748b;
  font-weight: 500;
}

.leaderboard-table {
  display: flex;
  flex-direction: column;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
}

.leaderboard-row:hover:not(.header) {
  background: #f8fafc;
}

.leaderboard-row.header {
  font-weight: 600;
  background: #f8fafc;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 10px 16px;
}

.leaderboard-row>div {
  flex: 1;
  text-align: center;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.user-info img.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}

.user-info img.imgEmojiCty {
  width: 22px;
  border-radius: 4px;
}

.question-list.tabRank {
  padding-bottom: 30px;
}

.imgrank49,
.imgrank492 {
  position: relative;
  width: max-content;
  margin: 0px auto;
  flex-shrink: 0;
}

.imgrank49 img,
.imgrank492 img {
  display: block;
}

.imgrank49 span,
.imgrank492 span {
  position: absolute;
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  pointer-events: none;
}

.lbrow .leaderboard-row {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.lbrow .leaderboard-row.show {
  opacity: 1;
  transform: translateY(0);
}

.leaderboard-time {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.leaderboard-time .stime {
  width: max-content;
  margin: 0px auto;
  font-weight: 600;
  padding: 12px 16px;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}





.status-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.status-icon .tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: rgb(80 80 80 / 85%);
  color: #fff;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  /* Tooltip nằm trên icon */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
  font-size: 13px;
  white-space: nowrap;
}

.status-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  /* Mũi tên xuống */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(80 80 80 / 85%) transparent transparent transparent;
}

.status-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.question-message .fullmd {
  width: 100%;
}

.commentBox-avatar-fallback {
  width: 32px;
  height: 32px;
  background: #ccc;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-options-none {
  display: none;
}

.toast {
  position: fixed;
  right: 16px;
  top: 16px;
  min-width: 260px;
  max-width: 90vw;
  background: #222;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  padding: 12px 14px;
  display: none;
  /* ẩn mặc định */
  z-index: 99999;
  transition: opacity .15s ease, transform .15s ease;
}

.toast.error {
  background: #b00020;
}

/* màu đỏ cho lỗi */
.toast.success {
  background: #146c2e;
}

/* màu xanh cho ok */

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.historyRankp {
  display: flex;
  white-space: nowrap;
  align-items: center;
  position: relative;
}

.historyRank {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
  overflow: hidden;
}

.historyRank img {
  height: 30px;
  flex-shrink: 0;
}

.historyRankp .imgrank49 span {
  font-size: 12px;
}

/* ── "+N more" button ── */
.historyRank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0 8px;
  background: #f1f5f9;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #667eea;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.historyRank-more:hover {
  background: #ede9fe;
  color: #764ba2;
}

/* ── Expand popup ── */
.historyRank-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: qpOverlayIn 0.3s ease forwards;
}

.historyRank-popup-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: acpCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.historyRank-popup-card .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  line-height: 1;
}

.historyRank-popup-card .close-btn:hover {
  background: #ede9fe;
  color: #667eea;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.18);
}

.historyRank-popup-card .close-btn:active {
  transform: rotate(90deg) scale(0.95);
  background: #ddd6fe;
  transition-duration: 0.1s;
}

.historyRank-popup-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.historyRank-popup-card h4::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 2px;
}

.historyRank-popup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.historyRank-popup-list img {
  height: 36px;
}

.historyRank-popup-list .imgrank49 {
  display: inline-flex;
  margin: 0;
}

.historyRank-popup-list .imgrank49 span {
  font-size: 14px;
}

.actions .copydt {
  cursor: pointer;
}






/* css Message size phone */
@media (max-width: 888px) {
  .question-Body {
    margin-top: 85px;
    width: 90%;
  }
}

@media (max-width: 601px) {
  .tl {
    width: 100%;
  }

  .question-message {
    padding-left: 5px;
  }

  .messageItemM .messageItem {
    padding-left: 0px;
  }

  .messageItemM .messageItem .bubble {
    max-width: 100%;
  }

  .messageItemM .action-icons {
    display: none;
  }

  .messageItemM:hover .action-icons {
    display: none;
  }

  .question-message .comment-box {
    margin-left: 5px;
  }

  .double-arrow-down {
    right: 6px;
  }

  .question-message .time.showblock {
    padding-left: 0px;
  }

  .messageItemM .avatarname {
    margin-bottom: 5px;
  }
}

@media (max-width: 500px) {
  .question-Body {
    min-width: 30px;
    width: 90%;
  }

  #accountPopup .popup-content {
    min-width: 30px;
    width: 90%;
  }
}

@media (max-height: 615px) {
  #accountPopup {
    align-items: flex-start;
    padding: 8px 0;
  }

  #accountPopup .popup-content {
    max-height: 92dvh;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  #accountPopup .popup-content::-webkit-scrollbar {
    width: 4px;
  }

  #accountPopup .popup-content::-webkit-scrollbar-track {
    background: transparent;
  }

  #accountPopup .popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  #accountPopup .popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
  }

  #accountPopup .cover-photo {
    height: 50px;
  }

  #accountPopup .avatar-info {
    margin-top: -28px;
    padding: 0 16px;
  }

  #accountPopup .popup-avatar {
    width: 56px;
    height: 56px;
  }

  #accountPopup .stat-container {
    margin: 8px 16px 0;
    padding: 8px 0;
  }

  #accountPopup .info-section,
  #accountPopup .actions {
    padding: 8px 16px;
    line-height: 1.6;
  }

  #accountPopup .popup-buttons {
    margin: 8px 0 2px;
  }
}

.popupProfile {
  cursor: default;
}

.avatar .avatar-fallback,
.sav .avatar-fallback,
.user-info .avatar,
.user-info .avatar-fallback {
  cursor: default;
}

/* Feed card mở popup Q&A, Notification mở link bài viết → giữ cursor pointer */
.question .avatar .avatar-fallback,
.question .avatar img.avatar,
.Notification .avatarNt,
.Notification .avatar-fallback,
.Notification .user-name {
  cursor: pointer;
}

/* Admin đang đăng nhập hoặc tác giả là Admin → giữ cursor pointer */
body.is-admin-viewer .popupProfile,
body.is-admin-viewer .avatar .avatar-fallback,
body.is-admin-viewer .sav .avatar-fallback,
body.is-admin-viewer .user-info .avatar,
body.is-admin-viewer .user-info .avatar-fallback,
body.is-admin-viewer .referrals .historyusd .avatar-fallback,
.question-Popup[data-is-admin="1"] .contentP .ant .popupProfile,
.question-Popup[data-is-admin="1"] .contentP .ant .avatar-fallback,
.question-Popup[data-is-admin="1"] .contentP .ant img.avatar,
.answer[data-is-admin="1"]>.avatar .avatar-fallback,
.answer[data-is-admin="1"]>.avatar img.avatar,
.answer[data-is-admin="1"]>.answer-content>.contentM>.fam>.popupProfile,
.answerreply[data-is-admin="1"]>.avatar .avatar-fallback,
.answerreply[data-is-admin="1"]>.avatar img.avatar,
.answerreply[data-is-admin="1"]>.answer-content>.fam>.popupProfile,
.leaderboard-row:has(.lvAcc) .avatar,
.leaderboard-row:has(.lvAcc) .avatar-fallback,
.leaderboard-row:has(.lvAcc) .popupProfile {
  cursor: pointer !important;
}

.referrals .historyusd .avatar-fallback {
  display: flex;
  width: 44px;
  height: 44px;
  cursor: default;
  background: #ccc;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

.referrals .historyusd .avatarName {
  display: flex;
  gap: 10px;
  place-items: center;
}

.referrals .historyusd .chbdjvbh {
  width: max-content;
}

.referrals .historyusd .chbdjvbh .popupProfile {
  font-weight: bold;
}

.avatarName .avatar {
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.table.historyusd thead tr th {
  font-weight: bold;
}


#accountPopup .loginref {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 36px 40px 32px;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: loginrefSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 300px;
  max-width: 360px;
}

@keyframes loginrefSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loginref .lr-icon-wrap {
  width: 120px;
  height: 30px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginref .lr-icon-wrap .lr-logo {
  width: 150px;
  height: 25px;
  background: url(data:image/webp;base64,UklGRvQjAABXRUJQVlA4WAoAAAAQAAAAzQEAXgAAQUxQSJsZAAAB8FbbVm7btm1lCUhAAhKKBCQgAQlFAhKQgIQiAQlIKA7yjwrU1tv4mGOtXxExAfiHGjVgWxTPqAHbUvA/WY873cHjTv9Hk/E24x9i1r+v0A+9b8I49PYfLNc3bfx9JTvMsZHT/C/W7JX9fUF3ceygu2j/ydab8TcG2UDrDrKByn+w/sr+xnrfhbBrfRfwH3z6m/k3FnXXZRd0N/7z8BN9vRl/YyXuRtxp/I8U9SPzjY2/MNGdYC+6k/86kE+ovunlLwyHqGGDQ2jh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sAAAAAAAAAAAA61PdZye2N/homddMLP9aRTBhDgvArLp9hDa+qv7EEeT5Yf6X721EA7Qa4HDHwBL4FNe+ukR4mBXbIQdrJM5+/hT8Lcoj/+Efv/lyf/sMy4AAAAA=) no-repeat scroll 100%;
  background-size: cover;
}

.loginref .title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  color: #1e293b;
  letter-spacing: -0.3px;
}

.loginref .lr-subtitle {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.4;
}

.loginref .btnLR {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 0;
  margin: 0 0 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
}

.loginref .btnLR svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.loginref .btn-login {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.loginref .btn-login svg {
  stroke: #334155;
}

.loginref .btn-login:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.loginref .btn-register {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.loginref .btn-register svg {
  stroke: #fff;
}

.loginref .btn-register:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.loginref .btn-register:active,
.loginref .btn-login:active {
  transform: translateY(0);
}

#accountPopup .close-btn-lr {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: transparent;
  line-height: 1;
}

#accountPopup .close-btn-lr:hover {
  background: #f1f5f9;
  color: #475569;
}

.error404 {
  text-align: center;
}

.popup-content.er404 {
  padding: 20px;
}

#accountPopup .close-btn-404 {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

a.UrlSharePost,
a.TCAccess {
  color: inherit;
  text-decoration: none;
}

.UrlSharePost:hover {
  text-decoration: underline;
  cursor: pointer;
}

.popupCopyOk {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9999999;
  animation: fadein 0.5s;
  display: flex;
  align-items: center;
  display: none;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== EMBED VIDEO ========== */
.embed-video {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.embed-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.embed-video.tiktok {
  max-width: 325px;
}

.embed-video.tiktok iframe {
  aspect-ratio: 9 / 16;
}

.embed-video .video-link {
  background: #1a1a1a;
  padding: 6px 10px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-video .video-link a {
  color: #8ab4f8;
  text-decoration: none;
}

.embed-video .video-link a:hover {
  text-decoration: underline;
}

.comment-box .embed-video iframe {
  max-height: 80px;
}

.messageItemM .messageItem .bubble:has(.embed-video iframe) {
  width: 100%;
}

#modalPost .send-btn {
  display: none;
}

/* ========== SMART IMAGE GALLERY CSS ========== */
.smart-image-gallery {
  display: grid;
  gap: 3px;
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #e4e6eb;
}

.smart-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.smart-image-gallery img:hover {
  transform: scale(1.02);
}

/* Grid Layouts */
.gallery-grid-1 {
  grid-template-columns: 1fr;
  max-height: 400px;
}

.gallery-grid-2 {
  grid-template-columns: 1fr 1fr;
  height: 250px;
}

.gallery-grid-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 150px 150px;
  height: 304px;
}

.gallery-grid-3 .gallery-item:nth-child(1) {
  grid-row: 1 / span 2;
}

.gallery-grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 150px 150px;
  height: 304px;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Overlay for +N images */
.overlay-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  pointer-events: none;
  z-index: 2;
}

/* ========== LIGHTBOX CSS ========== */
.mxh-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mxh-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.mxh-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1000001;
  line-height: 1;
}

.mxh-lightbox-close:hover {
  color: #ccc;
}

.mxh-lightbox-prev,
.mxh-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mxh-lightbox-prev:hover,
.mxh-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.mxh-lightbox-prev {
  left: 20px;
}

.mxh-lightbox-next {
  right: 20px;
}

.mxh-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}

.mxh-lightbox-counter {
  position: absolute;
  top: 20px;
  left: 30px;
  color: white;
  font-size: 16px;
  font-family: sans-serif;
  z-index: 1000001;
}

/* ========== Giới hạn ảnh ngoài bảng tin ========== */
.question .likeImg .smart-image-gallery {
  max-width: 150px;
  max-height: 150px;
  margin-right: 10px;
}

.question .likeImg .smart-image-gallery img {
  border-radius: 5px;
}

/* ─── Language Switcher ─── */
.lang-switcher {
  position: relative;
  z-index: 9999;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(66, 139, 202, 0.08);
  border: 1px solid rgba(66, 139, 202, 0.15);
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.question-Body .lang-current {
  background: rgb(240 248 255);
}

.lang-current:hover {
  background: rgba(66, 139, 202, 0.14);
  border-color: rgba(66, 139, 202, 0.3);
  color: #1e40af;
}

.question-Body .lang-current:hover {
  background: rgba(66, 139, 202, 0.14);
  background: rgb(232 239 245);
  color: #1e40af;
}

.lang-current svg {
  flex-shrink: 0;
  color: #428bca;
}

.lang-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #f1f5f9;
}

.lang-dropdown-header svg {
  color: #94a3b8;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:last-child {
  border-radius: 0 0 12px 12px;
}

.lang-option:hover {
  background: #f0f4ff;
  color: #1e40af;
}

.lang-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0;
  color: #667eea;
  transition: opacity 0.15s ease;
}

.lang-option.active .lang-check {
  opacity: 1;
}

.lang-option.active {
  color: #667eea;
  font-weight: 600;
  background: #f5f3ff;
}

.lang-options-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.lang-options-list::-webkit-scrollbar {
  width: 2px;
}

.lang-options-list::-webkit-scrollbar-track {
  background: transparent;
}

.lang-options-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.lang-options-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Translation Block ─── */
.translation-block,
.translation-block-cmt {
  margin: 0px 0 8px;
  padding: 0;
  margin-top: -7px;
}

.translation-block-cmt {
  margin-top: 4px;
  margin-bottom: 6px;
}

.translation-block-msg {
  margin-top: 4px;
  font-size: 0.95em;
  opacity: 0.9;
}

.translation-divider {
  border: none;
  border-top: 1px dashed rgba(128, 128, 128, 0.4);
  margin: 6px 0;
}

.translation-block-msg .label-trans {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.translation-block-msg .text-trans {
  line-height: 1.4;
}

.translation-block blockquote,
.translation-block-cmt blockquote {
  margin: 0 0 2px;
  padding: 4px 0px;
  margin-left: 2px;
}

.translation-block blockquote p,
.translation-block-cmt blockquote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.translation-block blockquote:first-child p,
.translation-block-cmt blockquote:first-child p {
  font-size: 12.5px;
  color: #667eea;
}

.translation-block .original,
.translation-block-cmt .original {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Translation Block Post ===== */
.translation-block-post {
  margin-top: 5px;
  padding: 6px 0;
}

.translation-block-post blockquote {
  margin: 0 0 2px;
  padding: 4px 0px;
  margin-left: 2px;
}

.translation-block-post blockquote p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #667eea;
}

.translation-block-post .original {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  margin: 4px 0 0 2px;
}

.translation-block-post .original:hover {
  text-decoration: underline;
}

.FPost .contentP .translation-block-post {
  margin-top: -10px;
}

/* ===== Translate Post Loading ===== */
.FPost .translate-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -8px;
  margin-bottom: 8px;
  color: #888;
  font-size: 13px;
}

.question-list .question .translate-loading {
  position: absolute;
  left: -10px;
  bottom: -23px;
  margin-top: 0;
  padding: 4px 8px;
  pointer-events: none;
  z-index: 1;
  /*ackground: rgba(255, 255, 255, 0.85);*/
  border-radius: 4px;
}

.translate-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: translateSpin 0.8s linear infinite;
}

@keyframes translateSpin {
  to {
    transform: rotate(360deg);
  }
}