/* HG V81B: only HUD, existing notification panel, and existing chat. */
.hud-action-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(52px, 1fr)) !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  overflow: visible !important;
}
.hud-action-row > div,
.hud-action-row > button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#hgV81BMessageBtn,
#hgV81BSideMenuBellBtn,
.hud-action-row .hud-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
}
#notificationModal.hg-v81b-front,
#directMessagesModal.hg-v81b-front,
#activeChatModal.hg-v81b-front {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.hg-v81b-notification-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.hg-v81b-notification-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid #FFD700;
  background: linear-gradient(145deg, rgba(31,31,38,.96), rgba(15,15,19,.98));
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
  cursor: pointer;
  touch-action: manipulation;
}
.hg-v81b-notification-row[data-read="true"] {
  border-left-color: rgba(0,229,255,.35);
  opacity: .72;
}
.hg-v81b-notification-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #00E5FF;
  background: rgba(0,229,255,.1);
}
.hg-v81b-notification-content { min-width: 0; }
.hg-v81b-notification-message { color: #fff; font-weight: 750; line-height: 1.35; }
.hg-v81b-notification-time { color: #7fefff; font-size: .72rem; font-weight: 900; margin-top: 5px; }
.hg-v81b-notification-delete {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,68,68,.42);
  background: rgba(255,68,68,.12);
  color: #ff7777;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.hg-v81b-empty { text-align: center; color: #999; padding: 42px 18px; font-weight: 700; }
.hg-v81b-empty-icon { font-size: 2.6rem; opacity: .45; margin-bottom: 8px; }
.hg-v81b-post-target {
  outline: 2px solid #FFD700 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 38px rgba(255,215,0,.72) !important;
}
.hg-v81b-chat-header {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0,1fr) 46px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: calc(10px + env(safe-area-inset-top)) 13px 10px !important;
  border-bottom: 1px solid rgba(255,215,0,.16) !important;
  background: rgba(10,10,14,.985) !important;
}
.hg-v81b-chat-back,
.hg-v81b-delete-thread {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}
.hg-v81b-delete-thread {
  border: 1px solid rgba(255,68,68,.42);
  background: rgba(255,68,68,.12);
  color: #ff7777;
}
.hg-v81b-delete-thread:disabled { opacity: .3; pointer-events: none; }
.hg-v81b-chat-person {
  border: 0;
  background: transparent;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}
#hgV81BChatAvatar {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,229,255,.55);
  background: #15161a;
}
.hg-v81b-chat-labels { min-width: 0; }
.hg-v81b-chat-name { color: #FFD700; font-weight: 950; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-v81b-typing { color: #00E5FF; font-size: .75rem; min-height: 1em; margin-top: 2px; }
.hg-v81b-chat-messages {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  -webkit-overflow-scrolling: touch;
}
.hg-v81b-chat-empty { margin: auto; text-align: center; color: #888; }
.hg-v81b-chat-empty > div { font-size: 3rem; }
.hg-v81b-message {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 18px;
  color: #fff;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 12px rgba(0,0,0,.32);
}
.hg-v81b-message.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #00bcd4, #0077b6);
  border-bottom-right-radius: 5px;
}
.hg-v81b-message.theirs {
  align-self: flex-start;
  background: rgba(31,31,38,.96);
  border: 1px solid rgba(255,215,0,.18);
  border-bottom-left-radius: 5px;
}
.hg-v81b-message-image { display: block; max-width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.hg-v81b-message-animation { display: block; width: 100%; border: 0; background: transparent; font-size: 2.7rem; text-align: center; cursor: pointer; }
.hg-v81b-message-edited { font-size: .68rem; opacity: .65; text-align: right; margin-top: 4px; }
.hg-v81b-message-status { margin-top: 5px; text-align: right; font-size: .68rem; opacity: .78; font-weight: 850; }
.hg-v81b-message-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.hg-v81b-message-actions button {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}
.hg-v81b-message-actions button.danger {
  border-color: rgba(255,80,80,.46);
  background: rgba(255,50,50,.18);
  color: #ffe1e1;
}
