html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* BARRA INFERIOR */
.bottom-nav {
  width: 100%;
  height: 64px;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  z-index: 900;
  box-sizing: border-box;
  position: relative;
}

.nav-item {
  flex: 1;
  height: 100%;
  background: transparent;
  color: #777;
  border: none;
  margin: 0;
  border-radius: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 20px;
  box-sizing: border-box;
}

.nav-item small {
  font-size: 11px;
}

#btnMarcarLido.lido {
  background: #2e7d32;
  opacity: 0.85;
}

.nav-item.active {
  color: #4CAF50;
  font-weight: bold;
}

.download-app-area {
  margin-top: 20px;
  text-align: center;
}

.btn-download-app {
  display: inline-block;
  margin-top: 10px;
  background: #4CAF50;
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
}

.btn-voltar-home {
  width: auto !important;
  background: transparent;
  color: #333;
  padding: 8px 0;
  margin-bottom: 10px;
  font-weight: bold;
}

/* LOGIN */
.login-container {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.login-container h2 {
  text-align: center;
}

input {
  padding: 12px;
  margin: 5px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  padding: 12px;
  margin-top: 5px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

button.secondary {
  background: #ccc;
  color: black;
}

.login-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #d32f2f;
  min-height: 20px;
}

/* CHAT */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.ultima-msg {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  max-width: 100%;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-placeholder {
  margin: auto;
  text-align: center;
  color: #333;
  padding: 20px;
}

.top-right-empty {
  width: 70px;
  flex-shrink: 0;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #4CAF50;
  color: white;
  padding: 10px;
  font-weight: bold;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* MENU */
#menuBtn {
  font-size: 20px;
  background: transparent;
  border: none;
  color: white;
  width: auto;
  margin-top: 0;
  margin-right: 10px;
}

/* USER MENU */
.user-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
}

/* Descrição */
.perfil-bio {
  margin-top: 10px;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 10px;
}

.perfil-textarea {
  min-height: 80px;
  resize: none;
  font-family: Arial, sans-serif;
}

.avatar {
  width: 32px;
  height: 32px;
  background: #2196F3;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.nav-perfil-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2196F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 16px;
  font-weight: bold;
}

.nav-perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#userNome {
  font-size: 12px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  color: black;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  min-width: 100px;
  z-index: 1200;
}

.dropdown div {
  padding: 10px;
}

.dropdown div:hover {
  background: #f2f2f2;
}

.dropdown.active {
  display: block;
}

/* MAIN */
.main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 30%;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar h4 {
  padding: 10px;
  margin: 0;
  border-bottom: 1px solid #eee;
}

/* USUÁRIOS */
.usuario-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  list-style: none;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  box-sizing: border-box;
}

.usuario-item:hover {
  background: #f7f7f7;
}

.usuario-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.usuario-info span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-bola {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-bola.online {
  background: #4CAF50;
}

.status-bola.offline {
  background: #ccc;
}

/* BADGE */
.badge-nao-lidas {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e53935;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.badge-info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 20px;
  box-sizing: border-box;
}

.badge-info-content {
  width: 100%;
  max-width: 320px;
  background: white;
  border-radius: 20px;
  padding: 28px 20px 22px;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.badge-info-icone {
  font-size: 46px;
  margin-bottom: 10px;
}

#badgeInfoNome {
  margin: 0;
  font-size: 22px;
  color: #222;
}

#badgeInfoDescricao {
  margin: 12px 0 0;
  color: #555;
  line-height: 1.4;
  font-size: 15px;
}

.perfil-btn-foto {
  width: auto !important;
  margin: 0 auto 12px auto;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 999px;
  background: #2196F3;
}

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

/* CHAT AREA */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #e5ddd5;
}

/* MENSAGENS */
#chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#chat {
  transition: opacity 0.1s ease;  
}


.msg {
  max-width: 70%;
  padding: 10px 28px 10px 10px;
  margin: 5px 0;
  border-radius: 10px;
  word-break: break-word;
}

.me {
  background: #dcf8c6;
  align-self: flex-end;
}

.other {
  background: white;
  align-self: flex-start;
}


/* BARRA SEMPRE VISÍVEL */
.input-area {
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #ddd;
  box-sizing: border-box;
  flex-shrink: 0;
}

.conversa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.conversa-card:hover {
  background: #f7f7f7;
}

.conversa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2196F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: bold;
}

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

.conversa-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}

.conversa-card .badge-nao-lidas {
  margin-left: auto;
}

.conversa-info small {
  color: #777;
  margin-top: 2px;
}

.btn-voltar-chat {
  background: transparent;
  color: white;
  width: auto !important;
  margin: 0;
  padding: 4px 8px;
  font-size: 22px;
  vertical-align: middle;
}

.input-area input {
  flex: 1;
  width: auto;
  margin: 0;
  border-radius: 12px;
}

.input-area button {
  width: auto !important;
  margin-top: 0;
  border-radius: 12px;
  padding: 10px 16px;
  flex-shrink: 0;
}

#menuBtn {
  font-size: 22px;
  font-weight: bold;
}

#menuBtn.voltar {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  padding: 0 6px;
}

.voltar {
  font-size: 42px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
}

.topbar-conversa {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  min-width: 0;
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2196F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: bold;
}

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

.topbar-dados {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-dados strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-dados small {
  font-size: 11px;
  opacity: 0.9;
}

/* MODAL PERFIL */
.perfil-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.perfil-modal-content {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.perfil-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto !important;
  margin: 0;
  background: transparent !important;
  color: #333 !important;
  font-size: 28px;
  font-weight: 300;
  padding: 6px 10px;
  line-height: 1;
}

.modal-grupo .perfil-fechar + h2 {
  padding: 0 56px;
  box-sizing: border-box;
}

.perfil-topo {
  margin-top: 10px;
}

.perfil-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #2196F3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 14px auto;
  overflow: hidden;
}

.perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#perfilNomeCompleto {
  margin: 0;
  font-size: 24px;
  color: #222;
}

.perfil-username {
  margin-top: 6px;
  color: #666;
  font-size: 14px;
}

.perfil-selos {
  margin-top: 24px;
  text-align: left;
}

.perfil-selos h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #222;
}

.perfil-acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.perfil-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.perfil-acoes .secondary {
  background: #ccc;
  color: black;
}

/* BADGES */
.perfil-badges-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.perfil-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
}

.perfil-badge-icone {
  font-size: 18px;
}

.perfil-badge-nome {
  font-weight: 600;
}

.perfil-sem-badge {
  color: #777;
  font-size: 14px;
}

.perfil-btn-msg {
  width: 100% !important;
  margin: 0;
  border-radius: 14px;
}

.concluir-leitura-area {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}

.concluir-leitura-area button {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
}

.home-ano-biblico {
  background: white;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.status-ano {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.status-ano div {
  flex: 1;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 12px 8px;
}

.status-ano strong {
  display: block;
  font-size: 22px;
  color: #4CAF50;
}

.status-ano span {
  font-size: 12px;
  color: #666;
}

.btn-leitura-concluida {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border: 2px solid #4CAF50 !important;
  cursor: default;
  font-weight: bold;
  opacity: 1;
}

/* MOBILE SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  min-width: unset;
  height: 100%;
  z-index: 1000;
  transition: 0.3s;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.sidebar.active {
  left: 0;
}

  .top-bar {
    display: flex;
    align-items: center;
    background: #4CAF50;
    color: white;
    padding: 10px;
    gap: 8px;    
  }

.topbar-nome {
  font-size: 16px;
  font-weight: bold;
  }

 #chatTitulo {
  flex: 1;
  text-align: left;
  padding-left: 5px;
}

  #userNome {
    max-width: 60px;
  }


/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  z-index: 999;
}

#overlay.active {
  display: block;
}

.sidebar {
  z-index: 1000;
}

.offline-banner {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
}

.leitura-biblica {
  background: white;
  border-radius: 16px;
  padding: 18px;
  line-height: 1.6;
  color: #222;
}

.leitura-biblica h2 {
  margin-top: 0;
}

.verso-biblico {
  display: block;
  margin: 14px 0;
  font-size: 16px;
  line-height: 1.7;
}

.verso-biblico strong {
  margin-right: 6px;
  font-weight: bold;
}

.capitulo-biblico {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.capitulo-biblico h4 {
  margin: 0 0 10px;
  color: #4CAF50;
}

.leitura-biblica h3 {
  margin-top: 22px;
  color: #333;
}

.perfil-xp-area {
  display: flex;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 0 10px;
}

.perfil-xp-area div {
  flex: 1;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 12px 8px;
}

.perfil-xp-area strong {
  display: block;
  color: #4CAF50;
  font-size: 18px;
}

.perfil-xp-area span {
  font-size: 12px;
  color: #666;
}

/* DESKTOP */
@media (min-width: 768px) {
  .login-container {
    max-width: 400px;
    margin: auto;
  }

  input {
    width: 100%;
  }

  button {
    width: 100%;
  }

  #menuBtn {
    width: auto;
  }

  .input-area button {
    width: auto !important;
  }
}

.chat-container.modo-lista-conversas .input-area {
  display: none;
}

.chat-container.modo-lista-conversas .bottom-nav {
  display: flex;
}

.chat-container.modo-conversa .input-area {
  display: flex;
}

.chat-container.modo-conversa .bottom-nav {
  display: none;
}

.chat-container.modo-home .input-area {
  display: none;
}

.chat-container.modo-home .bottom-nav {
  display: flex;
}

.progresso-ano {
  background: white;
  border-radius: 16px;
  padding: 18px;
}

.progresso-ano h2 {
  margin-top: 0;
}

.progresso-ano p {
  color: #666;
}

.progresso-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progresso-dia {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 12px;
}

.progresso-dia.concluido {
  background: #e8f5e9;
}

.progresso-dia.pendente {
  background: #fff8e1;
}

.progresso-status {
  font-size: 22px;
  line-height: 1;
}

.progresso-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progresso-info strong {
  color: #222;
}

.progresso-info span {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.progresso-dia.concluido,
.progresso-dia.pendente {
  cursor: pointer;
}

.progresso-dia.concluido:hover,
.progresso-dia.pendente:hover {
  filter: brightness(0.97);
}

.progresso-dia.bloqueado {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-reset-ano {
  width: 100%;
  margin-top: 18px;
  background: #d32f2f;
  color: white;
  border-radius: 14px;
  font-weight: bold;
}

.leitura-acoes {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
}

.leitura-acoes button {
  width: 100%;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: bold;
}

#btnMarcarLido.lido {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4CAF50;
  opacity: 1;
}

.ano-biblico-jesus {
  margin-top: 22px;
  text-align: center;
}

.ano-biblico-jesus img {
  width: 320px;
  max-width: 100%;
  height: auto;
}

#fraseJesus {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  line-height: 1.5;
  padding: 0 10px;
}

.hub-xp {
  padding: 0 20px 20px;
}

.hub-xp h2 {
  margin-top: 10px;
  margin-bottom: 24px;
}

.xp-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.xp-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.xp-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.xp-em-construcao {
  display: inline-block;
  margin-top: 12px;
  background: #f0f0f0;
  color: #666;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.biblia-livre {
  background: white;
  border-radius: 18px;
  padding: 20px;
}

.biblia-livre h2 {
  margin-top: 0;
}

.biblia-livre label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: bold;
}

.biblia-livre select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

.biblia-livre button {
  width: 100%;
  margin-top: 18px;
}

.grupo-ano-item {
  background: #f7fff7;
}

.grupo-ano-item:hover {
  background: #eefbee;
}

.modal-grupo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-grupo {
  background: white;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}

.modal-grupo h2 {
  margin-top: 0;
}

.modal-grupo p {
  color: #555;
  line-height: 1.5;
}

.mensagem-sistema {
  background: #f3f3f3;
  color: #555;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  align-self: center;
  max-width: 90%;
  text-align: center;

  position: relative;
  padding-bottom: 45px;
}

.mensagem-sistema .msg-texto {
  white-space: pre-line;
}

.mensagem-sistema .grupo-reacoes {
  position: absolute;
  right: 10px;
  bottom: 4px; 
}

.mensagem-sistema .grupo-reacoes-ativas {
  display: inline-flex;
  gap: 4px;
}

.mensagem-sistema .grupo-reacao-add {
  position: static;
  right: 8px;
  bottom: 6px;
}

.grupo-reacoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.grupo-reacoes-ativas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.usuarios-toggle-item {
  list-style: none;
  padding: 12px 10px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.usuarios-toggle-item:hover {
  background: #f0f0f0;
}

.grupo-membros-box {
  background: white;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.grupo-membros-box strong {
  display: block;
  margin-bottom: 10px;
}

.grupo-membros-lista {
  max-height: 300px;
  overflow-y: auto;
}

.grupo-membro-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.msg-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grupo-reacoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.grupo-reacoes-ativas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.grupo-reacao-btn {
  width: auto !important;
  padding: 4px 8px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: #333;
  font-size: 13px;
  border: 1px solid #ddd;
}

.grupo-reacao-btn.ativa {
  background: #e8f5e9;
  border-color: #4CAF50;
  color: #2e7d32;
}

.msg {
  position: relative;
}

.grupo-reacao-add {
  position: absolute;

  bottom: 4px;
  right: 4px;

  width: 22px !important;
  height: 22px !important;
  font-size: 15px;

  background: transparent;
  border: none;
  box-shadow: none;

  color: #222;  

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;
}

.menu-reacoes-grupo {
  position: fixed;
  background: #2f3136;
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.menu-reacoes-grupo button {
  width: auto !important;
  margin: 0;
  padding: 6px 8px;
  background: transparent;
  border-radius: 999px;
  font-size: 18px;
}

.menu-reacoes-grupo button:hover {
  background: rgba(255,255,255,0.15);
}

.me .grupo-reacao-add {
  background: transparent;
  border: none;
}

.modal-membros-jornada {
  text-align: left;
}

.modal-membros-jornada h2 {
  text-align: center;
  margin-bottom: 16px;
}

.modal-jornada-resumo {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #555;
  margin-bottom: 18px;
  font-size: 15px;
}

.grupo-membros-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 18px;
}

.grupo-membros-secao {
  margin-bottom: 18px;
}

.grupo-membros-secao strong {
  display: block;
  margin-bottom: 10px;
  color: #333;
}

.grupo-membro-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 15px;
}

.perfil-config-btn {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  background: transparent !important;
  border: none !important;
  color: #333 !important;
  font-size: 22px !important;
  z-index: 50 !important;
}

.perfil-config-menu {
  position: absolute !important;
  top: 52px !important;
  left: 10px !important;
  background: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  padding: 10px;
  z-index: 60 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
}

.perfil-config-menu button {
  width: 100% !important;
  background: #f3f3f3 !important;
  color: #222 !important;
  border: none !important;
  border-radius: 12px;
  padding: 12px 16px !important;
  text-align: left;
  font-size: 16px !important;
  font-weight: 600;
}

.modal-grupo {
  position: relative;
}

.btn-pwa {
  margin-top: 12px;
  background: #2e7d32;
}

.biblia-filtros {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.biblia-filtros select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.versiculo-destaque {
  background: #f3f9f3;
  border-left: 4px solid #4CAF50;
  padding: 10px;
  border-radius: 6px;
}

.biblia-seletor {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin: 18px;
}

.biblia-filtros {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.biblia-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.biblia-campo label {
  font-weight: 700;
  color: #333;
  font-size: 15px;
}

.biblia-campo select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  font-size: 16px;
} 

.biblia-capitulos-topo {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 14px;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}

.biblia-capitulo-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #333;
  font-weight: 700;
  flex-shrink: 0;
}

.biblia-capitulo-btn.ativo {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

.verso-selecionado {
  background: #f0fff3;
  border-left: 4px solid #4CAF50;
  padding: 10px;
  border-radius: 8px;
}

#topo-capitulo-biblia {
  scroll-margin-top: 70px;
}