/* socialt-styles.css */
/* Estilos Gerais */
:root {
  --bg-color: #0f0c29;
  --primary-color: #7e57c2;
  --secondary-color: #ff6b6b;
  --text-color: #ffffff;
}

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

body {
  font-family: 'Chakra Petch', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-color), #302b63, #24243e);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

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

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(126, 87, 194, 0.3);
  border-bottom: 1px solid var(--primary-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, var(--secondary-color), #ffa8a8, var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.logo span {
  margin-left: 5px;
}

.nav-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.icon-btn {
  background: rgba(126, 87, 194, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: rgba(126, 87, 194, 0.4);
  transform: scale(1.1);
}

.lang-switcher {
  background: rgba(126, 87, 194, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  color: var(--text-color);
  padding: 5px 10px;
  font-family: 'Chakra Petch', sans-serif;
}

.lang-switcher option {
  background: #1a1a2e;
  color: var(--text-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(45deg, var(--secondary-color), #ffa8a8);
  color: var(--text-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px var(--secondary-color);
}

/* Cards e Posts */
.card {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(126, 87, 194, 0.3);
}

.post {
  margin-bottom: 20px;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-weight: bold;
  margin-right: 12px;
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
  overflow: hidden;
  position: relative;
}

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

.post-user {
  font-weight: bold;
  color: #ffa8a8;
}

.verified-badge {
  color: var(--primary-color);
  margin-left: 5px;
}

.post-content {
  margin-bottom: 15px;
  color: #e6e6e6;
  line-height: 1.5;
}

.post-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* CORREÇÃO DOS BOTÕES DE AÇÃO - ESPECIALMENTE COMENTAR E COMPARTILHAR */
.post-actions {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(126, 87, 194, 0.3);
  border-bottom: 1px solid rgba(126, 87, 194, 0.3);
  padding: 8px 0;
  margin: 15px 0;
}

.action-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a5a5a5;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 8px;
  min-width: auto;
  width: auto;
  height: auto;
}

.action-btn:hover {
  background: rgba(126, 87, 194, 0.1);
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* Ícones específicos para comentar e compartilhar */
.comment-btn, .share-btn {
  padding: 5px 8px !important;
}

.action-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.action-btn:hover .action-icon {
  filter: brightness(1.2);
}

/* Formulários */
input, textarea, select, button {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid rgba(126, 87, 194, 0.5);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Chakra Petch', sans-serif;
  background: rgba(26, 26, 46, 0.6);
  color: var(--text-color);
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
}

input::placeholder, textarea::placeholder {
  color: #a5a5a5;
}

button {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--text-color);
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(126, 87, 194, 0.4);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.6);
}

button.secondary {
  background: rgba(26, 26, 46, 0.8);
  color: #a5a5a5;
  border: 1px solid rgba(126, 87, 194, 0.5);
}

button.secondary:hover {
  background: rgba(126, 87, 194, 0.2);
  color: var(--text-color);
}

/* CORREÇÃO DAS TABS - ÍCONES DE MENSAGEM E VÍDEO */
.tabs {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  border-top: 1px solid rgba(126, 87, 194, 0.3);
  z-index: 100;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a5a5a5;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  flex: 1;
}

.tab.active {
  color: var(--secondary-color);
}

.tab:hover {
  transform: translateY(-3px);
}

.tab-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 5px rgba(126, 87, 194, 0.5));
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  width: 100%;
}

/* CORREÇÃO ESPECÍFICA PARA OS ÍCONES DE IMAGEM NAS TABS */
.tab-icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

/* Ajuste do badge do chat na tab */
#chat-badge {
  position: absolute;
  top: 2px;
  right: 5px;
  background: linear-gradient(45deg, var(--secondary-color), #ffa8a8);
  color: var(--text-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px var(--secondary-color);
}

/* Páginas (seções) */
.page {
  display: none;
  padding-bottom: 80px; /* Espaço para as tabs */
}

.page.active {
  display: block;
}

/* Notificações */
.notification {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(126, 87, 194, 0.3);
}

.notification:last-child {
  border-bottom: none;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-weight: bold;
  margin-right: 12px;
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.notification-avatar:hover {
  transform: scale(1.1);
}

.notification-content {
  flex: 1;
}

.notification-time {
  color: #a5a5a5;
  font-size: 0.8rem;
}

/* Chat */
.chat-list {
  list-style: none;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(126, 87, 194, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-item:hover {
  background: rgba(126, 87, 194, 0.1);
  border-radius: 12px;
}

.chat-item:last-child {
  border-bottom: none;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-weight: bold;
  margin-right: 15px;
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
  overflow: hidden;
}

.chat-info {
  flex: 1;
}

.chat-name {
  font-weight: bold;
  color: #ffa8a8;
}

.chat-preview {
  color: #a5a5a5;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  color: #a5a5a5;
  font-size: 0.8rem;
}

/* Perfil */
.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 15px;
  box-shadow: 0 0 20px rgba(126, 87, 194, 0.5);
  overflow: hidden;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-avatar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 1;
}

.avatar-upload-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.avatar-upload-label:hover {
  transform: scale(1.1);
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffa8a8;
}

.stat-label {
  color: #a5a5a5;
  font-size: 0.9rem;
}

.profile-bio {
  margin-bottom: 20px;
}

.settings-btn {
  background: rgba(126, 87, 194, 0.2);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.settings-btn:hover {
  background: rgba(126, 87, 194, 0.4);
  transform: scale(1.05);
}

/* Painel de Temas */
.theme-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-color);
}

.theme-option {
  margin-bottom: 15px;
}

.theme-option label {
  display: block;
  margin-bottom: 5px;
  color: #ffa8a8;
}

.theme-option input[type="color"] {
  height: 40px;
  padding: 3px;
}

.theme-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.theme-buttons button {
  flex: 1;
}

/* Utilitários */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.active {
  animation: fadeIn 0.5s ease forwards;
}

/* Estilo para o botão de compartilhamento */
.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-options {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(126, 87, 194, 0.4);
  z-index: 20;
  min-width: 160px;
  animation: fadeIn 0.2s ease-in-out;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fff;
  transition: all 0.25s ease;
}

.share-option img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
  display: block;
}

.share-option:hover {
  background: rgba(126, 87, 194, 0.3);
  transform: translateX(3px);
}

.share-option:last-child {
  margin-bottom: 0;
}

/* Estilos para o perfil de outros usuários */
.notification-avatar {
  cursor: pointer;
  transition: transform 0.2s;
}

.notification-avatar:hover {
  transform: scale(1.1);
}

/* Melhorar a exibição de avatares nos posts */
.post-header .avatar {
  overflow: hidden;
  position: relative;
}

.post-header .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.post-header .avatar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Estilos para a barra de pesquisa */
#otakus-search {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(126, 87, 194, 0.5);
  border-radius: 20px;
  padding: 10px 15px;
  color: white;
  margin-bottom: 15px;
  font-family: 'Chakra Petch', sans-serif;
}

#otakus-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
}

#otakus-search::placeholder {
  color: #a5a5a5;
}

/* Estilo para comentários */
.comments-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(126, 87, 194, 0.3);
}

.comment-input {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.comment-input input {
  flex: 1;
  margin-bottom: 0;
}

.comment-input button {
  width: auto;
  padding: 10px 15px;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid rgba(126, 87, 194, 0.2);
}

.comment:last-child {
  border-bottom: none;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.comment-action-btn {
  background: none;
  border: none;
  color: #a5a5a5;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.comment-action-btn:hover {
  color: var(--secondary-color);
}

/* Regras para mostrar/ocultar avatares e textos */
.avatar img[src=""],
.avatar img:not([src]),
.profile-avatar img[src=""],
.profile-avatar img:not([src]) {
  display: none !important;
}

.avatar:has(img[src]) span,
.profile-avatar:has(img[src]) span {
  display: none !important;
}

.avatar:not(:has(img[src])) span,
.profile-avatar:not(:has(img[src])) span {
  display: flex !important;
}

/* Fallback para navegadores que não suportam :has() */
@supports not (selector(:has(*))) {
  .avatar span,
  .profile-avatar span {
    display: flex !important;
  }
  
  .avatar img,
  .profile-avatar img {
    display: none !important;
  }
  
  .avatar.has-image span,
  .profile-avatar.has-image span {
    display: none !important;
  }
  
  .avatar.has-image img,
  .profile-avatar.has-image img {
    display: block !important;
  }
}

/* Estilos para o container de upload de avatar */
.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.avatar-upload-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.avatar-upload-label:hover {
  transform: scale(1.1);
}

#upload-btn {
  width: auto;
  margin: 10px auto;
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Estilos para a imagem de preview */
#profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

#profile-avatar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 1;
}

/* Ajuste geral do balão de mensagens */
.message-bubble {
  max-width: 70%; /* nunca ocupa toda a tela */
  word-wrap: break-word;
  overflow: hidden;
}

/* Imagens no chat */
.chat-img {
  max-width: 160px;   /* limite de largura */
  max-height: 160px;  /* limite de altura */
  border-radius: 10px;
  margin-top: 4px;
  object-fit: cover;  /* mantém proporção, corta excesso */
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease;
}
.chat-img:hover {
  transform: scale(1.05);
}

/* Link de arquivo (PDF, DOC, etc.) */
.message-bubble a {
  display: inline-block;
  max-width: 200px;   /* corta links longos */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(126, 87, 194, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: none;
}
.message-bubble a:hover {
  background: rgba(126, 87, 194, 0.4);
  text-decoration: underline;
}

/* Estilos para as imagens de logo */
.logo-image-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid #7e57c2;
}

.logo-image-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-image-container-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px auto;
  border: 3px solid #7e57c2;
  box-shadow: 0 0 20px rgba(126, 87, 194, 0.5);
}

.logo-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  display: flex;
  align-items: center;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

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

.status-indicator.offline {
  background-color: #f44336;
}

.status-indicator.away {
  background-color: #ff9800;
}

/* Estilos para comentários - CORREÇÃO DO AVATAR GRANDE */
.comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(26, 26, 46, 0.4);
}

.comment-avatar {
  width: 35px !important;
  height: 35px !important;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #7e57c2);
}

.comment-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
}

.comment-avatar span {
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.comment-header strong {
  color: #ffa8a8;
  font-size: 0.9rem;
}

.comment-time {
  font-size: 0.7rem;
  color: #a5a5a5;
}

.comment-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.comment-actions {
  margin-top: 8px;
}

.comment-action-btn {
  background: none;
  border: none;
  color: #a5a5a5;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 15px;
  transition: all 0.2s;
}

.comment-action-btn:hover {
  background: rgba(126, 87, 194, 0.2);
  color: #ffa8a8;
}

/* Container de comentários */
.comments-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(126, 87, 194, 0.3);
}

.comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.comment-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(126, 87, 194, 0.5);
  border-radius: 20px;
  background: rgba(26, 26, 46, 0.6);
  color: white;
  font-family: 'Chakra Petch', sans-serif;
  outline: none;
}

.comment-input button {
  padding: 8px 15px;
  background: linear-gradient(135deg, #7e57c2, #ff6b6b);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Chakra Petch', sans-serif;
  transition: transform 0.2s;
}

.comment-input button:hover {
  transform: scale(1.05);
}

.no-comments {
  text-align: center;
  color: #a5a5a5;
  font-style: italic;
  padding: 20px;
}

/* Popunder */
.popunder {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26, 26, 46, 0.95);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  max-width: 300px;
  font-family: 'Chakra Petch', sans-serif;
  z-index: 9999;
  animation: fadeInUp 0.6s ease;
}

.popunder-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #ffa8a8;
}

.popunder-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

#close-popunder {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.3rem;
  cursor: pointer;
  color: #aaa;
}

#close-popunder:hover {
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CORREÇÃO DO CHAT - ESTILOS ESPECÍFICOS ===== */

/* Container principal do chat */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px); /* Altura ajustada */
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Cabeçalho do chat - CORRIGIDO */
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, #6e48aa, #9d50bb);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 60px;
}

.chat-back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin-right: 12px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-avatar-small {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #7e57c2);
  flex-shrink: 0;
}

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

.chat-avatar-initial {
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

.chat-partner-info {
  flex: 1;
  min-width: 0;
}

.chat-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 2px;
}

.chat-status {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Container de mensagens - CORREÇÃO CRÍTICA */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0; /* Importante para flexbox */
}

/* Mensagens - LAYOUT CORRIGIDO */
.message {
  display: flex;
  margin-bottom: 12px;
  max-width: 100%;
}

.my-message {
  justify-content: flex-end;
}

.their-message {
  justify-content: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #7e57c2);
  margin: 0 8px;
}

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

.avatar-initial {
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
}

.message-sender {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #ffa8a8;
  padding-left: 8px;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
}

.my-message .message-bubble {
  background: linear-gradient(135deg, #6e48aa, #9d50bb);
  color: white;
  border-bottom-right-radius: 5px;
}

.their-message .message-bubble {
  background: #ffffff;
  color: #1a1a1a;
  border-bottom-left-radius: 5px;
}

.message-text {
  margin: 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.message-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.8;
}

.message-status {
  font-size: 0.7rem;
  margin-left: 5px;
}

/* Input do chat - CORRIGIDO */
.chat-input-container {
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(126, 87, 194, 0.3);
  min-height: 60px;
}

.chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(126, 87, 194, 0.5);
  border-radius: 24px;
  background: rgba(26, 26, 46, 0.6);
  color: white;
  font-family: 'Chakra Petch', sans-serif;
  outline: none;
  font-size: 0.9rem;
}

.chat-attach-btn, .chat-send-btn {
  background: rgba(126, 87, 194, 0.2);
  color: white;
  border: 1px solid rgba(126, 87, 194, 0.5);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-send-btn {
  background: linear-gradient(135deg, #ff6b6b, #7e57c2);
  border: none;
}

/* Lista de conversas */
.conversations-list {
  padding: 10px;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(126, 87, 194, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.conversation-item:hover {
  background: rgba(126, 87, 194, 0.1);
  border-radius: 10px;
}

.conversation-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.conversation-name {
  font-weight: bold;
  color: #ffa8a8;
  font-size: 0.9rem;
}

.conversation-time {
  font-size: 0.7rem;
  color: #a5a5a5;
}

.conversation-preview {
  font-size: 0.8rem;
  color: #a5a5a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estados especiais */
.conversation-item.unread {
  background: rgba(126, 87, 194, 0.15);
}

.conversation-item.unread .conversation-name {
  color: #ff6b6b;
}

/* Imagens no chat - TAMANHO CORRIGIDO */
.chat-img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  margin-top: 5px;
  cursor: pointer;
  object-fit: cover;
}

/* Responsividade */
@media (max-width: 480px) {
  .message-content {
    max-width: 85%;
  }
  
  .chat-img {
    max-width: 150px;
    max-height: 120px;
  }
  
  .chat-input-container {
    padding: 8px 12px;
  }
  
  /* Ajustes específicos para as tabs em mobile */
  .tabs {
    padding: 10px 5px;
  }
  
  .tab {
    font-size: 0.7rem;
  }
  
  .tab-icon img {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Garantir que os elementos ocultos funcionem */
.hidden {
  display: none !important;
}

/* Scrollbar personalizada */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(126, 87, 194, 0.1);
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(126, 87, 194, 0.3);
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 87, 194, 0.5);
}

/* Estilos para Carteira e Monetização */
.wallet-balance {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #7e57c2, #ff6b6b);
    border-radius: 15px;
    margin-bottom: 20px;
    color: white;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.balance-label {
    font-size: 1rem;
    opacity: 0.9;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Chakra Petch', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(126, 87, 194, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(126, 87, 194, 0.3);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffa8a8;
}

.stat-label {
    font-size: 0.8rem;
    color: #a5a5a5;
}

/* Monetização */
.monetization-status {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(26, 26, 46, 0.6);
}

.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-badge.enabled {
    background: #4caf50;
    color: white;
}

.status-badge.disabled {
    background: #ff9800;
    color: white;
}

.earnings-summary {
    background: rgba(26, 26, 46, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(126, 87, 194, 0.2);
}

.earning-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 2px solid rgba(126, 87, 194, 0.5);
    font-size: 1.1rem;
}

.monetization-rules {
    background: rgba(26, 26, 46, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.monetization-rules ul {
    list-style: none;
    padding: 0;
}

.monetization-rules li {
    padding: 5px 0;
    color: #a5a5a5;
}

.withdraw-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Modais */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: linear-gradient(135deg, #0f0c29, #302b63);
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #7e57c2;
}

.withdraw-form {
    margin: 15px 0;
}

.withdraw-form label {
    display: block;
    margin: 10px 0 5px;
    color: #ffa8a8;
}

.withdraw-form input, .withdraw-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(126, 87, 194, 0.5);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: white;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
}

/* Transações */
.transactions-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 8px;
}

.transaction-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: bold;
    color: #ffa8a8;
}

.transaction-date {
    font-size: 0.8rem;
    color: #a5a5a5;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.earning {
    color: #4caf50;
}

.transaction-amount.withdrawal {
    color: #ff6b6b;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff5252, #6a45b8);
}
/* Tela inicial estilo anime explosiva */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a0014 0%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 3px;
  text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff33ff, 0 0 60px #a64dff;
  cursor: pointer;
  z-index: 99999;
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: inset 0 0 40px #ff00d4, 0 0 50px #a64dff; }
  to   { box-shadow: inset 0 0 80px #ff33ff, 0 0 100px #ff00ff; }
}

/* Efeito de rachaduras no vidro */
.crack {
  position: absolute;
  width: 2px;
  height: 100px;
  background: rgba(255, 255, 255, 0.8);
  transform-origin: center;
  opacity: 0.7;
  animation: crackAnim 1s forwards ease-out;
}

@keyframes crackAnim {
  from { transform: scaleY(0) rotate(var(--angle)); }
  to   { transform: scaleY(1) rotate(var(--angle)); opacity: 0; }
}

/* Partículas da explosão */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
  transform: scale(0);
  animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
  to {
    transform: scale(2.5) translate(var(--x), var(--y));
    opacity: 0;
  }
}

/* Flash no clique */
.flash {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent);
  animation: flashAnim 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes flashAnim {
  from { opacity: 1; }
  to   { opacity: 0; }
}
