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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0f19;
  color: #f5f5f5;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* CABEÇALHO */

.header {
  width: 100%;
  min-height: 70px;
  padding: 16px 6%;
  background: #101625;
  border-bottom: 1px solid #252d40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header nav a {
  color: #d5d9e5;
  text-decoration: none;
  font-size: 14px;
}

.header nav a:hover {
  color: #9a86ff;
}

.header nav > button {
  background: #7c5cff;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: bold;
}

/* NOTIFICAÇÕES */

.area-notificacoes {
  position: relative;
  display: flex;
  align-items: center;
}

.header nav .botao-notificacoes {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #303950;
  border-radius: 50%;
  background: #1a2335;
  color: #fff;
}

.botao-notificacoes:hover {
  background: #29344b;
}

.icone-sino {
  display: block;
}

.contador-notificacoes {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 2px 5px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #e94455;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border: 2px solid #101625;
}

.painel-notificacoes {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 50;
  width: min(340px, calc(100vw - 30px));
  max-height: 420px;
  overflow-y: auto;
  padding: 15px;
  background: #141c2c;
  border: 1px solid #303950;
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
}

.topo-notificacoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #303950;
}

.topo-notificacoes h3 {
  font-size: 16px;
}

.header nav .topo-notificacoes button {
  padding: 5px 9px;
  background: transparent;
  color: #aeb6c8;
  border: none;
  font-size: 18px;
}

.notificacao-item {
  padding: 12px;
  margin-bottom: 9px;
  background: #1b2639;
  border: 1px solid #303950;
  border-radius: 9px;
  overflow-wrap: anywhere;
}

.notificacao-item h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.notificacao-item p {
  color: #b8c0d0;
  font-size: 12px;
  line-height: 1.5;
}

.notificacao-item.aprovada {
  border-left: 3px solid #20c46b;
}

.notificacao-item.recusada {
  border-left: 3px solid #e65a68;
}

.notificacoes-vazias {
  padding: 15px 5px;
  color: #aeb6c8;
  text-align: center;
  font-size: 13px;
}

/* INÍCIO */

.hero {
  text-align: center;
  padding: 85px 20px 55px;
  background:
    radial-gradient(ellipse at top, #28204e 0%, transparent 65%);
}

.badge {
  display: inline-block;
  color: #b8a9ff;
  background: #211b3d;
  border: 1px solid #493b80;
  padding: 9px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 52px);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.hero p {
  color: #aeb6c8;
  font-size: 16px;
  margin-bottom: 28px;
}

.search {
  max-width: 550px;
  margin: auto;
}

.search input {
  width: 100%;
  padding: 16px 19px;
  border-radius: 12px;
  border: 1px solid #303950;
  background: #141c2c;
  color: white;
  outline: none;
}

.search input:focus,
input:focus,
select:focus {
  border-color: #7c5cff;
}

/* FIGURINHAS PÚBLICAS */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 35px 6% 65px;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.topo h2 {
  font-size: 23px;
}

.topo span {
  color: #9c8aff;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.card {
  background: #141c2c;
  border: 1px solid #273249;
  border-radius: 15px;
  padding: 13px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #7c5cff;
}

.figurinha-linha {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #080c14;
  border-radius: 10px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audio-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 43px;
  height: 43px;
  border: none;
  border-radius: 50%;
  background: #7c5cff;
  color: white;
  font-size: 19px;
}

/* FIGURINHAS COMPACTAS NA PÁGINA PRINCIPAL */

.grid .figurinha-linha {
  width: 110px;
  height: 110px;
  aspect-ratio: 1 / 1;
  margin: 5px auto 12px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.grid .card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid .audio-btn {
  width: 32px;
  height: 32px;
  right: 5px;
  bottom: 5px;
  font-size: 15px;
}

.card h3 {
  font-size: 15px;
  margin: 13px 3px 5px;
  overflow-wrap: anywhere;
}

.card p {
  color: #b8c0d0;
  font-size: 13px;
  margin: 8px 3px;
}

/* STATUS DAS FIGURINHAS */

.status-aprovado {
  display: inline-block;
  width: fit-content;
  margin: 7px 3px 2px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #123d29;
  color: #55e58b;
  font-size: 10px;
  font-weight: bold;
}

.status-recusada {
  display: inline-block;
  width: fit-content;
  margin: 7px 3px 2px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #4a1d27;
  color: #ff9da8;
  font-size: 10px;
  font-weight: bold;
}

.motivo-recusa {
  display: block;
  margin: 8px 3px;
  padding: 9px;
  border-left: 3px solid #e65a68;
  border-radius: 5px;
  background: #351c27;
  color: #ffb4bc;
  font-size: 12px;
  line-height: 1.5;
}

.botao-apagar-figurinha {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #9f3441;
  border-radius: 8px;
  background: #4a1d27;
  color: #ffb4bc;
  font-size: 12px;
  font-weight: bold;
}

.botao-apagar-figurinha:hover {
  background: #702733;
}

.status-pendente {
  display: inline-block;
  margin: 7px 3px 2px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #3b3218;
  color: #f4d36e;
  font-size: 10px;
  font-weight: bold;
}

.vazio {
  text-align: center;
  padding: 55px 15px;
  color: #aeb6c8;
}

.vazio div {
  font-size: 40px;
  margin-bottom: 12px;
}

.vazio h3 {
  color: white;
  margin-bottom: 8px;
}

/* PAINÉIS */

.painel {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .82);
  overflow-y: auto;
  padding: 25px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.painel-conteudo {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: auto;
  padding: 30px;
  background: #141c2c;
  border: 1px solid #303950;
  border-radius: 17px;
}

.painel-conteudo h2 {
  font-size: 25px;
  margin-bottom: 12px;
}

.painel-conteudo > p {
  color: #aeb6c8;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.fechar {
  position: absolute;
  top: 14px;
  right: 15px;
  border: none;
  background: transparent;
  color: white;
  font-size: 23px;
}

/* FORMULÁRIOS */

.painel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.painel label {
  color: #d9deeb;
  font-size: 13px;
  font-weight: bold;
}

.painel input,
.painel select {
  width: 100%;
  padding: 13px;
  background: #0b1220;
  color: white;
  border: 1px solid #35415a;
  border-radius: 9px;
  outline: none;
}

.painel input[type="file"] {
  font-size: 12px;
}

.botao-principal,
.botao-secundario,
.botao-sair {
  padding: 13px 17px;
  border: none;
  border-radius: 9px;
  font-weight: bold;
  transition: opacity .2s, background .2s, border-color .2s;
}

.botao-principal {
  background: #7c5cff;
  color: white;
}

.botao-secundario {
  background: #273249;
  color: white;
  border: 1px solid #3b4964;
}

.botao-sair {
  background: #151515;
  color: white;
}

.botao-principal:hover,
.botao-secundario:hover,
.botao-sair:hover {
  opacity: .85;
}

.botao-principal:disabled,
.botao-secundario:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#trocarConta {
  color: #aeb6c8;
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
}

#alternarConta {
  color: #a895ff;
  background: none;
  border: none;
  font-weight: bold;
}

#mensagemConta,
#mensagemCriar {
  font-size: 13px;
  margin-top: 14px;
}

.resultado-link {
  background: #202b40;
  padding: 12px;
  border-radius: 8px;
  color: #b9e8c8;
  font-size: 13px;
  line-height: 1.5;
}

.separador {
  text-align: center;
  color: #8e9bb1;
  font-size: 11px;
  font-weight: bold;
  padding: 15px 0 5px;
}

#previaVideo {
  width: 100%;
  max-height: 280px;
  background: #000;
  border-radius: 10px;
}

.aviso {
  color: #aeb6c8;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
}

/* EDITOR DE FIGURINHAS */

.editor-figurinha {
  width: 100%;
  margin: 12px 0;
  padding: 16px;
  background: #0b1220;
  border: 1px solid #303950;
  border-radius: 14px;
}

.editor-figurinha h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.editor-figurinha > p {
  color: #aeb6c8;
  font-size: 13px;
  line-height: 1.5;
}

.previa-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.area-previa {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  background: #000;
  border: 2px solid #493b80;
  border-radius: 13px;
  overflow: hidden;
  touch-action: pan-y;
}

#videoPrevia {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.area-previa.modo-mover {
  border: 2px dashed #9a86ff;
  cursor: move;
  touch-action: none;
}

.area-previa.modo-mover video {
  pointer-events: none;
  user-select: none;
}

.texto-editor {
  text-align: center;
  margin-bottom: 12px;
}

.opcoes-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.opcoes-editor button {
  min-height: 46px;
  padding: 11px 8px;
  font-size: 13px;
}

#btnPreencher.ativo {
  background: #5940c9;
  outline: 2px solid #a895ff;
}

#btnMoverVideo.ativo {
  background: #453579;
  border: 1px solid #a895ff;
  color: #d8ceff;
}

#mensagemEditor {
  min-height: 35px;
  text-align: center;
  color: #b8a9ff;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.5;
}

#enviarParaFila {
  width: 100%;
  margin-top: 8px;
  background: #19a85b;
  color: white;
}

#enviarParaFila:hover {
  background: #138747;
}

/* AUTORIZAÇÃO */

.aviso-autorizacao {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.painel .aviso-autorizacao input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: #7c5cff;
}

/* PERFIL */

.perfil {
  min-height: 80vh;
  padding-bottom: 60px;
  background: #19b85b;
  color: #080808;
}

.perfil-topo {
  padding: 55px 20px 35px;
  text-align: center;
}

.avatar {
  width: 85px;
  height: 85px;
  margin: auto auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8ffe9;
  font-size: 38px;
}

.perfil-topo h2 {
  font-size: 27px;
  margin-bottom: 6px;
}

.perfil-topo p {
  font-size: 14px;
  margin-bottom: 22px;
}

.botao-criar {
  display: block;
  margin: auto auto 12px;
  padding: 14px 25px;
  border: none;
  border-radius: 10px;
  background: #080808;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
}

.perfil .botao-sair {
  background: #e7ffe9;
  color: #111;
}

.perfil-lista {
  max-width: 1100px;
  margin: auto;
  padding: 20px 6%;
}

.perfil-lista h2 {
  margin-bottom: 20px;
}

.perfil-lista .card {
  background: #eaffed;
  border-color: #087c37;
  color: #080808;
}

.perfil-lista .card p {
  color: #175a2c;
}

/* ÁREA DO MODERADOR */

.titulo-moderador {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 25px;
  margin-bottom: 15px;
}

.titulo-moderador h2 {
  margin: 0;
}

.botao-mostrar-senha {
  padding: 7px 10px;
  border: 1px solid #594b91;
  border-radius: 7px;
  background: #282044;
  color: #c8baff;
  font-size: 11px;
  font-weight: bold;
}

.botao-mostrar-senha:hover {
  background: #3a2d65;
}

#painelPendentes {
  margin-top: 22px;
}

#painelPendentes h3 {
  margin-bottom: 15px;
}

#listaPendentes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 15px;
  align-items: start;
}

#listaPendentes .card {
  width: 100%;
  max-width: 220px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#listaPendentes .card video,
#listaPendentes .card .figurinha-linha {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 10px auto;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

#listaPendentes .card button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 11px;
  border-radius: 8px;
  font-weight: bold;
}

#listaPendentes .card button:first-of-type {
  background: #168b4b;
  color: #fff;
  border: none;
}

#listaPendentes .card button:last-of-type {
  background: #4a1d27;
  color: #ffb4bc;
  border: 1px solid #9f3441;
}

#listaPendentes .card button:hover {
  opacity: .85;
}

/* SOBRE E RODAPÉ */

.sobre {
  padding: 55px 20px;
  text-align: center;
  background: #101625;
}

.sobre h2 {
  margin-bottom: 12px;
}

.sobre p {
  color: #aeb6c8;
  font-size: 14px;
}

footer {
  padding: 25px 15px;
  text-align: center;
  color: #8e9bb1;
  background: #080c14;
  font-size: 13px;
}

/* CELULAR */

@media (max-width: 600px) {
  .header {
    padding: 15px 4%;
  }

  .logo {
    font-size: 17px;
  }

  .header nav {
    gap: 13px;
    flex-wrap: wrap;
  }

  .header nav a {
    font-size: 12px;
  }

  .header nav > button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 65px 18px 40px;
  }

  .container {
    padding: 30px 4% 50px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card {
    padding: 9px;
  }

  .card h3 {
    font-size: 13px;
  }

  .grid .figurinha-linha {
    width: 90px;
    height: 90px;
  }

  .grid .audio-btn {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }

  .painel-conteudo {
    padding: 25px 19px;
  }

  .topo h2 {
    font-size: 18px;
  }

  .editor-figurinha {
    padding: 12px;
  }

  .area-previa {
    width: min(100%, 260px);
  }

  .opcoes-editor {
    grid-template-columns: 1fr;
  }

  .opcoes-editor button {
    min-height: 48px;
    font-size: 14px;
  }

  .painel-notificacoes {
    right: -80px;
    max-height: 65vh;
  }

  .titulo-moderador {
    padding-right: 25px;
  }

  .titulo-moderador h2 {
    font-size: 21px;
  }

  #listaPendentes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #listaPendentes .card {
    max-width: none;
    padding: 9px;
  }

  #listaPendentes .card video,
  #listaPendentes .card .figurinha-linha {
    max-width: 120px;
  }
}

/* =========================================
   CARDS DO PERFIL
   DUAS COLUNAS + VÍDEO + BOTÃO DE SOM
========================================= */

.perfil-lista {
  color: #fff;
}

#minhasFigurinhas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.perfil-lista .figurinha-card {
  width: 100%;
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #191d20;
  color: #f5f5f5;
  border: 1px solid #292e32;
  border-radius: 18px;
  overflow: hidden;
}

.perfil-lista .figurinha-card:hover {
  transform: none;
  border-color: #3a4146;
}

.perfil-lista .figurinha-card h3 {
  width: 100%;
  margin: 0 0 10px;
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ÁREA DO VÍDEO */

.figurinha-video-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 13px;
  background: #000;
}

.perfil-lista .figurinha-card .figurinha-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: 13px;
}

/* BOTÃO DE SOM */

.figurinha-som {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: white;
  font-size: 23px;
  cursor: pointer;
  z-index: 2;
}

.figurinha-som:hover {
  background: rgba(0, 0, 0, .85);
}

/* STATUS */

.perfil-lista .figurinha-card .status-aprovado,
.perfil-lista .figurinha-card .status-recusada,
.perfil-lista .figurinha-card .status-pendente {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 5px;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  text-transform: lowercase;
}

.perfil-lista .figurinha-card .status-aprovado {
  background: #073c24;
  color: #39d77b;
}

.perfil-lista .figurinha-card .status-recusada {
  background: #481b20;
  color: #ff777e;
}

.perfil-lista .figurinha-card .status-pendente {
  background: #403318;
  color: #f3c66b;
}

/* MOTIVO DA RECUSA */

.perfil-lista .figurinha-card .motivo-recusa {
  width: 100%;
  margin: 8px 0;
  padding: 9px;
  color: #ff999e;
  background: #351c27;
  border-left: 3px solid #e65a68;
  border-radius: 7px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* BOTÃO APAGAR */

.perfil-lista .figurinha-card .botao-apagar-figurinha {
  display: block;
  width: 100%;
  min-height: 43px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #493036;
  border-radius: 12px;
  background: transparent;
  color: #ff777e;
  font-size: 14px;
  font-weight: bold;
}

.perfil-lista .figurinha-card .botao-apagar-figurinha:hover {
  background: #292022;
}

.perfil-lista .figurinha-card .botao-apagar-figurinha:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* RESPONSIVIDADE DO PERFIL */

@media (max-width: 600px) {
  #minhasFigurinhas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .perfil-lista {
    padding: 15px 4%;
  }

  .perfil-lista .figurinha-card {
    padding: 8px;
    border-radius: 15px;
  }

  .perfil-lista .figurinha-card h3 {
    font-size: 14px;
  }

  .figurinha-video-area {
    border-radius: 11px;
  }

  .figurinha-som {
    width: 36px;
    height: 36px;
    right: 6px;
    bottom: 6px;
    font-size: 19px;
  }

  .perfil-lista .figurinha-card .status-aprovado,
  .perfil-lista .figurinha-card .status-recusada,
  .perfil-lista .figurinha-card .status-pendente {
    padding: 6px 9px;
    font-size: 11px;
  }

  .perfil-lista .figurinha-card .botao-apagar-figurinha {
    min-height: 38px;
    font-size: 12px;
  }
}
