/* ============================================================
   Central de Atendimento — tema visual Discord
   ============================================================ */

:root {
  /* Fundo preto/cinza fosco (estilo ícone BIGDISK) */
  --bg-rail: #0a0a0c;
  --bg-canais: #121214;
  --bg-conteudo: #161618;
  --bg-membros: #121214;
  --bg-flutuante: #0c0c0e;
  --bg-entrada: #1c1c1f;
  --bg-modal: #161618;
  --bg-hover: #1e1e22;
  --bg-ativo: #242428;
  --bg-selecionado: #2a2a2e;

  --texto: #e6e6e8;
  --texto-suave: #b8b8be;
  --texto-fraco: #8a8a93;
  --texto-forte: #f5f5f7;
  --texto-link: #ff4d4d;

  --marca: #e10600;
  --marca-hover: #b80500;
  --verde: #23a55a;
  --verde-hover: #1a8347;
  --vermelho: #e10600;
  --vermelho-hover: #b80500;
  --amarelo: #f0b232;

  --borda: #2a2a2e;
  --divisor: #1a1a1d;

  --raio: 4px;
  --raio-grande: 8px;
  --saida: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--texto);
  font-size: 16px;
  line-height: 1.375;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background-color: #121214;
  background-image: linear-gradient(180deg, #161618 0%, #0e0e10 55%, #0a0a0c 100%);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: var(--texto-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Rolagem no estilo do Discord */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a40;
}

.rolagem-fina {
  scrollbar-width: thin;
  scrollbar-color: #2a2a2e transparent;
}

/* Efeito de pressionar, como nos botões do Discord */
.press {
  transition: transform 160ms var(--saida), background-color 160ms var(--saida),
    opacity 160ms var(--saida), color 160ms var(--saida);
}
.press:active {
  transform: scale(0.97);
}

.oculto {
  display: none !important;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */

.app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* --- Rail de servidores --- */
.rail {
  width: 72px;
  flex-shrink: 0;
  background: var(--bg-rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.rail-pilula {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  background: var(--texto-forte);
  border-radius: 0 4px 4px 0;
  height: 0;
  transition: height 200ms var(--saida);
}
.rail-item:hover .rail-pilula {
  height: 20px;
}
.rail-item.ativo .rail-pilula {
  height: 40px;
}

.rail-botao {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--bg-canais);
  color: var(--texto-forte);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  transition: border-radius 150ms var(--saida), background-color 150ms var(--saida),
    transform 150ms var(--saida);
}
.rail-botao img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.rail-item:hover .rail-botao,
.rail-item.ativo .rail-botao {
  border-radius: 16px;
}
.rail-botao.acao {
  color: var(--verde);
}
.rail-botao.acao:hover {
  background: var(--verde);
  color: #fff;
}
.rail-botao.master {
  color: var(--amarelo);
}
.rail-botao.master:hover {
  background: var(--amarelo);
  color: #1e1f22;
}
.rail-divisor {
  width: 32px;
  height: 2px;
  background: var(--divisor);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Tooltip do rail */
.dica {
  position: fixed;
  z-index: 1000;
  background: var(--bg-flutuante);
  color: var(--texto-forte);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--raio-grande);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 120ms var(--saida), transform 120ms var(--saida);
}
.dica.visivel {
  opacity: 1;
  transform: translateX(0);
}

/* --- Barra de canais --- */
.canais {
  --canais-largura: 240px;
  width: var(--canais-largura);
  flex-shrink: 0;
  background: var(--bg-canais);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.canais-resize {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  z-index: 20;
  touch-action: none;
}
.canais-resize::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 2px;
  background: transparent;
  transition: background-color 120ms var(--saida);
}
.canais-resize:hover::after,
body.canais-redimensionando .canais-resize::after {
  background: var(--marca);
}
body.canais-redimensionando {
  cursor: ew-resize !important;
  user-select: none !important;
}
body.canais-redimensionando * {
  cursor: ew-resize !important;
  user-select: none !important;
}

.canais-topo {
  height: 48px;
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 100ms var(--saida);
}
.canais-topo:hover {
  background: var(--bg-hover);
}
.canais-topo h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--texto-forte);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canais-lista {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 0;
}

.categoria {
  margin-top: 16px;
}
.categoria:first-child {
  margin-top: 0;
}
.categoria-titulo {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--texto-fraco);
  cursor: pointer;
  transition: color 100ms var(--saida);
}
.categoria-titulo:hover {
  color: var(--texto-forte);
}
.categoria-titulo .seta {
  transition: transform 200ms var(--saida);
}
.categoria.fechada .categoria-titulo .seta {
  transform: rotate(-90deg);
}
.categoria-titulo .cat-acoes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 100ms var(--saida);
}
.categoria:hover .categoria-titulo .cat-acoes {
  opacity: 1;
}
.categoria-titulo .add,
.categoria-titulo .cat-cfg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  color: var(--texto-suave);
}
.categoria-titulo .add:hover,
.categoria-titulo .cat-cfg:hover {
  color: var(--texto-forte);
  background: rgba(255, 255, 255, 0.06);
}
.canal-perm-sync {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-entrada);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.canal-perm-sync .sync-txt {
  flex: 1;
  min-width: 200px;
}
.canal-perm-sync .sync-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-forte);
  margin-bottom: 4px;
}
.canal-perm-sync .sync-desc {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.4;
}
.canal-perm-sync.ok {
  border-color: rgba(87, 242, 135, 0.25);
}

.canal-linha {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 2px;
  border-radius: var(--raio);
}
.canal-linha:hover,
.canal-linha.ativo {
  background: var(--bg-hover);
}
.canal-linha.ativo {
  background: var(--bg-selecionado);
}
.canal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--raio);
  color: var(--texto-fraco);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: left;
  transition: background-color 100ms var(--saida), color 100ms var(--saida);
}
.canal-linha .canal {
  width: auto;
  background: transparent;
}
.canal-linha:hover .canal,
.canal:hover {
  color: var(--texto-suave);
}
button.canal:hover {
  background: var(--bg-hover);
}
.canal-linha button.canal:hover {
  background: transparent;
}
.canal.ativo,
.canal-linha.ativo .canal {
  color: var(--texto-forte);
}
button.canal.ativo {
  background: var(--bg-selecionado);
}
.canal-linha button.canal.ativo {
  background: transparent;
}
.canal .nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.canal .contador {
  font-size: 12px;
  color: var(--texto-fraco);
  flex-shrink: 0;
}
.canal-acoes {
  display: none;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
  flex-shrink: 0;
}
.canal-linha:hover .canal-acoes,
.canal-linha.ativo .canal-acoes {
  display: flex;
}
.canal-acao {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--texto-suave);
}
.canal-acao:hover {
  color: var(--texto-forte);
  background: rgba(255, 255, 255, 0.06);
}
.canal-acao[data-dica]::after {
  content: attr(data-dica);
  position: absolute;
  bottom: calc(100% + 6px);
  /* Alinha à direita: na borda da lista o texto não corta (ex.: "Editar canal"). */
  left: auto;
  right: 0;
  transform: none;
  background: #111214;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 80ms var(--saida);
  z-index: 80;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.canal-acao[data-dica]:hover::after {
  opacity: 1;
}
/* Primeiro ícone da fileira: tip um pouco mais à esquerda ainda cabe. */
.canal-acoes .canal-acao:first-child[data-dica]::after {
  right: auto;
  left: 0;
}
.campo-nome-canal {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-entrada);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 12px;
}
.campo-nome-canal:focus-within {
  border-color: var(--marca);
}
.campo-nome-canal .prefixo {
  display: flex;
  color: var(--texto-suave);
  flex-shrink: 0;
}
.campo-nome-canal input {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 !important;
  outline: none;
}
.slider-canal {
  width: 100%;
  accent-color: var(--marca);
  cursor: pointer;
  margin: 4px 0 8px;
}
.slider-marcas {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-fraco);
  margin-bottom: 2px;
}
.radio-grupo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
}
.radio-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--texto-suave);
  font-size: 15px;
  user-select: none;
}
.radio-opcao input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-bolha {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--texto-fraco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.radio-opcao.ativa {
  color: var(--texto-forte);
}
.radio-opcao.ativa .radio-bolha {
  border-color: var(--marca);
  background: var(--marca);
  box-shadow: inset 0 0 0 3px var(--bg-modal);
}

/* Participantes sob o canal de voz */
.voz-membros {
  padding: 2px 0 2px 22px;
}
.voz-membro {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--raio);
  font-size: 14px;
  color: var(--texto-fraco);
  min-width: 0;
}
.voz-membro:hover {
  background: var(--bg-hover);
}
.voz-membro.arrastavel {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.voz-membro.arrastavel:active {
  cursor: grabbing;
}
.voz-membro.arrastando {
  opacity: 0.45;
}
body.arrastando-membro-voz .canal-linha.pode-receber-membro {
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.45);
  border-radius: 6px;
}
body.arrastando-membro-voz .canal-linha.pode-receber-membro.alvo-drop-ativo {
  box-shadow: inset 0 0 0 2px var(--marca, #5865f2);
  background: rgba(88, 101, 242, 0.12);
}
body.arrastando-membro-voz .canal-linha.pode-receber-membro .canal {
  pointer-events: none;
}
.voz-membro > span:not(.icones) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voz-membro .icones {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.voz-membro.transmitindo {
  color: var(--texto-forte);
  cursor: pointer;
}
.voz-membro .voz-badge-vivo {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  background: #e10600;
  color: #fff;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.voz-membro .voz-badge-parar {
  font-size: 8px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Barra do usuário --- */
/* Barra Discord-like: status da call acima da barra do usuário */
.voz-conexao {
  flex-shrink: 0;
  margin: 0 8px 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1e1f2e;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  box-sizing: border-box;
}
.voz-conexao.oculto {
  display: none !important;
}
.voz-conexao-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.voz-conexao-icone {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(35, 165, 90, 0.16);
  color: #23a55a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.voz-conexao-icone svg {
  width: 16px;
  height: 16px;
}
.voz-conexao-textos {
  min-width: 0;
  flex: 1;
}
.voz-conexao-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #23a55a;
  line-height: 1.2;
}
.voz-conexao.conectando .voz-conexao-titulo,
.voz-conexao.conectando .voz-conexao-icone {
  color: #f0b232;
}
.voz-conexao.conectando .voz-conexao-icone {
  background: rgba(240, 178, 50, 0.16);
}
.voz-conexao-canal {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #dbdee1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}
.voz-conexao-canal svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.9;
}
.voz-conexao-acoes {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.voz-conexao-acoes .icone-botao {
  width: 32px;
  height: 32px;
  color: #dbdee1;
}
.voz-conexao-acoes .icone-botao:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.voz-conexao-acoes .icone-botao.sair-voz:hover {
  color: #fa777c;
  background: rgba(237, 66, 69, 0.16);
}
.voz-conexao-acoes .icone-botao.ruido-ativo {
  color: #23a55a;
}
.voz-conexao-acoes .icone-botao.ruido-ativo:hover {
  color: #2ecc71;
  background: rgba(35, 165, 90, 0.16);
}
.voz-conexao-acoes .icone-botao:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Barra de uso da caixa de DMs */
.dm-caixa-barra {
  flex-shrink: 0;
  margin: 8px 16px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dm-caixa-barra-topo {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-fraco);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dm-caixa-barra-trilha {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dm-caixa-barra-fill {
  height: 100%;
  border-radius: 99px;
  background: #23a55a;
  transition: width 200ms ease;
}
.dm-caixa-barra.quase .dm-caixa-barra-fill {
  background: #f0b232;
}
.dm-caixa-barra.cheia .dm-caixa-barra-fill {
  background: #ed4245;
}
.dm-caixa-barra.cheia .dm-caixa-barra-topo {
  color: #fa777c;
}

.usuario-barra {
  flex-shrink: 0;
  height: 52px;
  background: #232428;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.usuario-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 4px;
  border-radius: var(--raio);
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.usuario-info:hover {
  background: var(--bg-hover);
}
.usuario-nome {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-forte);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usuario-tag {
  font-size: 12px;
  color: var(--texto-fraco);
}
.usuario-controles {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.icone-botao {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--raio);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  flex-shrink: 0;
  transition: background-color 100ms var(--saida), color 100ms var(--saida);
}
.icone-botao:hover {
  background: var(--bg-hover);
  color: var(--texto-forte);
}
.icone-botao.ativo-vermelho {
  color: var(--vermelho);
}
.icone-botao.ativo-vermelho:hover {
  color: var(--vermelho);
}
.menu-barra {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  padding: 6px 8px;
  background: #111214;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.menu-barra-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu-barra-item:hover {
  background: var(--bg-hover);
  color: var(--texto-forte);
}
.menu-barra-item.perigo {
  color: var(--vermelho);
}
.menu-barra-item.perigo:hover {
  background: rgba(237, 66, 69, 0.12);
  color: var(--vermelho);
}
.menu-barra-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.menu-barra-divisor {
  height: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.06);
}

/* Menu botão direito (usuário) */
.menu-contexto,
.menu-contexto-sub {
  position: fixed;
  z-index: 1400;
  min-width: 240px;
  max-width: 280px;
  padding: 6px 8px;
  background: #111214;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-contexto-sub {
  min-width: 180px;
}
.menu-contexto-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu-contexto-item:hover {
  background: var(--bg-hover);
  color: #fff;
}
.menu-contexto-item.perigo,
.menu-contexto-item .perigo-texto {
  color: #f23f43;
}
.menu-contexto-item.perigo:hover {
  background: rgba(242, 63, 67, 0.12);
}
.menu-contexto-check,
.menu-contexto-seta {
  color: var(--texto-fraco);
  display: flex;
  flex-shrink: 0;
}
.menu-contexto-divisor {
  height: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.06);
}
.menu-contexto-vazio {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--texto-fraco);
}
.menu-contexto-volume {
  padding: 8px 10px 10px;
}
.menu-contexto-volume-titulo {
  font-size: 12px;
  font-weight: 600;
  color: #b5bac1;
  margin-bottom: 8px;
}
.menu-contexto-volume-linha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-contexto-volume-linha input[type="range"] {
  flex: 1;
  accent-color: var(--marca);
  cursor: pointer;
}
.menu-contexto-volume-pct {
  font-size: 12px;
  color: #b5bac1;
  min-width: 36px;
  text-align: right;
}
.voz-membro {
  cursor: pointer;
}

/* --- Área central --- */
.conteudo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-conteudo);
  height: 100%;
  overflow: hidden;
}

/* Download do app — só navegador, ao lado dos ícones do topo (mesmo tamanho do chat) */
.conteudo-topo .acoes .btn-download-app {
  width: 32px;
  height: 32px;
  color: #e10600;
  text-decoration: none;
  -webkit-app-region: no-drag;
}
.conteudo-topo .acoes .btn-download-app:hover {
  background: rgba(225, 6, 0, 0.16);
  color: #ff2a22;
}
.conteudo-topo .acoes .btn-download-app:active {
  transform: scale(0.96);
}
.conteudo-topo .acoes .btn-download-app svg {
  width: 18px;
  height: 18px;
  display: block;
}

.conteudo-topo .acoes .btn-suporte {
  width: 32px;
  height: 32px;
  color: var(--texto-suave);
  -webkit-app-region: no-drag;
}
.conteudo-topo .acoes .btn-suporte:hover {
  background: var(--bg-hover);
  color: var(--texto-forte);
}
.conteudo-topo .acoes .btn-suporte svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Cliente Windows: barra nativa escura + arrastar janela */
html.app-desktop .canais-topo,
html.app-desktop .conteudo-topo,
html.app-desktop .rail {
  -webkit-app-region: drag;
}
html.app-desktop .canais-topo button,
html.app-desktop .canais-topo a,
html.app-desktop .canais-topo input,
html.app-desktop .conteudo-topo button,
html.app-desktop .conteudo-topo a,
html.app-desktop .conteudo-topo input,
html.app-desktop .conteudo-topo .acoes,
html.app-desktop .rail button,
html.app-desktop .rail a,
html.app-desktop .rail .rail-botao,
html.app-desktop .rail .rail-item,
html.app-desktop .icone-botao {
  -webkit-app-region: no-drag;
}
html.app-desktop .conteudo-topo {
  padding-right: 154px; /* espaço dos botões min/max/fechar */
}

.conteudo-topo {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.conteudo-topo .titulo {
  font-size: 16px;
  font-weight: 600;
  color: var(--texto-forte);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.conteudo-topo .topico {
  font-size: 14px;
  color: var(--texto-fraco);
  padding-left: 8px;
  margin-left: 8px;
  border-left: 1px solid var(--borda);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conteudo-topo .acoes {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.conteudo-corpo {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

/* --- Chat --- */
.chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-mensagens {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-inicio {
  padding: 16px 0 24px;
}
.chat-inicio .circulo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-entrada);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-forte);
  margin-bottom: 8px;
}
.chat-inicio h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--texto-forte);
  margin-bottom: 8px;
}
.chat-inicio p {
  color: var(--texto-fraco);
  font-size: 15px;
}

.msg {
  display: flex;
  gap: 16px;
  padding: 2px 48px 2px 0;
  position: relative;
  overflow: visible;
}
.msg.agrupada {
  margin-top: 0;
}
.msg:not(.agrupada) {
  margin-top: 16px;
}
.msg:hover {
  background: rgba(2, 2, 2, 0.06);
}
.msg.msg-flash {
  background: rgba(88, 101, 242, 0.18);
  transition: background 0.3s ease;
}
.msg-avatar {
  width: 40px;
  flex-shrink: 0;
}
.msg-corpo {
  flex: 1;
  min-width: 0;
}
.msg-cabecalho {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.msg-autor {
  font-size: 15px;
  font-weight: 600;
  color: var(--texto-forte);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
}
.msg-autor:hover {
  text-decoration: underline;
}
.msg-avatar.msg-clicavel,
.msg-avatar.msg-clicavel .avatar-shell {
  cursor: pointer;
}
.msg-avatar.msg-clicavel:hover {
  filter: brightness(1.08);
}
.msg-hora {
  font-size: 12px;
  color: var(--texto-fraco);
}
.msg-texto {
  font-size: 15px;
  color: var(--texto);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-excluir {
  position: absolute;
  right: 8px;
  top: 0;
  opacity: 0;
  color: var(--texto-fraco);
}
.msg:hover .msg-excluir {
  opacity: 1;
}
.msg-excluir:hover {
  color: var(--vermelho);
}

/* Reações + toolbar (estilo Discord) */
.msg-toolbar {
  position: absolute;
  right: 16px;
  top: -14px;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  background: #1e1f22;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 5;
}
.msg:hover .msg-toolbar {
  display: flex;
}
.msg-tb-quick {
  display: flex;
  align-items: center;
  gap: 2px;
}
.msg-tb-div {
  width: 1px;
  height: 18px;
  background: #3f4147;
  margin: 0 4px;
}
.msg-tb-emoji {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.msg-tb-emoji:hover,
.msg-tb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.msg-tb-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b5bac1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.msg-tb-btn svg {
  width: 18px;
  height: 18px;
}
.msg-reacoes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.msg-reacao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #2b2d31;
  color: #dbdee1;
  font-size: 13px;
  cursor: pointer;
}
.msg-reacao:hover {
  background: #35373c;
  border-color: #4e5058;
}
.msg-reacao.minha {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
}

/* Modal Ver Reações (estilo Discord) */
.modal.modal-reacoes {
  max-width: 520px;
  background: #2b2d31;
}
.reacoes-modal-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.reacoes-modal-cab h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
}
.reacoes-modal-fechar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: #b5bac1;
}
.reacoes-modal-corpo {
  display: flex;
  min-height: 280px;
  max-height: min(60vh, 420px);
  overflow: hidden;
}
.reacoes-modal-loading,
.reacoes-modal-vazio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #b5bac1;
  font-size: 14px;
  text-align: center;
}
.reacoes-modal-nav {
  width: 96px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 8px;
  background: #232428;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reacoes-modal-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbdee1;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.reacoes-modal-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}
.reacoes-modal-tab.ativa {
  background: #404249;
  color: #fff;
}
.reacoes-modal-tab-emoji {
  font-size: 18px;
  line-height: 1;
}
.reacoes-modal-tab-n {
  color: #b5bac1;
  font-size: 13px;
  font-weight: 600;
}
.reacoes-modal-tab.ativa .reacoes-modal-tab-n {
  color: #dbdee1;
}
.reacoes-modal-lista {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.reacoes-modal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reacoes-modal-user:hover {
  background: rgba(255, 255, 255, 0.04);
}
.reacoes-modal-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reacoes-modal-user-nome {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-responde {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.msg-responde > .msg-responde-barra {
  width: 2px;
  border-radius: 2px;
  background: #4e5058;
  flex-shrink: 0;
}
.msg-responde-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.msg-responde-nome {
  font-size: 12px;
  font-weight: 700;
  color: #00a8fc;
}
.msg-responde-txt {
  font-size: 12px;
  color: #949ba4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#msg-responde-barra {
  margin: 0;
}
.msg-responde-draft {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1e1f22;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #2a2a2e;
}
.msg-responde-draft-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.msg-responde-draft-txt strong {
  color: #f2f3f5;
}
.msg-responde-draft-txt span {
  color: #949ba4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-entrada {
  flex-shrink: 0;
  padding: 0 16px 24px;
}
.chat-entrada-wrap {
  position: relative;
}
.mencao-ac {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  max-height: 240px;
  overflow-y: auto;
  background: #1e1f22;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 40;
  padding: 4px;
}
.mencao-ac-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #dbdee1;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.mencao-ac-item:hover,
.mencao-ac-item.ativo {
  background: rgba(88, 101, 242, 0.25);
}
.mencao-ac-nome {
  font-weight: 600;
  color: #f2f3f5;
}
.mencao-ac-sub {
  font-size: 12px;
  color: #949ba4;
}
.chat-caixa {
  background: var(--bg-entrada);
  border-radius: var(--raio-grande);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}
.chat-caixa input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--texto-forte);
  font-size: 15px;
}
.chat-caixa input::placeholder {
  color: var(--texto-fraco);
}
.chat-aviso {
  background: var(--bg-entrada);
  border-radius: var(--raio-grande);
  padding: 11px 16px;
  color: var(--texto-fraco);
  font-size: 14px;
  text-align: center;
}

/* --- Lista de membros --- */
.membros {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-membros);
  overflow-y: auto;
  padding: 16px 8px;
}
.membros-titulo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--texto-fraco);
  padding: 0 8px 8px;
}

/* Chat da call (coluna direita, no lugar dos membros) */
.membros.chat-call {
  width: min(380px, 42vw);
  min-width: 300px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-canais, #1e1f22);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-call-topo {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.chat-call-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--texto-forte);
  font-weight: 600;
  font-size: 15px;
}
.chat-call-titulo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-call-corpo {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.membros.chat-call .chat-mensagens {
  padding: 12px;
}
.membros.chat-call .chat-inicio h2 {
  font-size: 22px;
}
.membros.chat-call .chat-entrada {
  padding: 0 12px 16px;
}
.membros.chat-call .chat-caixa {
  padding: 10px 12px;
}
.membros.chat-call .chat-caixa input {
  font-size: 14px;
}
.membro-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  transition: background-color 100ms var(--saida), filter 100ms var(--saida);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.membro-linha:hover {
  background: var(--bg-hover);
}
.membro-linha.com-faixa {
  min-height: 44px;
  padding: 8px 10px;
  background-color: #1e1f22;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.membro-linha.com-faixa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 31, 34, 0.88) 0%, rgba(30, 31, 34, 0.45) 55%, rgba(30, 31, 34, 0.15) 100%);
  z-index: 0;
  pointer-events: none;
}
.membro-linha.com-faixa > * {
  position: relative;
  z-index: 1;
}
.membro-linha.com-faixa:hover {
  filter: brightness(1.08);
  background-color: #1e1f22;
}
.membro-linha.com-faixa .nome {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.membro-linha.com-faixa .membro-atividade {
  color: rgba(255, 255, 255, 0.85);
}
.membro-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.membro-topo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.membro-linha .nome {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.membro-linha .marcas {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.membro-atividade {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--texto-fraco);
  font-size: 12px;
  line-height: 1.2;
}
.membro-atividade svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--verde, #23a55a);
}
.membro-atividade span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.membro-linha.em-voz .membro-atividade,
.membro-atividade.em-voz {
  color: #23a559;
}
.membro-linha.jogando .membro-atividade,
.membro-atividade.jogando {
  color: #b5bac1;
}
.membro-atividade.jogando svg {
  color: #b5bac1;
}

.perfil-jogando {
  margin: 0 0 12px;
}
.perfil-jogando-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--texto-fraco);
  margin-bottom: 8px;
}
.perfil-jogando-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px;
}
.perfil-jogando-icone {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #1e1f22;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.perfil-jogando-icone svg {
  width: 28px;
  height: 28px;
}
.perfil-jogando-info {
  min-width: 0;
  flex: 1;
}
.perfil-jogando-nome {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-forte);
}
.perfil-jogando-det {
  font-size: 12px;
  color: var(--texto-fraco);
  margin-top: 2px;
}
.perfil-jogando-tempo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--texto-fraco);
}
.perfil-jogando-tempo svg {
  width: 12px;
  height: 12px;
}

/* --- Avatar --- */
.avatar-shell {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.avatar-shell .avatar {
  width: 100% !important;
  height: 100% !important;
}
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.falando {
  /* outline não é cortado pelo overflow:hidden do avatar */
  outline: 2px solid #23a559;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(35, 165, 89, 0.55);
}
.avatar-status {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--verde);
  border: 3px solid var(--bg-canais);
  box-sizing: content-box;
  z-index: 2;
}
.avatar-status-wrap {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: flex;
  pointer-events: none;
  z-index: 2;
}
.avatar-status-wrap .status-icone {
  border: 3px solid var(--bg-canais);
  box-sizing: content-box;
}

.status-icone {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.status-icone.disponivel {
  background: #23a55a;
}
.status-icone.ausente {
  background: #f0b232;
  /* lua / ausente */
  mask: radial-gradient(circle at 65% 35%, transparent 42%, #000 44%);
  -webkit-mask: radial-gradient(circle at 65% 35%, transparent 42%, #000 44%);
}
.status-icone.nao-perturbar {
  background: #da373c;
}
.status-icone.nao-perturbar::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 42%;
  height: 16%;
  background: #111214;
  border-radius: 2px;
}
.status-icone.invisivel {
  background: transparent;
  box-shadow: inset 0 0 0 2px #80848e;
}

.menu-status {
  position: fixed;
  z-index: 600;
  min-width: 260px;
  max-width: 320px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.menu-status-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--texto-forte);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.menu-status-item:hover,
.menu-status-item.ativo {
  background: var(--bg-hover);
}
.menu-status-item .status-icone {
  margin-top: 3px;
}
.menu-status-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.menu-status-texto strong {
  font-size: 14px;
  font-weight: 600;
}
.menu-status-texto small {
  font-size: 12px;
  color: var(--texto-fraco);
  line-height: 1.3;
}
.menu-status-divisor {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 8px;
}

/* ============================================================
   SALA DE VOZ
   ============================================================ */

.voz {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
}
.voz-palco {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  overflow: hidden;
}
.voz-grade {
  --voz-cols: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--voz-cols), minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  align-content: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: auto;
}
.voz-grade .voz-tile.balao {
  min-height: 0;
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: none;
  aspect-ratio: 16 / 9;
  background: #1e1f22;
  border-radius: 12px;
  justify-self: stretch;
}
.voz-grade .voz-tile.balao .voz-avatar {
  display: flex;
  z-index: 1;
}
.voz-grade .voz-tile.balao.com-video .voz-avatar {
  display: none !important;
}
.voz-grade .voz-tile.balao .voz-avatar .avatar,
.voz-grade .voz-tile.balao .voz-avatar .avatar-shell {
  width: 80px !important;
  height: 80px !important;
}
.voz-grade .voz-tile.balao .voz-video {
  display: none;
}
.voz-grade .voz-tile.balao.com-video .voz-video,
.voz-grade .voz-tile.balao.com-camera .voz-video {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.voz-grade.com-destaque .voz-tile.destaque.com-video .voz-video,
.voz-grade.com-destaque .voz-tile.destaque.com-camera .voz-video {
  display: block !important;
}
@media (max-width: 900px) {
  .voz-grade {
    --voz-cols: 2;
  }
}
@media (max-width: 560px) {
  .voz-grade {
    --voz-cols: 1;
  }
}
/* Expandir um participante: destaque em cima + faixa dos demais */
.voz-grade.com-destaque {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: stretch;
  align-items: stretch;
  gap: 10px;
  grid-template-columns: none;
}
.voz-grade.com-destaque .voz-tile.destaque {
  flex: 1 1 auto;
  order: -1;
  width: 100%;
  min-height: 220px;
  max-height: none;
  aspect-ratio: auto;
}
.voz-grade.com-destaque .voz-tile:not(.destaque) {
  flex: 0 0 168px;
  width: 168px;
  min-height: 100px;
  max-height: 118px;
  aspect-ratio: 16 / 9;
}

/* Teatro: tela grande em cima + faixa de participantes embaixo */
.voz-teatro {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
  min-height: 0;
}
.voz-stage {
  flex: 1 1 auto;
  min-height: 180px;
  background: #111214;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}
.voz-stage-aguarde {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
  user-select: none;
  pointer-events: none;
}
.voz-stage-aguarde small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}
.voz-teatro-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-app-region: no-drag;
}
.voz-teatro-fechar:hover {
  background: #e10600;
}
.voz-espectadores {
  position: absolute;
  top: 54px;
  right: 10px;
  z-index: 6;
  width: auto;
  max-width: 56px;
  max-height: calc(100% - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
  pointer-events: auto;
  -webkit-app-region: no-drag;
}
.voz-espectadores-titulo {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b5bac1;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
  max-width: 48px;
}
.voz-espectadores-lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow-y: auto;
  overflow-x: visible;
  min-height: 0;
  max-height: 100%;
  padding: 2px 0;
  width: 100%;
}
.voz-espectador {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: default;
}
.voz-espectador:hover {
  z-index: 2;
}
.voz-espectador .avatar-shell,
.voz-espectador .avatar {
  width: 32px !important;
  height: 32px !important;
}
.voz-espectador-nome {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 80ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.voz-espectador:hover .voz-espectador-nome {
  opacity: 1;
  visibility: visible;
}
.voz-espectadores-vazio {
  font-size: 11px;
  color: #72767d;
  text-align: center;
}
.voz-video-stage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  /* Evita flash— visual ao atualizar layout ao redor */
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Barra: Parar de assistir + volume da transmissão */
.voz-stage-barra {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #000;
  border-radius: 10px;
  min-height: 48px;
}
.voz-parar-assistir {
  min-height: 40px;
  height: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: #e10600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: background-color 120ms var(--saida), transform 80ms var(--saida);
}
.voz-parar-assistir:hover {
  background: #b80500;
}
.voz-parar-assistir:active {
  transform: scale(0.96);
}
.voz-parar-assistir svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.voz-parar-assistir-txt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.voz-vol-stream {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.voz-vol-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #dcddde;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voz-vol-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.voz-vol-btn svg {
  width: 22px;
  height: 22px;
}
.voz-vol-range {
  width: 120px;
  max-width: 28vw;
  accent-color: var(--marca);
  cursor: pointer;
}
.voz-vol-pct {
  font-size: 12px;
  font-weight: 600;
  color: #b5bac1;
  min-width: 40px;
  text-align: right;
}
.voz-faixa {
  flex: 0 0 118px;
  height: 118px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  min-height: 118px;
  max-height: 118px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.35);
}
.voz-faixa .voz-tile.strip {
  flex: 0 0 168px;
  width: 168px;
  min-height: 110px;
  max-height: 118px;
  border-radius: 10px;
}
.voz-tile.ao-vivo,
.voz-tile.tela.ao-vivo {
  background: var(--bg-canais);
}
.voz-tile-icone-tela {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voz-tile-icone-tela svg {
  width: 28px;
  height: 28px;
}
.badge-ao-vivo {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: #ed4245;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.2;
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.badge-ao-vivo:hover {
  filter: brightness(1.08);
}
.badge-parar-assistir {
  background: #e10600;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voz-tile {
  position: relative;
  background: var(--bg-rail);
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 100ms var(--saida), box-shadow 100ms var(--saida);
}
.voz-tile:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.voz-tile.destaque {
  border-color: var(--marca);
}
.voz-tile.mudo .voz-badges {
  opacity: 1;
}
.voz-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: none;
}
.voz-tile.tela .voz-video {
  object-fit: contain;
}
.voz-audio {
  display: none;
}
.voz-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.voz-avatar .avatar {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.25);
}
.voz-nome {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.voz-nome-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  opacity: 0.95;
}
.voz-nome-ico svg {
  width: 14px;
  height: 14px;
  display: block;
}
.voz-nome-texto {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.voz-badges {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  pointer-events: none;
  z-index: 3;
}
.voz-badges:empty {
  display: none;
}
.voz-badges span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voz-badges svg {
  width: 16px;
  height: 16px;
}
.voz-assistir-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.voz-tile.balao:hover .voz-assistir-hint {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
}
.voz-tile.falando {
  border-color: #23a559 !important;
  box-shadow: 0 0 0 2px rgba(35, 165, 89, 0.55), inset 0 0 0 1px rgba(35, 165, 89, 0.35);
}
.voz-tile.falando .voz-avatar .avatar {
  outline: 3px solid #23a559;
  outline-offset: 3px;
  box-shadow: 0 0 14px rgba(35, 165, 89, 0.55);
}
.voz-membro .avatar.falando {
  outline: 2px solid #23a559;
  outline-offset: 2px;
}

.voz-opcao {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-entrada);
  margin-bottom: 8px;
  cursor: pointer;
}
.voz-opcao:hover {
  background: #393c43;
}
.voz-opcao input {
  margin-top: 3px;
  flex-shrink: 0;
}
.voz-opcao span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.voz-opcao strong {
  color: var(--texto-forte);
  font-size: 15px;
  font-weight: 600;
}
.voz-opcao small {
  color: var(--texto-fraco);
  font-size: 13px;
  line-height: 1.35;
}
.voz-nivel {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-rail);
  overflow: hidden;
}
.voz-nivel-barra {
  height: 100%;
  width: 0;
  background: var(--texto-fraco);
  transition: width 60ms linear, background-color 120ms;
}
.voz-nivel-barra.ativo {
  background: var(--verde);
}
.voz-mic-teste {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.voz-mic-teste .botao {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.voz-mic-teste .botao.teste-ativo {
  background: #4e5058;
}
.voz-mic-teste .botao.teste-ativo:hover {
  background: #6d6f78;
}
.voz-meter {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px 0;
}
.voz-meter-seg {
  flex: 1 1 0;
  min-width: 2px;
  max-width: 6px;
  border-radius: 1px;
  background: #2b2d31;
  transition: background-color 40ms linear;
}
.voz-meter-seg.aceso {
  background: #23a559;
}
.voz-meter-seg.aceso.forte {
  background: #f0b232;
}
.voz-meter-seg.aceso.pico {
  background: #f23f43;
}

.voz-cam-previa {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0c0d0e;
  border: 1px solid var(--borda);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.voz-cam-previa video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  background: #0c0d0e;
  opacity: 0;
  pointer-events: none;
}
.voz-cam-previa.testando video {
  opacity: 1;
}
.voz-cam-previa #vzcfg-teste-video {
  position: relative;
  z-index: 1;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
}
.voz-cam-previa.testando #vzcfg-teste-video {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
}
.voz-cam-previa.testando #vzcfg-teste-video:hover {
  background: rgba(0, 0, 0, 0.72);
}
.voz-cam-toggle-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 18px;
  max-width: 560px;
}
.voz-cam-toggle-textos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.voz-cam-toggle-textos strong {
  color: var(--texto-forte);
  font-size: 15px;
  font-weight: 500;
}
.voz-cam-toggle-textos small {
  color: var(--texto-fraco);
  font-size: 13px;
  line-height: 1.35;
}
.voz-cam-select-wrap {
  position: relative;
  max-width: 560px;
}
.voz-cam-select-wrap .voz-cam-select-icone {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--texto-fraco);
  pointer-events: none;
  z-index: 1;
}
.voz-cam-select-wrap select {
  padding-left: 38px;
}
.voz-previa-flutuante {
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0d0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}
.voz-previa-flutuante video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}
.voz-previa-flutuante .voz-previa-fechar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.voz-previa-flutuante .voz-previa-fechar:hover {
  background: rgba(0, 0, 0, 0.75);
}
#capturar-tecla.ativo {
  outline: 2px solid var(--marca);
}
.voz-aviso {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
  background: #0b0b0d;
  color: var(--texto-suave);
}
.voz-aviso h3 {
  color: var(--texto-forte);
  font-size: 20px;
  font-weight: 600;
}
.voz-aviso p {
  max-width: 480px;
  font-size: 15px;
  color: var(--texto-fraco);
}
.voz-controles {
  flex-shrink: 0;
  background: var(--bg-flutuante);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.controle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-entrada);
  color: var(--texto-forte);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms var(--saida), transform 150ms var(--saida),
    color 150ms var(--saida);
}
.controle:hover {
  background: #4e5058;
}
.controle.desligado {
  background: #fff;
  color: #1e1f22;
}
.controle.ativo {
  background: var(--verde);
  color: #fff;
}
.controle.sair {
  background: var(--vermelho);
  color: #fff;
}
.controle.sair:hover {
  background: var(--vermelho-hover);
}
.controle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.controle:active {
  transform: scale(0.94);
}

.voz-status {
  flex-shrink: 0;
  background: var(--bg-canais);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--verde);
  font-weight: 600;
}

/* ============================================================
   MODAIS
   ============================================================ */

.sobreposicao {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 500;
  animation: aparecer 200ms var(--saida);
}
@keyframes aparecer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-modal);
  border-radius: 5px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: subir 220ms var(--saida);
}
@keyframes subir {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal.largo {
  max-width: 800px;
}
.modal.modal-perfil {
  max-width: 340px;
  background: #111214;
  border-radius: 8px;
  overflow: visible;
  padding: 0 !important;
}

.perfil-popout {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: visible;
  background: #111214;
}
.perfil-banner {
  height: 120px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.perfil-banner img,
.perfil-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.perfil-banner-previa {
  height: 120px;
  width: 100%;
  border-radius: 10px;
  overflow: visible;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.perfil-banner-previa .perfil-banner-img {
  border-radius: 10px;
}
.perfil-banner-previa .perfil-avatar-wrap {
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 6px #111214;
}
.perfil-topo {
  padding: 0 16px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.perfil-avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #111214;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 7px #111214;
  overflow: visible;
  position: relative;
}
.perfil-avatar-wrap .avatar-shell {
  width: 80px !important;
  height: 80px !important;
}
.perfil-avatar-wrap .avatar-status-wrap .status-icone,
.perfil-avatar-wrap .avatar-status {
  border-color: #111214;
}
.perfil-corpo {
  padding: 12px 16px 16px;
}
.perfil-cartao {
  background: var(--bg-rail);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
.perfil-nome {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.perfil-handle {
  font-size: 14px;
  color: #dbdee1;
  margin-top: 2px;
  word-break: break-all;
}
.perfil-handle.perfil-id {
  color: #b5bac1;
  font-weight: 500;
  user-select: all;
}
.perfil-sobre {
  margin-top: 12px;
}
.perfil-sobre-titulo,
.perfil-secao-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #b5bac1;
  margin-bottom: 6px;
}
.perfil-sobre-texto {
  font-size: 14px;
  line-height: 1.45;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
}
.perfil-secao {
  margin-top: 12px;
}
.perfil-secao-valor {
  font-size: 14px;
  color: #dbdee1;
}
.perfil-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.perfil-menu {
  margin-top: 10px;
  background: var(--bg-canais);
  border-radius: 8px;
  overflow: hidden;
}
.perfil-acoes-membro {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111214;
  border-radius: 0 0 8px 8px;
}
.perfil-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--texto-forte);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.perfil-item:last-child {
  border-bottom: none;
}
.perfil-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.perfil-item-icone {
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  flex-shrink: 0;
}
.perfil-item-texto {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
}
.perfil-item-texto strong {
  font-weight: 600;
}
.perfil-item-seta {
  color: var(--texto-fraco);
  display: flex;
  flex-shrink: 0;
}
.modal-cabecalho {
  padding: 24px 24px 0;
  text-align: center;
}
.modal-cabecalho h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--texto-forte);
  margin-bottom: 8px;
}
.modal-cabecalho p {
  color: var(--texto-fraco);
  font-size: 15px;
}
.modal-corpo {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.modal-rodape {
  background: var(--bg-canais);
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */

.campo {
  margin-bottom: 20px;
}
.campo label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--texto-suave);
  margin-bottom: 8px;
}
.campo label .obrigatorio {
  color: var(--vermelho);
}
.campo input[type="text"],
.campo input[type="email"],
.campo input[type="password"],
.campo input[type="number"],
.campo input[type="url"],
.campo input[type="search"],
.campo textarea,
.campo select {
  width: 100%;
  background: var(--bg-rail);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--texto-forte);
  outline: none;
  transition: border-color 150ms var(--saida);
}
.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  border-color: var(--marca);
}
.campo textarea {
  resize: vertical;
  min-height: 80px;
}
.campo .ajuda {
  font-size: 12px;
  color: var(--texto-fraco);
  margin-top: 6px;
}
.campo .erro {
  font-size: 13px;
  color: #fa777c;
  margin-top: 6px;
}
.campo-lembrar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--texto-suave);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.campo-lembrar input {
  width: 16px;
  height: 16px;
  accent-color: var(--marca);
  cursor: pointer;
}

.botao {
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  background: var(--marca);
  color: #fff;
  transition: background-color 150ms var(--saida), transform 160ms var(--saida),
    opacity 150ms var(--saida);
}
.botao:hover {
  background: var(--marca-hover);
}
.botao:active {
  transform: scale(0.97);
}
.botao:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.botao.largo {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}
.botao.verde {
  background: var(--verde);
}
.botao.verde:hover {
  background: var(--verde-hover);
}
.botao.vermelho {
  background: var(--vermelho);
}
.botao.vermelho:hover {
  background: var(--vermelho-hover);
}
.botao.vazio {
  background: none;
  color: var(--texto-forte);
}
.botao.vazio:hover {
  background: none;
  text-decoration: underline;
}
.botao.cinza {
  background: #4e5058;
}
.botao.cinza:hover {
  background: #6d6f78;
}

/* Interruptor idêntico ao do Discord */
.interruptor {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: #80848e;
  flex-shrink: 0;
  transition: background-color 200ms var(--saida);
}
.interruptor.ligado {
  background: var(--marca);
}
.interruptor .bolinha {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 200ms var(--saida);
  display: flex;
  align-items: center;
  justify-content: center;
}
.interruptor.ligado .bolinha {
  transform: translateX(16px);
}
.interruptor:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   PAINEL DE CONFIGURAÇÕES
   ============================================================ */

.config {
  position: fixed;
  inset: 0;
  background: var(--bg-conteudo);
  z-index: 400;
  display: flex;
  overflow: hidden;
}
.config-nav {
  width: 232px;
  flex-shrink: 0;
  background: var(--bg-canais);
  padding: 60px 6px 60px 20px;
  overflow-y: auto;
}
.config-nav .grupo {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--texto-fraco);
  padding: 6px 10px;
  margin-top: 16px;
}
.config-nav .grupo:first-child {
  margin-top: 0;
}
.config-nav .item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  margin-bottom: 2px;
  border-radius: var(--raio);
  color: var(--texto-suave);
  font-size: 16px;
  transition: background-color 100ms var(--saida), color 100ms var(--saida);
}
.config-nav .item:hover {
  background: var(--bg-hover);
  color: var(--texto-forte);
}
.config-nav .item.ativo {
  background: var(--bg-ativo);
  color: var(--texto-forte);
}
.config-nav .divisor {
  height: 1px;
  background: var(--borda);
  margin: 8px 10px;
}
.config-conteudo {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 60px 40px 80px;
}
.config-interno {
  max-width: 740px;
}
.config-fechar {
  position: absolute;
  top: 60px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--texto-suave);
}
.config-fechar .circulo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--texto-fraco);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms var(--saida), border-color 150ms var(--saida);
}
.config-fechar:hover .circulo {
  background: var(--bg-hover);
  border-color: var(--texto-forte);
}
.config-fechar span {
  font-size: 11px;
  font-weight: 700;
}

.config-titulo {
  font-size: 20px;
  font-weight: 600;
  color: var(--texto-forte);
  margin-bottom: 20px;
}
.config-secao {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin: 24px 0 12px;
}
/* Loja / Faixas */
.loja-creditos-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-entrada);
  color: var(--texto-forte);
  font-size: 13px;
  font-weight: 700;
}
.loja-creditos-badge svg {
  color: #f0b232;
}
.loja-creditos-label {
  font-weight: 500;
  color: var(--texto-fraco);
}
.loja-faixas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.loja-faixa-card {
  background: var(--bg-elevado, #2b2d31);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
}
.loja-faixa-card.equipada {
  border-color: var(--marca);
}
.loja-faixa-mock {
  padding: 14px 12px 8px;
  background: #1e1f22;
}
.loja-faixa-mock-bg {
  height: 52px;
  border-radius: 8px;
  background: #111214 center/cover no-repeat;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
}
.loja-faixa-mock-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,18,20,.75), transparent 60%);
}
.loja-faixa-mock-av,
.loja-faixa-mock-nome {
  position: relative;
  z-index: 1;
}
.loja-faixa-mock-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5865f2;
  flex-shrink: 0;
}
.loja-faixa-mock-nome {
  height: 12px;
  width: 88px;
  border-radius: 6px;
  background: rgba(255,255,255,.55);
}
.loja-faixa-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loja-faixa-nome {
  font-weight: 700;
  color: var(--texto-forte);
  font-size: 15px;
}
.loja-faixa-preco {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--texto-suave);
}
.loja-faixa-preco svg { color: #f0b232; }
.loja-faixa-card.faixa-oculto {
  opacity: 0.55;
}
.faixa-admin-preview {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #1e1f22 center/cover no-repeat;
  display: block;
}
.perfil-faixas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.perfil-faixa-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--bg-entrada);
  cursor: pointer;
  text-align: left;
  color: var(--texto-suave);
}
.perfil-faixa-item:hover { border-color: var(--borda); }
.perfil-faixa-item.ativo { border-color: var(--marca); color: var(--texto-forte); }
.perfil-faixa-thumb {
  height: 36px;
  border-radius: 6px;
  background: #1e1f22 center/cover no-repeat;
}
.perfil-faixa-nenhuma {
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1f22;
  font-size: 18px;
  color: var(--texto-fraco);
}
.perfil-faixa-rotulo {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfg-vanity-usos {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--texto-fraco);
}
.campo-vanity {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-entrada);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 12px;
  overflow: hidden;
}
.campo-vanity:focus-within {
  border-color: var(--marca);
}
.campo-vanity-prefixo {
  flex-shrink: 0;
  color: var(--texto-suave);
  font-size: 14px;
  user-select: none;
}
.campo-vanity input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 !important;
  outline: none;
  color: var(--texto-forte);
  font-size: 14px;
}
.cfg-vanity-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--texto-fraco);
  line-height: 1.4;
  min-height: 1.2em;
}
.botao-link-perigo {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #f23f43;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.botao-link-perigo:hover {
  text-decoration: underline;
}
.botao-link-perigo:disabled {
  opacity: 0.5;
  cursor: default;
  text-decoration: none;
}
.linha-divisor {
  height: 1px;
  background: var(--borda);
  margin: 24px 0;
}

/* Abas */
.abas {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 24px;
}
.aba {
  padding: 12px 0;
  font-size: 16px;
  color: var(--texto-fraco);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms var(--saida), border-color 150ms var(--saida);
}
.aba:hover {
  color: var(--texto-suave);
}
.aba.ativa {
  color: var(--texto-forte);
  border-bottom-color: var(--marca);
}

/* Editor de permissões */
.perm-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--borda);
}
.perm-linha {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.perm-nome {
  font-size: 16px;
  color: var(--texto-forte);
  font-weight: 500;
}
.perm-desc {
  font-size: 14px;
  color: var(--texto-fraco);
  margin-top: 4px;
  max-width: 560px;
}

/* Permissões do canal (estilo Discord) */
.canal-perm-sub {
  color: var(--texto-fraco);
  font-size: 14px;
  margin: -8px 0 20px;
}
.canal-perm-privado {
  background: var(--bg-canais);
  border-radius: 8px;
  padding: 16px;
}
.canal-perm-aviso {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(240, 178, 50, 0.45);
  background: rgba(240, 178, 50, 0.08);
  color: var(--texto-suave);
  font-size: 13px;
  line-height: 1.4;
}
.canal-perm-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 360px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-canais);
}
.canal-perm-cargos {
  border-right: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  min-height: 0;
}
.canal-perm-cargos-topo {
  padding: 12px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-fraco);
}
.canal-perm-cargos-lista {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 6px 8px;
}
.canal-perm-cargo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--texto);
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.canal-perm-cargo .ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.canal-perm-cargo .nome {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.canal-perm-cargo .ow {
  color: var(--marca);
  font-size: 10px;
}
.canal-perm-cargo:hover {
  background: var(--bg-hover);
  color: var(--texto-forte);
}
.canal-perm-cargo.ativo {
  background: var(--bg-ativo, rgba(88, 101, 242, 0.28));
  color: var(--texto-forte);
}
.canal-perm-regras {
  padding: 16px 20px 24px;
  min-height: 0;
  overflow: auto;
}
.canal-perm-cargo-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texto-forte);
  font-size: 16px;
}
.canal-perm-cargo-titulo .ponto {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.perm-tri {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
  background: #1e1f22;
  border-radius: 4px;
  padding: 2px;
}
.perm-tri-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--texto-fraco);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.perm-tri-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--texto-forte);
}
.perm-tri-btn.ativo.negar {
  background: rgba(237, 66, 69, 0.25);
  color: #ed4245;
}
.perm-tri-btn.ativo.herdar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--texto-forte);
}
.perm-tri-btn.ativo.permitir {
  background: rgba(35, 165, 90, 0.25);
  color: #23a55a;
}
@media (max-width: 860px) {
  .canal-perm-layout {
    grid-template-columns: 1fr;
  }
  .canal-perm-cargos {
    border-right: 0;
    border-bottom: 1px solid var(--borda);
    max-height: 180px;
  }
}

.busca {
  position: relative;
  margin-bottom: 20px;
}
.busca input {
  width: 100%;
  background: var(--bg-rail);
  border: none;
  border-radius: 3px;
  padding: 10px 36px 10px 12px;
  color: var(--texto-forte);
  outline: none;
}
.busca .lupa {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-fraco);
  pointer-events: none;
}

/* Cartões e listas */
.cartao {
  background: var(--bg-canais);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.cartao-linha {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cartao-linha .crescer {
  flex: 1;
  min-width: 0;
}
.rotulo-cargo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #232428;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  color: var(--texto);
}
.rotulo-cargo .ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rotulo-cargo .x {
  color: var(--texto-fraco);
  display: flex;
}
.rotulo-cargo .x:hover {
  color: var(--texto-forte);
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--marca);
  color: #fff;
}
.etiqueta.dono {
  background: var(--amarelo);
  color: #1e1f22;
}
.etiqueta.pro {
  background: linear-gradient(135deg, #f0b232, #e67e22);
  color: #1a1a1a;
}
.etiqueta.bot {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.etiqueta.master {
  background: var(--vermelho);
}
.etiqueta.cinza {
  background: #4e5058;
}
.etiqueta.verde {
  background: var(--verde);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tabela th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--texto-fraco);
  padding: 8px 12px;
  border-bottom: 1px solid var(--borda);
  font-weight: 700;
}
.tabela td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--divisor);
  color: var(--texto);
  vertical-align: middle;
}
.tabela tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tabela-cargos .cargo-grip-cel {
  width: 28px;
  padding-left: 4px;
  padding-right: 0;
  color: var(--texto-fraco);
  cursor: grab;
}
.tabela-cargos tr.fixo .cargo-grip-cel {
  cursor: default;
  opacity: 0.35;
}
.tabela-cargos tr.pode-arrastar {
  cursor: grab;
}
.tabela-cargos tr.arrastando,
.nav-lista-cargos .item.arrastando {
  opacity: 0.45;
}
.tabela-cargos tr.alvo-drop td {
  box-shadow: inset 0 2px 0 0 var(--marca, #e10600);
}
.nav-lista-cargos {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-lista-cargos .item.cargo-arrastavel {
  gap: 8px;
}
.nav-lista-cargos .cargo-grip {
  display: flex;
  color: var(--texto-fraco);
  opacity: 0.55;
  flex-shrink: 0;
  cursor: grab;
}
.nav-lista-cargos .item.fixo .cargo-grip {
  opacity: 0.25;
  cursor: default;
}
.nav-lista-cargos .item.pode-arrastar:hover .cargo-grip {
  opacity: 1;
}
.nav-lista-cargos .item.alvo-drop {
  box-shadow: inset 0 2px 0 0 var(--marca, #e10600);
}
.cargo-grip svg {
  width: 14px;
  height: 14px;
}

.vazio-estado {
  text-align: center;
  padding: 48px 24px;
  color: var(--texto-fraco);
}
.vazio-estado svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ============================================================
   AVISOS FLUTUANTES
   ============================================================ */

.avisos {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.aviso {
  background: var(--bg-flutuante);
  color: var(--texto-forte);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--marca);
  max-width: 90vw;
  animation: avisoEntra 250ms var(--saida);
}
.aviso.erro {
  border-left-color: var(--vermelho);
}
.aviso.sucesso {
  border-left-color: var(--verde);
}
@keyframes avisoEntra {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carregando */
.girando {
  animation: girar 800ms linear infinite;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
.carregando-tela {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--texto-fraco);
}
.carregando-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 4px;
}

/* ============================================================
   PÁGINAS DE ENTRADA E CONVITE
   ============================================================ */

.pagina-centro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #0a0a0c;
  background-image: linear-gradient(160deg, #161618 0%, #0e0e10 40%, #0a0a0c 100%);
  overflow-y: auto;
}
.caixa-auth {
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.auth-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.caixa-auth h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--texto-forte);
  text-align: center;
  margin-bottom: 8px;
}
.caixa-auth .sub {
  color: var(--texto-fraco);
  text-align: center;
  margin-bottom: 20px;
  font-size: 15px;
}
.alternar {
  text-align: center;
  margin-top: 4px;
  font-size: 14px;
  color: var(--texto-fraco);
}
.auth-download {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
}
.auth-download .botao {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.auth-download-ajuda {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--texto-fraco);
}
html.app-desktop #bloco-download-win {
  display: none !important;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

.menu-mobile {
  display: none;
}

@media (max-width: 900px) {
  .membros {
    display: none;
  }
  .membros.aberta {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 300;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  }
  .membros.chat-call.aberta {
    display: flex;
    width: min(100vw, 400px);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .menu-mobile {
    display: flex;
  }
  .canais-resize {
    display: none;
  }
  .rail,
  .canais {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 250ms var(--saida);
  }
  .rail {
    left: 0;
  }
  .canais {
    left: 72px;
  }
  .app.gaveta-aberta .rail,
  .app.gaveta-aberta .canais {
    transform: translateX(0);
  }
  .app.gaveta-aberta::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 250;
  }
  .config-nav {
    width: 100%;
    max-width: 200px;
    padding: 24px 8px;
  }
  .config-conteudo {
    padding: 24px 16px 60px;
  }
  .config-fechar {
    top: 16px;
    right: 16px;
  }
  .modal {
    max-height: 94vh;
  }
  .voz-controles {
    padding: 10px 8px;
    gap: 6px;
  }
  .controle {
    width: 44px;
    height: 44px;
  }
}

/* ------------------------------------------------------------
   Social: amigos, DMs, notificações
   ------------------------------------------------------------ */
.rail-item {
  position: relative;
}
.rail-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--vermelho, #da373c);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--bg-app, #1e1f22);
  z-index: 2;
}
.canais-topo-busca {
  cursor: text;
  padding: 0 10px;
}
.canais-topo-busca:hover {
  background: transparent;
}
.canais-topo-busca h1 {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 4px;
  background: #1e1f22;
  color: var(--texto-fraco) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 16px;
}
.social-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #949ba4;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.social-nav-item span:not(.social-nav-badge) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-nav-item:hover,
.social-nav-item.ativo {
  background: rgba(79, 84, 92, 0.4);
  color: #f2f3f5;
}
.social-nav-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}
.social-nav-badge {
  flex: 0 0 auto !important;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f23f43;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.social-nav-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 8px;
}
.social-dm-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 6px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.social-dm-mais {
  border: 0;
  background: transparent;
  color: #949ba4;
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}
.social-dm-mais:hover {
  color: #f2f3f5;
  background: rgba(255, 255, 255, 0.06);
}
.social-dm-mais svg {
  width: 16px;
  height: 16px;
}
.social-dm-lista {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.social-dm-item {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #949ba4;
  border-radius: 4px;
  padding: 2px 4px 2px 8px;
  text-align: left;
}
.social-dm-item:hover,
.social-dm-item.ativo {
  background: rgba(79, 84, 92, 0.4);
  color: #f2f3f5;
}
.social-dm-abrir {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 4px 4px 0;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}
.social-dm-apagar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #949ba4;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  padding: 0;
}
.social-dm-item:hover .social-dm-apagar,
.social-dm-item.ativo .social-dm-apagar {
  opacity: 1;
}
.social-dm-apagar:hover {
  color: #ed4245;
  background: rgba(237, 66, 69, 0.12);
}
.social-dm-apagar svg {
  width: 16px;
  height: 16px;
}
.social-dm-av {
  flex-shrink: 0;
}
.social-dm-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.social-dm-nome {
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-dm-item.nao-lida {
  color: #f2f3f5;
}
.social-dm-item.nao-lida .social-dm-nome {
  font-weight: 700;
}
.social-dm-item.nao-lida .social-dm-sub {
  color: #dbdee1;
}
.social-dm-badge {
  flex-shrink: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: #ed4245;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  margin-left: 4px;
}
.social-dm-sub {
  font-size: 12px;
  color: #949ba4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-dm-item.ativo .social-dm-sub {
  color: #b5bac1;
}
.social-painel {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 32px;
}
.social-secao {
  margin-bottom: 24px;
}
.social-secao h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-fraco);
}
.social-secao-desc {
  color: var(--texto-fraco);
  font-size: 14px;
  margin: -4px 0 16px;
}
.busca-srv-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}
.busca-srv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-entrada, #1e1f22);
}
.busca-srv-icone {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.busca-srv-icone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.busca-srv-meta {
  min-width: 0;
  flex: 1;
}
.busca-srv-nome {
  color: var(--texto-forte);
  font-weight: 600;
  font-size: 15px;
}
.busca-srv-sub {
  color: var(--texto-fraco);
  font-size: 12px;
  margin-top: 2px;
}
.apps-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.app-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-entrada, #1e1f22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-card-icone {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.app-card-icone svg {
  width: 28px;
  height: 28px;
}
.app-card-icone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.app-card-corpo {
  flex: 1;
  min-width: 0;
}
.app-card-nome {
  font-size: 18px;
  font-weight: 700;
  color: var(--texto-forte);
}
.app-card-desc {
  font-size: 14px;
  color: var(--texto-fraco);
  margin: 6px 0 12px;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
}
.app-card-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.membro-bot .nome {
  font-weight: 600;
}
.voz-membro-bot {
  cursor: pointer;
}
.voz-membro-bot .etiqueta.bot {
  margin-left: 2px;
}
#bigdisk-music-host {
  /* Fora da tela, mas com tamanho real — setVolume falha em iframe 1×1 */
  position: fixed;
  width: 180px;
  height: 101px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  left: -240px;
  top: 0;
  z-index: -1;
}
/* Barra flutuante desativada — “Tocando” fica só no painel do bot. */
.music-barra {
  display: none !important;
}
.perfil-bot .perfil-bot-comandos {
  margin-top: 8px;
}
.perfil-bot .bm-vol-box {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: var(--bg-entrada);
  border-radius: 8px;
}
.perfil-bot .bm-vol-box .menu-contexto-volume-linha {
  gap: 8px;
  flex-wrap: wrap;
}
.perfil-bot .bm-vol-box #bm-mute {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  flex-shrink: 0;
}
.perfil-bot-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.perfil-bot-acoes .botao {
  width: 100%;
  justify-content: center;
  height: 34px;
  font-size: 13px;
  padding: 0 10px;
}
.perfil-bot-acoes .bm-parar {
  grid-column: 1 / -1;
}
.perfil-bot .perfil-jogando {
  margin-top: 8px;
}
.perfil-bot .perfil-sobre {
  margin-top: 10px;
}

/* Modal Tocar no YouTube */
.modal.modal-yt {
  width: min(440px, calc(100vw - 32px));
}
.yt-modal-cab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 20px 20px 0;
}
.yt-modal-cab h2 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--texto-forte);
}
.yt-modal-cab p {
  margin: 0;
  font-size: 14px;
  color: var(--texto-fraco);
  line-height: 1.4;
}
.yt-modal-icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.14);
  color: var(--marca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yt-modal-corpo {
  padding-top: 16px;
}
.yt-url-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-rail);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 150ms var(--saida);
}
.yt-url-wrap:focus-within {
  border-color: var(--marca);
}
.yt-url-prefixo {
  color: var(--marca);
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1;
}
.yt-url-wrap input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  color: var(--texto-forte);
  outline: none;
}
.yt-url-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--texto-fraco);
  line-height: 1.35;
}
.yt-url-status.ok {
  color: var(--verde);
}
.yt-url-status.erro {
  color: #fa777c;
}
.yt-preview {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-rail);
}
.yt-preview.oculto {
  display: none !important;
}
.yt-preview img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  flex-shrink: 0;
}
.yt-preview-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-forte);
}
.yt-preview-id {
  margin-top: 4px;
  font-size: 12px;
  color: var(--texto-fraco);
  word-break: break-all;
}

/* Configurações do usuário (estilo Discord) */
.user-cfg-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 12px;
}
.user-cfg-topo-avatar {
  flex-shrink: 0;
}
.user-cfg-topo-nome {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-forte);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.user-cfg-topo-editar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-link);
}
.user-cfg-topo-editar:hover {
  text-decoration: underline;
}
.user-cfg-topo-editar svg {
  width: 12px;
  height: 12px;
}
.user-perfil-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.user-perfil-previa-card {
  position: sticky;
  top: 0;
}
.user-perfil-mini {
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.user-avatar-hover {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 120ms var(--saida);
  pointer-events: none;
}
@media (max-width: 900px) {
  .user-perfil-layout {
    grid-template-columns: 1fr;
  }
  .user-perfil-previa-card {
    position: static;
    order: -1;
  }
}
.music-barra-icone {
  display: flex;
  color: #e10600;
  flex-shrink: 0;
}
.music-barra-txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-barra-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.music-barra-mute {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f3f5;
  cursor: pointer;
}
.music-barra-mute:hover {
  background: rgba(255, 255, 255, 0.14);
}
#bigdisk-music-vol {
  width: 96px;
  accent-color: #e10600;
  cursor: pointer;
}
#bigdisk-music-vol-pct {
  min-width: 36px;
  font-size: 12px;
  color: #b5bac1;
  text-align: right;
}
@media (max-width: 560px) {
  .music-barra {
    flex-wrap: wrap;
    bottom: 64px;
  }
  #bigdisk-music-vol {
    width: 72px;
  }
}
.social-lista {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.social-linha {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.social-linha:hover {
  background: rgba(255, 255, 255, 0.04);
}
.social-linha-avatar {
  flex-shrink: 0;
}
.social-linha-info {
  flex: 1;
  min-width: 0;
}
.social-linha-nome {
  color: var(--texto-forte, #f2f3f5);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-linha-sub {
  color: var(--texto-fraco);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-linha-acoes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.social-linha-acoes .botao {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.social-vazio,
.social-loading {
  color: var(--texto-fraco);
  font-size: 14px;
  padding: 16px 4px;
}
.social-tag {
  color: var(--texto-fraco);
  font-size: 12px;
  padding: 4px 8px;
}
.perfil-privacidade {
  padding: 12px 14px 14px;
}
.perfil-privacidade-titulo {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-fraco);
  margin-bottom: 8px;
}
.perfil-select {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #1e1f22;
  color: #f2f3f5;
  padding: 0 10px;
  font-size: 14px;
}
.social-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 4px;
  color: var(--texto-forte, #f2f3f5);
  font-size: 14px;
  cursor: pointer;
}
.social-toggle input {
  margin-top: 3px;
}
.social-toggle-perigoso {
  color: #f23f43;
}
.msg-link {
  color: #00a8fc;
  text-decoration: none;
  word-break: break-all;
}
.msg-link:hover {
  text-decoration: underline;
}
.msg-previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-width: 420px;
}
.msg-prev {
  display: flex;
  gap: 12px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-left: 4px solid #ed4245;
  border-radius: 4px;
  overflow: hidden;
  min-height: 72px;
}
.msg-prev:hover {
  background: #32353b;
}
.msg-prev-yt {
  border-left-color: #ff0033;
}
.msg-prev-thumb {
  width: 120px;
  min-height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e1f22;
}
.msg-prev-ico {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5bac1;
  background: #1e1f22;
  flex-shrink: 0;
}
.msg-prev-ico svg {
  width: 22px;
  height: 22px;
}
.msg-prev-meta {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.msg-prev-site {
  font-size: 12px;
  font-weight: 700;
  color: #00a8fc;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.msg-prev-titulo {
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.msg-mencao {
  background: rgba(88, 101, 242, 0.25);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
}
.msg-mencao.msg-voce,
.msg-mencao.msg-everyone {
  background: rgba(250, 168, 26, 0.25);
  color: #fcd47c;
}
.msg-mencao.msg-mencao-clicavel {
  cursor: pointer;
}
.msg-mencao.msg-mencao-clicavel:hover {
  text-decoration: underline;
  filter: brightness(1.08);
}
.msg.msg-destacada {
  background: rgba(250, 168, 26, 0.08);
  box-shadow: inset 2px 0 0 #faa81a;
}

/* DM estilo Discord */
.dm-topo-at {
  color: var(--texto-fraco);
  margin-right: 2px;
  font-weight: 600;
}
.dm-welcome {
  padding: 16px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}
.dm-welcome-avatar {
  margin-bottom: 12px;
}
.dm-welcome-nome {
  font-size: 32px;
  font-weight: 800;
  color: var(--texto-forte, #f2f3f5);
  line-height: 1.1;
}
.dm-welcome-handle {
  color: var(--texto-fraco);
  font-size: 16px;
  margin: 4px 0 12px;
}
.dm-welcome-texto {
  color: var(--texto-normal, #dbdee1);
  font-size: 15px;
  margin: 0 0 14px;
  max-width: 560px;
  line-height: 1.4;
}
.dm-welcome-mutuos {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto-fraco);
  font-size: 13px;
  margin-bottom: 14px;
}
.dm-mutuos-icones {
  display: flex;
  align-items: center;
}
.dm-mutuos-icones img,
.dm-mutuo-letra {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: -6px;
  border: 2px solid var(--bg-chat, #313338);
}
.dm-mutuo-letra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.dm-welcome-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dm-welcome-acoes .botao {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
.chat-caixa-dm {
  gap: 8px;
}
.chat-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texto-fraco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.chat-ico:hover {
  color: var(--texto-forte, #f2f3f5);
  background: rgba(255, 255, 255, 0.06);
}
.chat-ico-gif {
  width: auto;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.msg-anexo {
  margin-top: 6px;
  max-width: min(420px, 100%);
}
.msg-anexo img,
.msg-anexo-img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}
.msg-anexo-arq a {
  color: #00a8fc;
  text-decoration: none;
  font-size: 14px;
}
.msg-anexo-arq a:hover {
  text-decoration: underline;
}
.dm-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.dm-gif-item {
  border: 0;
  padding: 0;
  background: #1e1f22;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.dm-gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dm-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}
.dm-emoji {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #2b2d31;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dm-emoji:hover {
  background: #35373c;
}
.emoji-picker-corpo {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-top: 8px;
}
.emoji-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.emoji-cat {
  border: 0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #2b2d31;
  color: #b5bac1;
  cursor: pointer;
}
.emoji-cat:hover {
  background: #35373c;
  color: #f2f3f5;
}
.emoji-cat.ativo {
  background: rgba(225, 6, 0, 0.22);
  color: #fff;
}
.chat-contador {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-fraco);
  min-width: 52px;
  text-align: right;
}
.chat-contador.perto {
  color: var(--amarelo, #f0b232);
}
.chat-contador.cheio {
  color: var(--vermelho, #e10600);
}

/* BIGDISK ROLES — cards no chat */
.roles-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 16px 16px;
}
.roles-card {
  position: relative;
  background: #1e1f22;
  border: 1px solid #2a2a2e;
  border-left: 4px solid #1a3a5c;
  border-radius: 8px;
  padding: 14px;
  max-width: 520px;
}
.roles-card-excluir {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #1e1f22;
  color: #b5bac1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.roles-card:hover .roles-card-excluir {
  display: inline-flex;
}
.roles-card-excluir:hover {
  color: #ed4245;
  background: #2b2d31;
}
.roles-card-excluir svg {
  width: 16px;
  height: 16px;
}
.roles-card-titulo {
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 6px;
}
.roles-card-corpo {
  font-size: 14px;
  color: #dbdee1;
  white-space: pre-wrap;
  margin-bottom: 10px;
}
.roles-card-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.roles-card-reacoes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.roles-card-reacoes .msg-reacao {
  margin: 0;
}
.roles-emoji-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
}
.roles-emoji-chip {
  width: 40px;
  height: 36px;
  border: 1px solid #3f4147;
  border-radius: 8px;
  background: #2b2d31;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.roles-emoji-chip:hover {
  border-color: #5865f2;
  background: #35373c;
}
.roles-card-meta {
  font-size: 12px;
  color: #949ba4;
  margin-top: 8px;
}
.roles-card-int.pos-direita {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.roles-card-int.pos-direita .roles-card-main {
  flex: 1;
  min-width: 0;
}
.roles-card-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  display: block;
  margin-top: 10px;
  object-fit: cover;
}
.roles-card-int.pos-direita .roles-card-img {
  width: 140px;
  height: 140px;
  margin-top: 0;
  flex-shrink: 0;
}
.roles-enq-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.roles-enq-op {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: #2b2d31;
  color: #f2f3f5;
  cursor: pointer;
  overflow: hidden;
}
.roles-enq-op:hover:not(:disabled) {
  background: #35373c;
}
.roles-enq-op.meu {
  outline: 1px solid #5865f2;
}
.roles-enq-op-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(88, 101, 242, 0.25);
  z-index: 0;
}
.roles-enq-op-txt,
.roles-enq-op-pct {
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.roles-enq-op-pct {
  color: #b5bac1;
  flex-shrink: 0;
}
.roles-acoes-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.roles-enq-ops {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roles-enq-op-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.roles-enq-op-row input {
  flex: 1;
}

