/* Central da Conta + Servidores -- a tela pos-login do Legado dos Campeoes.
 *
 * POR QUE CSS PROPRIO E NAO TAILWIND: o tema veio do site oficial com o Tailwind
 * JA COMPILADO E PURGADO (assets/css/style_ver=1.0.0.css), e a captura de 27/08
 * foi feita DESLOGADA -- entao as classes que so existem na tela logada
 * (bg-gray-800, md:w-8/12, bg-green-500/20, group-hover:*) nao entraram no
 * arquivo. Escrever `bg-gray-800` aqui nao pintaria nada.
 *
 * Todo valor abaixo foi LIDO do site oficial logado em 21/09/2026, com
 * getComputedStyle na propria pagina -- nao e medicao em pixel nem chute:
 *
 *   cartao      bg #1F2937, radius 8px, padding 24px, respiro de 20px entre eles
 *   titulo      #FB923C (orange-400), 20px/28px, peso 700, margem de baixo 24px
 *   item        bg #374151, radius 8px, padding 12px -> 56px de altura
 *   rotulo      #FFF, 16px, peso 500
 *   icone       32x32, circulo, cor-base a 20%, margem direita 12px
 *   seta        #9CA3AF, 16px (vira #FB923C no hover da linha)
 *   deslogar    bg red-500/10 + borda 0.8px red-500/20
 *   servidor    64px de altura, bolinha de 6px e "Online" em 12px
 *   colunas     8/12 e 4/12 com 40px de gap (da 795 + 397 num container de 1232)
 *   cabecalho   nome 14px/700 maiusculo, creditos 16px/600 #F0B341,
 *               avatar 56px com borda 0.8px #F0B341
 */

/* ---------------------------------------------------------------- cabecalho */

.lc-user {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color .2s ease;
}
.lc-user:hover { background: rgba(50, 80, 110, .3); }

.lc-user-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 0.8px solid #f0b341;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-user-avatar img { width: 20px; height: 20px; }

.lc-user-dados { text-align: left; }
.lc-user-nome {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  margin: 0;
}
.lc-user-creditos {
  color: #f0b341;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.lc-user-seta {
  color: #fff;
  font-size: 16px;
  margin-left: 8px;
  transition: transform .2s ease;
}
.lc-user-wrap.is-aberto .lc-user-seta { transform: rotate(180deg); }

/* O botao dourado e o `.btn .btn-gold` que ja existe no tema; so a moeda e nova. */
.lc-recarga { display: inline-flex; align-items: center; gap: 12px; }
.lc-recarga img { width: 20px; height: auto; }
.lc-recarga-caixa { display: inline-block; padding: 8px 0; }

/* menu do chevron -- os mesmos atalhos, para quem nao esta na home */
.lc-user-wrap { position: relative; }
.lc-user-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 256px;
  background: #0f2139;
  border: 1px solid #32506e;
  border-radius: 8px;
  padding: 8px 0;
  z-index: 60;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.lc-user-wrap.is-aberto .lc-user-menu { opacity: 1; visibility: visible; transform: none; }
.lc-user-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease;
}
.lc-user-menu button:hover { background: rgba(50, 80, 110, .5); }
.lc-user-menu .fa-fw { width: 20px; text-align: center; color: #f0b341; }

/* ------------------------------------------------------- layout da home */

.lc-wrap { padding: 48px 0; overflow-x: hidden; }

.lc-row { display: flex; flex-direction: column-reverse; gap: 24px; }
.lc-col { width: 100%; min-width: 0; }
/* align-content:start para os cartoes manterem a altura natural. No oficial a
   coluna das noticias e a da conta tinham a mesma altura por acaso (6 servidores);
   com um servidor so, sem isto o primeiro cartao estica e sobra um vazio enorme. */
.lc-aside { width: 100%; min-width: 0; display: grid; gap: 16px; align-content: start; }

@media (min-width: 768px) {
  .lc-row { flex-direction: row; justify-content: space-between; gap: 40px; }
  /* 8/12 e 4/12 com shrink padrao: da 795 + 397 dentro do container de 1232 */
  .lc-col   { flex: 0 1 66.666667%; }
  .lc-aside { flex: 0 1 33.333333%; gap: 20px; }
  /* Logado a coluna estreita, entao as noticias caem de tres para duas por linha */
  .lc-col .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------- cartao */

.lc-card {
  background: #1f2937;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}
.lc-card-tit {
  color: #fb923c;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .lc-card { padding: 24px; }
  .lc-card-tit { font-size: 20px; margin-bottom: 24px; }
}

.lc-lista { display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------- item da Central da Conta */

.lc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #374151;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.lc-item:hover { background: #4b5563; }
.lc-item:hover .lc-seta { color: #fb923c; }
.lc-item-esq { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.lc-item-txt {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-seta { color: #9ca3af; font-size: 16px; flex: 0 0 auto; margin-left: 8px; transition: color .2s ease; }

.lc-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-right: 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.lc-ico-verde  { background: rgba(34, 197, 94, .2);  color: #4ade80; }
.lc-ico-azul   { background: rgba(59, 130, 246, .2); color: #60a5fa; }
.lc-ico-amarelo{ background: rgba(234, 179, 8, .2);  color: #facc15; }
.lc-ico-roxo   { background: rgba(168, 85, 247, .2); color: #c084fc; }
.lc-ico-verm   { background: rgba(239, 68, 68, .2);  color: #f87171; }

.lc-item-sair {
  background: rgba(239, 68, 68, .1);
  border: 0.8px solid rgba(239, 68, 68, .2);
  padding: 11.2px;      /* 12 menos a borda, para a altura continuar 56 */
}
.lc-item-sair:hover { background: rgba(239, 68, 68, .2); }
.lc-item-sair:hover .lc-seta { color: #f87171; }

/* -------------------------------------------------------- item de servidor */

.lc-serv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: #374151;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}
.lc-serv:hover { background: #4b5563; }
.lc-serv:hover .lc-serv-ir { color: #fb923c; }

.lc-serv-dados { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.lc-serv-nome {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-serv-estado {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
  min-width: 0;
}
.lc-serv-bolinha {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-right: 4px;
  border-radius: 9999px;
  animation: lc-pulsar 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes lc-pulsar { 50% { opacity: .5; } }

.lc-serv-ir { color: #9ca3af; font-size: 16px; flex: 0 0 auto; margin-left: 8px; transition: color .2s ease; }

.lc-on  { color: #4ade80; }
.lc-on  .lc-serv-bolinha { background: #4ade80; }
.lc-off { color: #9ca3af; }
.lc-off .lc-serv-bolinha { background: #9ca3af; animation: none; }

.lc-serv.is-off { opacity: .6; cursor: not-allowed; }
.lc-serv.is-off:hover { background: #374151; }
.lc-serv.is-off:hover .lc-serv-ir { color: #9ca3af; }

.lc-rodape-caixa { margin-top: 16px; text-align: center; }
.lc-rodape {
  color: #fb923c;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.lc-rodape:hover { color: #fdba74; }

.lc-vazio { color: #9ca3af; font-size: 14px; }

/* --------------------------------------------------------------- mobile */

/* No menu lateral do celular o oficial troca os cartoes por um cabecalho com o
   saldo e tres botoes. Mesma coisa aqui, com o Painel Admin no meio. */
.lc-mob-topo {
  background: linear-gradient(to right, rgba(249, 115, 22, .1), rgba(234, 88, 12, .05));
  border: 1px solid rgba(249, 115, 22, .2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.lc-mob-botoes { display: flex; flex-direction: column; gap: 12px; }
.lc-mob-botoes button {
  padding: 12px 16px;
  border-radius: 4px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  cursor: pointer;
}
.lc-mob-1 { background: #f0b341; }
.lc-mob-2 { background: #132a46; border: 1px solid #4b5563; font-weight: 400; }
.lc-mob-3 { background: #dc2626; }

/* ------------------------------------------------------------------ modal */

.lc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 70;
  display: none;
  overflow-y: auto;      /* overlay rolavel: o conteudo nunca fica preso fora da tela */
  padding: 40px 16px;
}
.lc-modal.is-aberto { display: block; }
.lc-modal-caixa {
  background: #0f2139;
  border-radius: 10px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  color: #fff;
}
.lc-modal-tit {
  color: #fb923c;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.lc-modal-txt { color: #cbd5e1; font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.lc-modal label { display: block; font-size: 13px; color: #cbd5e1; margin: 0 0 6px; }
.lc-modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  background: #132a48;
  border: 1px solid #374151;
  color: #fff;
  margin-bottom: 14px;
  font-size: 15px;
}
.lc-modal input:focus { outline: none; border-color: #f0b341; }
.lc-modal-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.lc-modal-acoes button {
  padding: 11px 20px;
  border-radius: 6px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.lc-bt-ok { background: #f0b341; color: #4a340b; }
.lc-bt-ok:hover { background: #ffa459; }
.lc-bt-ok[disabled] { opacity: .6; cursor: default; }
.lc-bt-nao { background: #374151; color: #fff; }
.lc-bt-nao:hover { background: #4b5563; }
.lc-modal-msg { font-size: 14px; margin: 0 0 12px; min-height: 18px; }
.lc-modal-msg.erro { color: #f87171; }
.lc-modal-msg.ok { color: #4ade80; }
