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

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

.app {
  min-height: 100vh;
}

.tela {
  display: none;
  min-height: 100vh;
  padding: 16px;
}

.tela-ativa {
  display: flex;
}

#tela-login,
#tela-cadastro,
#tela-novo-projeto {
  justify-content: center;
  align-items: center;
}

.card-login {
  width: 100%;
  max-width: 430px;
  background: #07111f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 22px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.logo-login {
  width: 92px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.card-login h1 {
  font-size: 34px;
  color: #735cff;
  margin-bottom: 8px;
}

.card-login p {
  font-size: 16px;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 18px;
}

.botao-google {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 13px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 18px;
}

.divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.divisor span {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.16);
}

.divisor p {
  margin: 0;
  font-size: 14px;
  color: #9db2d6;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 11px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #050b14;
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

input::placeholder {
  color: #9fb0d6;
}

select {
  color: #9fb0d6;
}

.botao-principal {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #33c4ff, #7a5cff, #b84dff);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.botao-link {
  margin-top: 13px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.mensagem-cadastro {
  display: none;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
}

.mensagem-cadastro.erro {
  display: block;
  background: rgba(255, 80, 80, 0.14);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb4b4;
}

.mensagem-cadastro.sucesso {
  display: block;
  background: rgba(51, 196, 255, 0.14);
  border: 1px solid rgba(51, 196, 255, 0.35);
  color: #9ee8ff;
}

#tela-projetos {
  background: #0d1b2f;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 100px;
}

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

.topo-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topo-logo img {
  width: 64px;
  border-radius: 14px;
}

.topo h1 {
  font-size: 32px;
  color: #ffffff;
}

.topo p {
  color: #9db2d6;
  margin-top: 4px;
}

.botao-sair {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
}

.banner {
  background: linear-gradient(135deg, rgba(51,196,255,0.18), rgba(122,92,255,0.22), rgba(184,77,255,0.16));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.banner h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.banner p {
  color: #dce6ff;
  font-size: 17px;
  line-height: 1.5;
}

.botao-novo {
  min-width: 170px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #33c4ff, #7a5cff, #b84dff);
  color: #ffffff;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
}

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card-projeto {
  background: #07111f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 26px;
  min-height: 250px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.24);
}

.card-criar {
  border-style: dashed;
  cursor: pointer;
}

.icone-mais {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #33c4ff, #7a5cff, #b84dff);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
}

.card-projeto h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.card-projeto p {
  color: #c8d6f5;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: rgba(122,92,255,0.2);
  border: 1px solid rgba(122,92,255,0.45);
  color: #bfb4ff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 18px;
}

.detalhes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #9db2d6;
  margin-bottom: 22px;
}

.botao-card {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  color: #07111f;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.menu-inferior {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 520px;
  background: #07111f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.menu-inferior button,
.menu-inferior a {
  flex: 1;
  background: transparent;
  border: none;
  color: #9db2d6;
  padding: 12px 6px;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-inferior a:hover,
.menu-inferior button:hover {
  color: #ffffff;
  background: rgba(122,92,255,0.18);
}

.menu-inferior button.ativo,
.menu-inferior a.ativo {
  background: linear-gradient(135deg, #33c4ff, #7a5cff, #b84dff);
  color: #ffffff;
}

@media (max-height: 720px) {
  .card-login {
    max-width: 400px;
    padding: 18px 24px;
  }

  .logo-login {
    width: 78px;
    margin-bottom: 8px;
  }

  .card-login h1 {
    font-size: 30px;
    margin-bottom: 6px;
  }

  .card-login p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .botao-google {
    padding: 10px;
    margin-bottom: 14px;
    font-size: 15px;
  }

  .divisor {
    margin-bottom: 14px;
  }

  input,
  select {
    padding: 10px 13px;
    margin-bottom: 9px;
    font-size: 14px;
  }

  .botao-principal {
    padding: 11px;
    margin-top: 8px;
    font-size: 15px;
  }

  .botao-link {
    margin-top: 10px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .tela {
    padding: 14px;
  }

  .topo {
    align-items: flex-start;
    gap: 16px;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .botao-novo {
    width: 100%;
  }
}


/* Tela de boas-vindas / primeiro acesso */
#tela-boas-vindas {
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(51, 196, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(184, 77, 255, 0.16), transparent 38%),
    #0d1b2f;
}

.card-boas-vindas {
  width: 100%;
  max-width: 560px;
  background: #07111f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  padding: 30px 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.logo-boas-vindas {
  width: 128px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto 18px;
}

.card-boas-vindas h1 {
  font-size: 34px;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-boas-vindas h1 span {
  display: block;
  color: #735cff;
}

.texto-destaque-boas-vindas {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.texto-boas-vindas {
  color: #c8d6f5;
  font-size: 15px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto 22px;
}

#btn-comecar-boas-vindas {
  max-width: 240px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .card-boas-vindas {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .logo-boas-vindas {
    width: 112px;
  }

  .card-boas-vindas h1 {
    font-size: 28px;
  }

  .texto-destaque-boas-vindas {
    font-size: 15px;
  }

  .texto-boas-vindas {
    font-size: 13px;
  }
}


/* CORRECAO FINAL BOAS VINDAS */
#tela-boas-vindas.tela-ativa {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding: 16px !important;
}
#tela-boas-vindas .card-boas-vindas {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 26px 28px 22px !important;
  text-align: center !important;
}
#tela-boas-vindas .logo-boas-vindas {
  width: 118px !important;
  max-width: 118px !important;
  height: auto !important;
  max-height: 118px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 16px !important;
  border-radius: 16px !important;
}
#tela-boas-vindas h1 { text-align: center !important; font-size: 30px !important; }
#tela-boas-vindas .texto-destaque-boas-vindas,
#tela-boas-vindas .texto-boas-vindas { text-align: center !important; }
#tela-boas-vindas #btn-comecar-boas-vindas {
  width: 100% !important;
  max-width: 260px !important;
  margin: 0 auto !important;
}
@media (max-width: 560px) {
  #tela-boas-vindas .logo-boas-vindas {
    width: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

/* POLIMENTO MEUS PROJETOS + ARQUITETURA COLABORATIVA */
#tela-projetos .container {
  padding-bottom: 132px;
}

#tela-projetos .banner {
  padding: 18px !important;
  margin-bottom: 16px !important;
}

#tela-projetos .banner h2 {
  font-size: 25px !important;
  margin-bottom: 5px !important;
}

#tela-projetos .banner p {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

#tela-projetos .botao-novo {
  min-height: 36px !important;
  height: 36px !important;
  min-width: 138px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: 11px !important;
}

#tela-projetos .grid-projetos {
  gap: 14px !important;
}

#tela-projetos .card-projeto {
  min-height: 188px !important;
  padding: 16px !important;
  position: relative;
}

#tela-projetos .card-projeto h3 {
  font-size: 21px !important;
  margin-bottom: 7px !important;
}

#tela-projetos .card-projeto p {
  margin-bottom: 10px !important;
}

#tela-projetos .icone-mais {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  font-size: 28px !important;
  margin-bottom: 12px !important;
}

.topo-card-projeto {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.menu-card-projeto {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.detalhes-projeto-card {
  gap: 4px !important;
  margin-bottom: 10px !important;
}

.papel-projeto {
  color: #9ee8ff !important;
  font-weight: 700;
}

.resumo-projeto-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 12px;
}

.resumo-projeto-card span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #dce6ff;
  border-radius: 10px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.acoes-projeto-card {
  display: none;
  position: absolute;
  top: 48px;
  right: 16px;
  z-index: 5;
  min-width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: #050b14;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.acoes-projeto-card.ativo {
  display: grid;
  gap: 6px;
}

.acoes-projeto-card button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255,255,255,.09);
  color: #ffffff;
  text-align: left;
}

.acoes-projeto-card button.acao-perigo {
  background: rgba(255,80,80,.15);
  color: #ffb4b4;
}

#tela-projetos .menu-inferior {
  bottom: 16px !important;
}

@media (max-width: 700px) {
  #tela-projetos .banner {
    flex-direction: column;
    align-items: stretch;
  }

  #tela-projetos .botao-novo {
    width: 100%;
  }

  .resumo-projeto-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* POLIMENTO FINAL - MEUS PROJETOS v0.9.6 */
#tela-projetos.tela-ativa {
  align-items: flex-start !important;
}

#tela-projetos .container {
  max-width: 1040px !important;
  padding-bottom: 28px !important;
}

#tela-projetos .topo {
  margin-bottom: 12px !important;
}

#tela-projetos .topo-logo img {
  width: 50px !important;
  max-height: none !important;
  border-radius: 10px !important;
}

#tela-projetos .topo h1 {
  font-size: 25px !important;
}

#tela-projetos .topo p {
  font-size: 14px !important;
}

#tela-projetos .banner {
  padding: 16px 18px !important;
  margin-bottom: 14px !important;
  border-radius: 22px !important;
}

#tela-projetos .banner h2 {
  font-size: 24px !important;
  margin-bottom: 4px !important;
}

#tela-projetos .banner p {
  font-size: 12px !important;
}

#tela-projetos .grid-projetos {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 12px !important;
}

#tela-projetos .card-projeto {
  min-height: 160px !important;
  padding: 14px !important;
  border-radius: 20px !important;
}

#tela-projetos .card-projeto-listado {
  display: flex !important;
  flex-direction: column !important;
}

#tela-projetos .card-criar {
  min-height: 160px !important;
}

#tela-projetos .icone-mais {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-size: 26px !important;
  margin-bottom: 10px !important;
}

#tela-projetos .card-projeto h3 {
  font-size: 19px !important;
  margin-bottom: 5px !important;
}

#tela-projetos .card-projeto p {
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin-bottom: 7px !important;
}

#tela-projetos .tag {
  font-size: 11px !important;
  padding: 5px 10px !important;
  margin-bottom: 8px !important;
}

#tela-projetos .menu-card-projeto {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
}

#tela-projetos .detalhes-projeto-card {
  gap: 2px !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
}

#tela-projetos .papel-projeto {
  width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: rgba(122, 92, 255, .20) !important;
  border: 1px solid rgba(122, 92, 255, .45) !important;
  color: #cfc7ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#tela-projetos .resumo-projeto-card {
  gap: 5px !important;
  margin: 8px 0 10px !important;
}

#tela-projetos .resumo-projeto-card span {
  border-radius: 9px !important;
  padding: 5px 3px !important;
  font-size: 11px !important;
}

#tela-projetos .botao-card {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  margin-top: auto !important;
}

#tela-projetos .menu-inferior {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 26px auto 0 !important;
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  padding: 8px !important;
  border-radius: 20px !important;
}

#tela-projetos .menu-inferior button,
#tela-projetos .menu-inferior a {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  border-radius: 13px !important;
}

@media (max-width: 760px) {
  #tela-projetos .container {
    padding-bottom: 18px !important;
  }

  #tela-projetos .topo {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  #tela-projetos .grid-projetos {
    grid-template-columns: 1fr !important;
  }

  #tela-projetos .menu-inferior {
    margin-top: 18px !important;
  }
}


/* POLIMENTO FINAL - MEUS PROJETOS v0.9.7 */
#tela-projetos .container {
  max-width: 1020px !important;
  padding-bottom: 22px !important;
}

#tela-projetos .banner {
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
}

#tela-projetos .banner h2 {
  font-size: 22px !important;
}

#tela-projetos .banner p {
  max-width: 620px !important;
}

#tela-projetos .botao-novo {
  min-width: 138px !important;
  height: 34px !important;
}

#tela-projetos .grid-projetos {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 11px !important;
}

#tela-projetos .card-projeto,
#tela-projetos .card-criar,
#tela-projetos .card-projeto-listado {
  min-height: 154px !important;
  padding: 13px !important;
}

#tela-projetos .card-criar {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#tela-projetos .card-criar .icone-mais {
  width: 36px !important;
  height: 36px !important;
  font-size: 24px !important;
  margin-bottom: 9px !important;
}

#tela-projetos .card-projeto h3 {
  font-size: 18px !important;
}

#tela-projetos .card-projeto p {
  margin-bottom: 6px !important;
}

#tela-projetos .papel-projeto::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b84dff;
  margin-right: 6px;
}

#tela-projetos .resumo-projeto-card {
  margin: 7px 0 9px !important;
}

#tela-projetos .resumo-projeto-card span {
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#tela-projetos .menu-principal-projetos,
#tela-projetos .menu-inferior {
  width: min(100%, 390px) !important;
  max-width: 390px !important;
  margin: 20px auto 0 !important;
}

#tela-projetos .menu-inferior button,
#tela-projetos .menu-inferior a {
  min-height: 33px !important;
  height: 33px !important;
}

@media (max-width: 760px) {
  #tela-projetos .banner {
    padding: 14px !important;
  }

  #tela-projetos .topo-logo img {
    width: 46px !important;
  }

  #tela-projetos .topo h1 {
    font-size: 23px !important;
  }

  #tela-projetos .menu-principal-projetos,
  #tela-projetos .menu-inferior {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
  }
}


/* =========================================================
   Padronização global — botões Integrantes / WhatsApp
   Mantém a estrutura original e ajusta apenas o visual.
   ========================================================= */
#btn-salvar-integrante,
button#btn-salvar-integrante,
.botao-salvar-integrante {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-top: 10px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #33c4ff, #7a5cff, #b84dff) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(122, 92, 255, 0.20) !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease !important;
}

#btn-salvar-integrante::before,
button#btn-salvar-integrante::before,
.botao-salvar-integrante::before {
  content: "✓";
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 21px;
}

#btn-salvar-integrante:hover,
button#btn-salvar-integrante:hover,
.botao-salvar-integrante:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(122, 92, 255, 0.28) !important;
}

#btn-convidar-integrante,
button#btn-convidar-integrante,
.botao-whatsapp,
.botao-convidar-whatsapp {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-top: 8px !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #18c761, #16b957) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(24, 199, 97, 0.22) !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease !important;
}

#btn-convidar-integrante::before,
button#btn-convidar-integrante::before,
.botao-whatsapp::before,
.botao-convidar-whatsapp::before {
  content: "☎";
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 24px;
}

#btn-convidar-integrante::after,
button#btn-convidar-integrante::after,
.botao-whatsapp::after,
.botao-convidar-whatsapp::after {
  content: "→";
  margin-left: auto;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  opacity: .96;
}

#btn-convidar-integrante:hover,
button#btn-convidar-integrante:hover,
.botao-whatsapp:hover,
.botao-convidar-whatsapp:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(24, 199, 97, 0.30) !important;
}

#btn-salvar-integrante:disabled,
#btn-convidar-integrante:disabled {
  opacity: .68 !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: grayscale(.1) !important;
}

/* Padronização global de ações - Repertório Fácil */
.btn-acao-editar,
.btn-editar-integrante,
.btn-editar-musica,
.btn-editar-repertorio,
.btn-montar-repertorio,
.btn-editar-evento {
  background: rgba(255,255,255,.10) !important;
  color: #f9fafb !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 10px !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
}

.btn-acao-excluir,
.btn-excluir-integrante,
.btn-excluir-musica,
.btn-excluir-repertorio,
.btn-remover-musica-repertorio,
.btn-excluir-evento {
  background: rgba(239,68,68,.12) !important;
  color: #fecaca !important;
  border: 1px solid rgba(239,68,68,.45) !important;
  border-radius: 10px !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
}

.btn-compartilhar-repertorio,
.btn-compartilhar-evento {
  background: rgba(122,92,255,.16) !important;
  color: #d9d3ff !important;
  border: 1px solid rgba(122,92,255,.42) !important;
  border-radius: 10px !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
}

/* RF v1.0 Alpha - Campos grandes profissionais */
.rf-campo-textarea {
  display: grid !important;
  gap: 8px !important;
  margin: 8px 0 12px !important;
  color: #f8fafc !important;
}

.rf-textarea-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 24px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -.01em;
}

.rf-textarea-icon {
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #a855f7 !important;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, .22));
}

.rf-textarea-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.1 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.rf-textarea-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(122, 92, 255, .16) !important;
  border: 1px solid rgba(168, 85, 247, .22) !important;
  color: #c4b5fd !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

textarea,
.rf-campo-textarea textarea {
  width: 100% !important;
  min-height: 112px !important;
  height: auto !important;
  padding: 14px 16px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(3, 7, 18, .84)) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  resize: vertical !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

textarea::placeholder,
.rf-campo-textarea textarea::placeholder {
  color: #94a3b8 !important;
  opacity: .92 !important;
}

textarea:focus,
.rf-campo-textarea textarea:focus {
  border-color: rgba(168, 85, 247, .78) !important;
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, .13),
    0 0 24px rgba(51, 196, 255, .08),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(3, 7, 18, .90)) !important;
}

.rf-textarea-counter {
  margin-top: -3px !important;
  text-align: right !important;
  color: #8ea4ca !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.rf-textarea-help {
  margin-top: -2px !important;
  color: #9db2d6 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.rf-campo-textarea textarea::-webkit-scrollbar {
  width: 9px;
}

.rf-campo-textarea textarea::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.rf-campo-textarea textarea::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, .38);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .rf-textarea-header {
    font-size: 13px !important;
  }

  textarea,
  .rf-campo-textarea textarea {
    min-height: 98px !important;
    font-size: 13px !important;
    padding: 12px 13px !important;
  }
}

/* CrossSet - Integrantes: lista compacta aprovada */
.lista-integrantes {
  display: grid !important;
  gap: 7px !important;
}

.item-integrante.item-integrante-compacto {
  min-height: 60px !important;
  max-height: 70px !important;
  padding: 9px 12px !important;
  border-radius: 13px !important;
  background: #1f2937 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}

.integrante-linha-compacta {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(120px, 1.2fr) auto minmax(100px, .9fr) auto minmax(104px, .8fr) minmax(120px, 170px) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.integrante-nome-compacto,
.integrante-funcao-compacta,
.integrante-admin-compacto {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}

.integrante-nome-compacto {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.integrante-funcao-compacta,
.integrante-admin-compacto,
.separador-integrante {
  color: #d1d5db !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.integrante-admin-compacto.admin-sim {
  color: #ffffff !important;
}

.integrante-admin-compacto.admin-nao {
  color: #9ca3af !important;
}

.desenvolvimento-integrante.desenvolvimento-integrante-compacto {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: grid !important;
  grid-template-columns: 1fr 38px !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.barra-desenvolvimento-integrante.barra-desenvolvimento-integrante-compacta {
  height: 5px !important;
  width: 100% !important;
  min-width: 74px !important;
  background: rgba(255, 255, 255, .16) !important;
}

.desenvolvimento-integrante-compacto .desenvolvimento-integrante-percentual {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: right !important;
}

.botoes-item-integrante.botoes-item-integrante-compactos {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

.botoes-item-integrante-compactos .btn-icone-integrante {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.botoes-item-integrante-compactos .btn-icone-integrante:hover {
  background: rgba(255, 255, 255, .16) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 820px) {
  .item-integrante.item-integrante-compacto {
    min-height: 68px !important;
    max-height: none !important;
  }

  .integrante-linha-compacta {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "nome acoes"
      "meta barra" !important;
    row-gap: 5px !important;
  }

  .integrante-nome-compacto { grid-area: nome !important; }
  .integrante-funcao-compacta { grid-area: meta !important; }
  .integrante-admin-compacto,
  .separador-integrante { display: none !important; }
  .desenvolvimento-integrante-compacto { grid-area: barra !important; width: 130px !important; }
  .botoes-item-integrante-compactos { grid-area: acoes !important; }
}


/* CrossSet: correção permanente do botão WhatsApp dos integrantes.
   Mantém somente o SVG interno aprovado, sem ícone extra e sem seta. */
#btn-convidar-integrante::before,
button#btn-convidar-integrante::before,
.btn-whatsapp-padrao::before,
#btn-convidar-integrante::after,
button#btn-convidar-integrante::after,
.btn-whatsapp-padrao::after {
  content: none !important;
  display: none !important;
}

#btn-convidar-integrante .icone-whatsapp-padrao,
.btn-whatsapp-padrao .icone-whatsapp-padrao {
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

#btn-convidar-integrante .icone-whatsapp-padrao svg,
.btn-whatsapp-padrao .icone-whatsapp-padrao svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
  fill: currentColor !important;
}
