/* Hollow Nexus League — organização visual do Chat Discord administrativo */
.hnl-chat-hero {
  margin-bottom: 18px;
}

.va-bridge-shell.hnl-admin-chat {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hnl-admin-chat .va-bridge-card {
  padding: 24px;
  overflow: visible;
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(88, 101, 242, .1), transparent 30%),
    linear-gradient(145deg, rgba(12, 17, 34, .98), rgba(9, 13, 27, .98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.hnl-admin-chat .va-bridge-head {
  align-items: center;
  margin-bottom: 18px;
}

.hnl-admin-chat .va-bridge-head h2 {
  margin: 5px 0;
  font-size: clamp(26px, 3vw, 38px);
}

.hnl-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hnl-connection-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  background: rgba(15, 23, 42, .62);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
}

.hnl-connection-badge i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, .12);
}

.hnl-connection-badge.connected {
  border-color: rgba(52, 211, 153, .26);
  background: rgba(6, 78, 59, .14);
  color: #a7f3d0;
}

.hnl-connection-badge.connected i {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .12), 0 0 14px rgba(52, 211, 153, .5);
}

.hnl-admin-chat .va-bridge-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.hnl-admin-chat .va-bridge-icon-btn:hover {
  border-color: rgba(129, 140, 248, .5);
  background: rgba(99, 102, 241, .16);
  transform: rotate(24deg);
}

.hnl-channel-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 14px !important;
  padding: 17px !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg, rgba(10, 18, 38, .92), rgba(10, 13, 29, .92)) !important;
}

.hnl-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hnl-panel-heading h3,
.hnl-panel-heading p {
  margin: 0;
}

.hnl-panel-heading h3 {
  color: #f8fafc;
  font-size: 15px;
}

.hnl-panel-heading p {
  margin-top: 3px;
  color: #9da9c3;
  font-size: 11px;
  font-weight: 650;
}

.hnl-panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 11px;
  background: rgba(34, 211, 238, .08);
  color: #67e8f9;
  font-size: 18px;
  font-weight: 950;
}

.hnl-admin-chat .va-bridge-link-row {
  grid-template-columns: minmax(300px, 1fr) auto auto;
  gap: 10px;
}

.hnl-field {
  display: grid;
  gap: 6px;
}

.hnl-field > span,
.hnl-compose-label {
  color: #b9c4d9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.hnl-admin-chat .va-bridge-select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: #081022;
  font-size: 12px;
}

.hnl-admin-chat .va-btn {
  min-height: 42px;
  border-radius: 11px;
  white-space: nowrap;
}

.hnl-admin-chat .va-btn:disabled,
.hnl-admin-chat .va-bridge-icon-btn:disabled,
.hnl-admin-chat select:disabled,
.hnl-admin-chat textarea:disabled {
  border-color: rgba(148, 163, 184, .12) !important;
  background: rgba(30, 41, 59, .36) !important;
  color: rgba(203, 213, 225, .42) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

.hnl-admin-chat .va-bridge-status {
  min-height: 0;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 11px;
  background: rgba(15, 23, 42, .46);
  color: #aebbd1;
  font-size: 11px;
  font-weight: 700;
}

.hnl-admin-chat .va-bridge-status:empty {
  display: none;
}

.hnl-admin-chat .va-bridge-status.ok {
  border-color: rgba(52, 211, 153, .24);
  background: rgba(6, 78, 59, .11);
  color: #a7f3d0;
}

.hnl-admin-chat .va-bridge-status.err {
  border-color: rgba(251, 113, 133, .28);
  background: rgba(127, 29, 29, .11);
  color: #fecdd3;
}

.hnl-chat-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
  align-items: start;
  gap: 14px;
}

.hnl-history-panel,
.hnl-composer-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 17px;
  background: rgba(8, 13, 28, .68);
}

.hnl-composer-panel {
  position: sticky;
  top: 16px;
  border-color: rgba(139, 92, 246, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, .09), transparent 35%),
    rgba(8, 13, 28, .76);
}

.hnl-workspace-head {
  min-height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hnl-workspace-head h3,
.hnl-workspace-head p {
  margin: 0;
}

.hnl-workspace-head h3 {
  margin-top: 4px;
  color: #f8fafc;
  font-size: 18px;
}

.hnl-workspace-head p {
  max-width: 680px;
  margin-top: 5px;
  color: #98a5bd;
  font-size: 11px;
  line-height: 1.45;
}

.hnl-message-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(129, 140, 248, .18);
  border-radius: 999px;
  background: rgba(99, 102, 241, .08);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 850;
}

.hnl-history-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 10px;
}

.hnl-history-search {
  min-height: 40px;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 11px;
  background: rgba(3, 8, 20, .72);
}

.hnl-history-search > span {
  color: #8b9bb7;
  font-size: 18px;
}

.hnl-history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 11px;
}

.hnl-history-search:focus-within {
  border-color: rgba(34, 211, 238, .4);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .07);
}

.hnl-admin-chat .va-bridge-messages {
  height: min(62vh, 650px);
  min-height: 430px;
  margin: 0;
  padding: 10px;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 14px;
  background: rgba(2, 6, 18, .5);
  scrollbar-color: rgba(139, 92, 246, .55) transparent;
  scrollbar-width: thin;
}

.hnl-admin-chat .va-bridge-messages::-webkit-scrollbar,
.va-mention-results::-webkit-scrollbar {
  width: 8px;
}

.hnl-admin-chat .va-bridge-messages::-webkit-scrollbar-thumb,
.va-mention-results::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(139, 92, 246, .52);
  background-clip: padding-box;
}

.hnl-admin-chat .va-bridge-msg {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 13px;
  background: rgba(15, 23, 42, .58);
  transition: border-color .18s ease, background .18s ease;
}

.hnl-admin-chat .va-bridge-msg:hover {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(19, 29, 49, .72);
}

.hnl-admin-chat .va-bridge-msg.discord {
  border-left: 3px solid rgba(34, 211, 238, .55);
}

.hnl-admin-chat .va-bridge-msg.bot {
  border-left: 3px solid rgba(139, 92, 246, .72);
  background: linear-gradient(90deg, rgba(91, 33, 182, .1), rgba(15, 23, 42, .58) 38%);
}

.va-bridge-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.va-bridge-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.va-bridge-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, .2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(88, 101, 242, .32), rgba(139, 92, 246, .18));
  color: #eef2ff;
  font-size: 12px;
  font-weight: 950;
}

.va-bridge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.va-bridge-author-copy {
  min-width: 0;
}

.va-bridge-author-copy strong {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  overflow: hidden;
  margin: 0 !important;
  color: #f8fafc;
  font-size: 12px;
}

.va-bridge-author-copy small {
  display: block;
  margin-top: 2px;
  color: #7f8ca5;
  font-size: 9px;
}

.va-bridge-time {
  flex: 0 0 auto;
  color: #71809b;
  font-size: 9px;
  white-space: nowrap;
}

.va-bridge-msg-content {
  margin: 10px 0 0 43px;
  color: #dfe7f5;
  font-size: 12px;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
}

.va-bridge-command-badge,
.va-bridge-bot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(139, 92, 246, .32);
  border-radius: 999px;
  background: rgba(139, 92, 246, .13);
  color: #ddd6fe;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.va-bridge-command-badge {
  border-color: rgba(34, 211, 238, .26);
  background: rgba(34, 211, 238, .08);
  color: #a5f3fc;
}

.va-bridge-msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin: 9px 0 0 43px;
}

.va-bridge-msg-actions .va-btn {
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.va-bridge-edit-box {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 43px;
}

.va-bridge-edit-box textarea {
  width: 100%;
  min-height: 105px;
  padding: 12px;
  resize: vertical;
  border: 1px solid rgba(139, 92, 246, .32);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 7, 18, .82);
  color: #fff;
}

.va-bridge-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.hnl-admin-chat .va-bridge-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: auto;
  padding: 26px;
  color: #8e9bb3;
  text-align: center;
}

.hnl-empty-state {
  display: grid;
  place-items: center;
  gap: 7px;
}

.hnl-empty-state i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(99, 102, 241, .11);
  color: #a5b4fc;
  font-style: normal;
  font-size: 21px;
}

.hnl-empty-state strong {
  color: #dbe5f5;
  font-size: 12px;
}

.hnl-empty-state span {
  max-width: 330px;
  font-size: 10px;
  line-height: 1.45;
}

.hnl-admin-chat .va-bridge-attachments {
  margin-left: 43px;
}

.hnl-admin-chat .va-bridge-attachment.image img {
  width: min(280px, 100%);
  max-height: 220px;
}

.hnl-admin-chat .va-bridge-compose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.hnl-admin-chat .va-bridge-compose textarea {
  width: 100%;
  min-height: 180px;
  max-height: 360px;
  padding: 13px;
  resize: vertical;
  border: 1px solid rgba(139, 92, 246, .22);
  border-radius: 12px;
  outline: none;
  background: rgba(2, 6, 18, .7);
  color: #f8fafc;
  line-height: 1.5;
}

.hnl-admin-chat .va-bridge-compose textarea:focus {
  border-color: rgba(139, 92, 246, .58);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .08);
}

.hnl-compose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #74829c;
  font-size: 9px;
}

.hnl-compose-meta kbd {
  padding: 2px 5px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 5px;
  background: rgba(30, 41, 59, .55);
  color: #bcc8d9;
  font: inherit;
  font-weight: 800;
}

.hnl-compose-meta strong {
  color: #9dabbe;
  white-space: nowrap;
}

.hnl-compose-meta strong.near-limit {
  color: #fbbf24;
}

.hnl-compose-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 3px;
}

.hnl-chat-safety {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(34, 211, 238, .12);
  border-radius: 12px;
  background: rgba(34, 211, 238, .035);
}

.hnl-chat-safety strong {
  color: #c8f7ff;
  font-size: 10px;
}

.hnl-chat-safety ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 17px;
  color: #91a1ba;
  font-size: 10px;
  line-height: 1.4;
}

.va-mention-menu {
  position: static;
  width: 100%;
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  max-height: none;
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(88, 101, 242, .35);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(8, 14, 29, .98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36);
}

.va-mention-menu[hidden] {
  display: none;
}

.va-mention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.va-mention-head strong {
  color: #f8fafc;
  font-size: 11px;
}

.va-mention-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(30, 41, 59, .45);
  color: #cbd5e1;
  cursor: pointer;
}

.va-mention-search {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 9px;
  outline: none;
  background: rgba(2, 6, 18, .7);
  color: #f8fafc;
  font-size: 10px;
}

.va-mention-search:focus {
  border-color: rgba(129, 140, 248, .5);
}

.va-mention-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.va-mention-tabs::-webkit-scrollbar {
  display: none;
}

.va-mention-tab {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(30, 41, 59, .38);
  color: #aab7cb;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.va-mention-tab.active {
  border-color: rgba(129, 140, 248, .4);
  background: rgba(99, 102, 241, .19);
  color: #e0e7ff;
}

.va-mention-results {
  max-height: 290px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: rgba(139, 92, 246, .55) transparent;
  scrollbar-width: thin;
}

.va-mention-group {
  display: grid;
  gap: 3px;
}

.va-mention-group + .va-mention-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.va-mention-group > span {
  padding: 3px 7px;
  color: #8ea2ff;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.va-mention-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.va-mention-option:hover,
.va-mention-option.active {
  background: rgba(88, 101, 242, .24);
}

.va-mention-option i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(88, 101, 242, .16);
  color: #c7d2fe;
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
}

.va-mention-option i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.va-mention-option b {
  overflow: hidden;
  color: #e8edf7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.va-mention-option small {
  color: #8290a8;
  font-size: 8px;
  font-weight: 800;
}

.va-mention-empty {
  padding: 18px 10px;
  color: #8795ad;
  font-size: 10px;
  text-align: center;
}

.va-mention-token {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(88, 101, 242, .24);
  color: #dbe4ff;
  font-weight: 850;
}

@media (max-width: 1220px) {
  .hnl-chat-workspace {
    grid-template-columns: 1fr;
  }

  .hnl-composer-panel {
    position: static;
  }

  .hnl-admin-chat .va-bridge-messages {
    height: min(55vh, 560px);
  }
}

@media (max-width: 820px) {
  .hnl-admin-chat .va-bridge-card {
    padding: 15px;
  }

  .hnl-admin-chat .va-bridge-head,
  .hnl-panel-heading,
  .hnl-workspace-head {
    align-items: flex-start;
  }

  .hnl-admin-chat .va-bridge-head {
    flex-direction: column;
  }

  .hnl-chat-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hnl-admin-chat .va-bridge-link-row {
    grid-template-columns: 1fr;
  }

  .hnl-admin-chat .va-bridge-link-row .va-btn {
    width: 100%;
  }

  .hnl-history-toolbar,
  .hnl-compose-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .hnl-history-toolbar .va-btn {
    width: 100%;
  }

  .hnl-compose-actions {
    grid-template-columns: 1fr;
  }

  .hnl-admin-chat .va-bridge-messages {
    height: 58vh;
    min-height: 360px;
  }

  .va-bridge-time {
    display: none;
  }

  .va-bridge-msg-content,
  .va-bridge-msg-actions,
  .va-bridge-edit-box,
  .hnl-admin-chat .va-bridge-attachments {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .hnl-history-panel,
  .hnl-composer-panel,
  .hnl-channel-panel {
    padding: 12px !important;
  }

  .hnl-connection-badge span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
