/* ============================================================ */
/* WHATSAPP STYLE - Tema Claro (Idêntico ao AdultZap Real)      */
/* ============================================================ */

:root {
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;
  --wa-green-header: #008069;
  --wa-green-light: #DCF8C6;
  --wa-blue: #34B7F1;
  --wa-blue-check: #53BDEB;
  --wa-bg: #FFFFFF;
  --wa-bg-chat: #ECE5DD;
  --wa-bg-input: #FFFFFF;
  --wa-text-primary: #111B21;
  --wa-text-secondary: #667781;
  --wa-text-green: #008069;
  --wa-border: #E9EDEF;
  --wa-hover: #F5F6F6;
  --wa-bubble-out: #D9FDD3;
  --wa-bubble-in: #FFFFFF;
  --wa-unread-bg: #25D366;
}

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

body.whatsapp-mode {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--wa-bg);
  min-height: 100vh;
  color: var(--wa-text-primary);
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Container Principal - Mobile First */
.whatsapp-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--wa-bg);
  position: relative;
}

/* ============================================================ */
/* HEADER VERDE DO WHATSAPP                                      */
/* ============================================================ */

.wa-header {
  background: var(--wa-green-header);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wa-header-title {
  font-size: 22px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.3px;
}

.wa-header-actions {
  display: flex;
  gap: 18px;
}

.wa-header-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.wa-header-btn:hover {
  opacity: 1;
}

/* ============================================================ */
/* BARRA DE BUSCA                                                */
/* ============================================================ */

.wa-search-bar {
  padding: 8px 12px 6px;
  background: var(--wa-bg);
}

.wa-search-wrapper {
  display: flex;
  align-items: center;
  background: #F0F2F5;
  border-radius: 24px;
  padding: 8px 16px;
  gap: 12px;
}

.wa-search-icon {
  color: var(--wa-text-secondary);
  font-size: 16px;
}

.wa-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--wa-text-primary);
  outline: none;
}

.wa-search-input::placeholder {
  color: var(--wa-text-secondary);
}

/* ============================================================ */
/* FILTROS (All, Unread, Groups)                                 */
/* ============================================================ */

.wa-filters {
  display: flex;
  gap: 8px;
  padding: 8px 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wa-filters::-webkit-scrollbar {
  display: none;
}

.wa-filter-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border: none;
  background: #F0F2F5;
  color: var(--wa-text-green);
}

.wa-filter-btn:hover {
  background: #E4E6E9;
}

.wa-filter-btn.active {
  background: #D8FDD2;
  color: var(--wa-green-header);
}

/* ============================================================ */
/* LISTA DE CONVERSAS                                            */
/* ============================================================ */

.wa-conversations {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.wa-conversation {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-conversation:hover {
  background: var(--wa-hover);
}

.wa-conversation:active {
  background: #E9EDEF;
}

/* Avatar */
.wa-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFE5E7 0%, #CCD5D8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-right: 14px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

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

.wa-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #DFE5E7 0%, #CCD5D8 100%);
}

/* Conteúdo da conversa */
.wa-conv-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wa-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.wa-conv-name {
  font-size: 17px;
  font-weight: 400;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-conv-time {
  font-size: 12px;
  color: var(--wa-text-secondary);
  flex-shrink: 0;
  margin-left: 8px;
}

.wa-conv-time.unread {
  color: var(--wa-unread-bg);
  font-weight: 500;
}

.wa-conv-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-conv-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: 8px;
}

.wa-conv-preview .check {
  color: var(--wa-blue-check);
  font-size: 16px;
  flex-shrink: 0;
}

/* Badge de não lidas */
.wa-unread-badge {
  background: var(--wa-unread-bg);
  color: white;
  font-size: 12px;
  font-weight: 500;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
}

/* ============================================================ */
/* MENU INFERIOR (Chats, Updates, Communities, Calls)            */
/* ============================================================ */

.wa-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--wa-bg);
  border-top: 1px solid var(--wa-border);
  padding: 6px 0 10px;
  position: sticky;
  bottom: 0;
}

.wa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  position: relative;
}

.wa-nav-item.active {
  background: #D8FDD2;
}

.wa-nav-icon {
  font-size: 24px;
  color: var(--wa-text-secondary);
  line-height: 1;
}

.wa-nav-svg {
  width: 24px;
  height: 24px;
  color: var(--wa-text-secondary);
}

.wa-nav-item.active .wa-nav-icon,
.wa-nav-item.active .wa-nav-svg {
  color: var(--wa-text-primary);
}

.wa-nav-label {
  font-size: 11px;
  color: var(--wa-text-secondary);
  font-weight: 400;
}

.wa-nav-item.active .wa-nav-label {
  color: var(--wa-text-primary);
  font-weight: 500;
}

.wa-nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background: var(--wa-unread-bg);
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================ */
/* TELA DE CHAT INDIVIDUAL                                       */
/* ============================================================ */

.wa-chat-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--wa-bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.wa-chat-screen.active {
  display: flex;
}

/* Header do Chat - FIXO no topo */
.wa-chat-header {
  background: var(--wa-green-header);
  padding: 6px 6px 6px 2px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.wa-chat-back {
  background: transparent;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.wa-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #DFE5E7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  -webkit-tap-highlight-color: rgba(255,255,255,0.3);
}

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

.wa-chat-info {
  flex: 1;
  margin-left: 8px;
}

.wa-chat-name {
  font-size: 17px;
  font-weight: 500;
  color: white;
}

.wa-chat-status {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.wa-chat-actions {
  display: flex;
  gap: 14px;
  margin-right: 8px;
}

.wa-chat-action {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* Área de Mensagens */
.wa-chat-messages {
  flex: 1;
  background: var(--wa-bg-chat);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8D5DA' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 8px 12px;
  padding-bottom: 70px; /* Espaço para o input não sobrepor */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  -webkit-overflow-scrolling: touch;
}

/* Mensagem */
.wa-message {
  max-width: 85%;
  padding: 6px 7px 6px 9px;
  border-radius: 8px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.wa-message.sent {
  align-self: flex-end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 0;
}

.wa-message.received {
  align-self: flex-start;
  background: var(--wa-bubble-in);
  border-top-left-radius: 0;
}

.wa-message-text {
  font-size: 14.5px;
  color: var(--wa-text-primary);
  line-height: 1.35;
  margin-right: 55px;
}

.wa-message-meta {
  position: absolute;
  bottom: 5px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wa-message-time {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
}

.wa-message-check {
  font-size: 14px;
  color: var(--wa-blue-check);
}

/* Visto azul do AdultZap */
.wa-check-blue {
  color: #53bdeb;
  font-weight: bold;
  letter-spacing: -2px;
}

/* Separador de data */
.wa-date-sep {
  text-align: center;
  margin: 10px 0;
}

.wa-date-sep span {
  background: rgba(255,255,255,0.95);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--wa-text-secondary);
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  text-transform: uppercase;
}

/* Input de Mensagem - FIXO na parte inferior */
.wa-chat-input-area {
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  gap: 6px;
  background: var(--wa-bg-chat);
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  z-index: 250;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.08);
  will-change: bottom;
}

.wa-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 8px 10px;
  gap: 6px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  min-width: 0;
}

.wa-input-btn {
  background: transparent;
  border: none;
  color: var(--wa-text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wa-message-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--wa-text-primary);
  outline: none;
  min-height: 24px;
  min-width: 0;
}

.wa-message-input::placeholder {
  color: var(--wa-text-secondary);
}

.wa-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wa-green-header);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wa-send-btn:hover {
  background: #017561;
}

/* Indicador de digitação */
.wa-typing {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  border-top-left-radius: 0;
  width: fit-content;
  align-self: flex-start;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.wa-typing-dot {
  width: 8px;
  height: 8px;
  background: #A0A0A0;
  border-radius: 50%;
  animation: waTyping 1.4s infinite;
}

.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================================ */
/* TELA DE CHAMADA DE VÍDEO                                      */
/* ============================================================ */

.wa-call-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1C2B33;
  z-index: 300;
  display: none;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  /* Proteção contra download/seleção */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.wa-call-screen video {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.wa-call-screen.active {
  display: flex;
}

.wa-call-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  z-index: 10;
  gap: 12px;
}

.wa-call-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

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

.wa-call-info {
  flex: 1;
}

.wa-call-name {
  font-size: 18px;
  font-weight: 500;
  color: white;
}

.wa-call-timer {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.wa-call-tokens {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 16px;
  color: white;
  font-size: 14px;
}

.wa-call-video-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wa-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0D1418;
}

.wa-local-video {
  position: absolute;
  bottom: 100px;
  right: 16px;
  width: 100px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.wa-local-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-call-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 24px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 100;
  pointer-events: auto;
}

.wa-call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: white;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  z-index: 101;
}

.wa-call-btn svg {
  width: 26px;
  height: 26px;
}

.wa-call-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.wa-call-btn:active {
  transform: scale(0.95);
}

.wa-call-btn.end {
  background: #EA4335;
  width: 64px;
  height: 64px;
}

.wa-call-btn.end svg {
  width: 30px;
  height: 30px;
}

.wa-call-btn.end:hover {
  background: #FF5A4D;
}

/* Quando não tem vídeo */
.wa-no-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1C2B33;
  color: white;
}

.wa-no-video-avatar {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.wa-no-video p {
  font-size: 18px;
  opacity: 0.6;
}

/* ============================================================ */
/* FAB (Botão Flutuante)                                         */
/* ============================================================ */

.wa-fab {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 230px);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--wa-green-header);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 50;
}

@media (max-width: 500px) {
  .wa-fab {
    right: 16px;
  }
}

.wa-fab:hover {
  background: #017561;
}

/* ============================================================ */
/* MODAL DE CONFIRMAÇÃO DE CHAMADA                               */
/* ============================================================ */

.wa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-modal-overlay.active {
  display: flex;
}

.wa-modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.wa-modal-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFE5E7 0%, #CCD5D8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  margin: 0 auto 16px;
  overflow: hidden;
}

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

.wa-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--wa-text-primary);
  margin-bottom: 8px;
}

.wa-modal-subtitle {
  font-size: 14px;
  color: var(--wa-text-secondary);
  margin-bottom: 20px;
}

.wa-modal-btns {
  display: flex;
  gap: 12px;
}

.wa-modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wa-modal-btn.cancel {
  background: #F0F2F5;
  color: var(--wa-text-primary);
}

.wa-modal-btn.cancel:hover {
  background: #E4E6E9;
}

.wa-modal-btn.confirm {
  background: var(--wa-green-header);
  color: white;
}

.wa-modal-btn.confirm:hover {
  background: #017561;
}

/* ============================================================ */
/* PERFIL SIDEBAR                                                */
/* ============================================================ */

.wa-profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.wa-profile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wa-profile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: white;
  z-index: 260;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.wa-profile-sidebar.active {
  transform: translateX(0);
}

.wa-profile-header {
  background: var(--wa-green-header);
  padding: 50px 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.wa-profile-back {
  background: transparent;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.wa-profile-title {
  font-size: 20px;
  font-weight: 500;
  color: white;
}

.wa-profile-content {
  flex: 1;
  overflow-y: auto;
}

.wa-profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  background: white;
}

.wa-profile-avatar-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #DFE5E7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  margin-bottom: 16px;
  overflow: hidden;
}

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

.wa-profile-name {
  font-size: 22px;
  font-weight: 400;
  color: var(--wa-text-primary);
}

.wa-profile-section {
  padding: 16px 20px;
  border-top: 8px solid #F0F2F5;
}

.wa-profile-section-title {
  font-size: 14px;
  color: var(--wa-green-header);
  margin-bottom: 6px;
}

.wa-profile-section-value {
  font-size: 16px;
  color: var(--wa-text-primary);
}

.wa-profile-tokens {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #F0FFF0;
  border-top: 8px solid #F0F2F5;
}

.wa-profile-tokens-icon {
  font-size: 28px;
}

.wa-profile-tokens-info {
  flex: 1;
}

.wa-profile-tokens-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--wa-text-primary);
}

.wa-profile-tokens-label {
  font-size: 13px;
  color: var(--wa-text-secondary);
}

.wa-profile-buy-btn {
  background: var(--wa-green-header);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.wa-profile-logout {
  margin: 20px;
  padding: 14px;
  background: transparent;
  border: 1px solid #EA4335;
  color: #EA4335;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  width: calc(100% - 40px);
}

.wa-profile-logout:hover {
  background: #EA4335;
  color: white;
}

/* ============================================================ */
/* LOADING STATE                                                 */
/* ============================================================ */

.wa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--wa-text-secondary);
}

.wa-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--wa-border);
  border-top-color: var(--wa-green-header);
  border-radius: 50%;
  animation: waSpin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes waSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================ */
/* EMPTY STATE                                                   */
/* ============================================================ */

.wa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.wa-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.wa-empty-text {
  font-size: 16px;
  color: var(--wa-text-secondary);
}

.wa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  color: var(--wa-text-secondary);
}

.wa-empty-state .wa-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.wa-retry-btn {
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--wa-green-header);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
}

/* ============================================================ */
/* MODAL DE VISUALIZAÇÃO DE FOTO                                 */
/* ============================================================ */

.wa-photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 500;
  display: none;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.wa-photo-modal.active {
  display: flex;
}

.wa-photo-modal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}

.wa-photo-modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-photo-modal-name {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.wa-photo-modal-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.wa-photo-modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0;
}

/* Avatar clicável */
.wa-chat-avatar {
  cursor: pointer;
}

.wa-retry-btn:hover {
  background: var(--wa-green-dark);
}

/* ============================================================ */
/* TELA DE PERFIL DO CONTATO                                     */
/* ============================================================ */

.wa-profile-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #f0f2f5;
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.wa-profile-screen.active {
  display: flex;
}

.wa-profile-header {
  background: var(--wa-green-header);
  padding: 10px 6px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.wa-profile-back {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
}

.wa-profile-header-title {
  flex: 1;
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.wa-profile-more {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
}

.wa-profile-content {
  flex: 1;
  overflow-y: auto;
  background: #f0f2f5;
}

/* Seção da Foto */
.wa-profile-photo-section {
  background: white;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.wa-profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #DFE5E7;
  cursor: pointer;
  margin-bottom: 16px;
}

.wa-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-profile-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--wa-text-primary);
  margin: 0 0 4px;
}

.wa-profile-phone {
  font-size: 15px;
  color: var(--wa-text-secondary);
  margin: 0;
}

/* Ações rápidas */
.wa-profile-actions {
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 16px 8px;
  margin-bottom: 10px;
}

.wa-profile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}

.wa-profile-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-profile-action-btn span {
  font-size: 13px;
  color: var(--wa-green-header);
}

/* Seções */
.wa-profile-section {
  background: white;
  padding: 14px 20px;
  margin-bottom: 10px;
}

.wa-profile-label {
  font-size: 14px;
  color: var(--wa-text-secondary);
  margin: 0 0 4px;
}

.wa-profile-value {
  font-size: 16px;
  color: var(--wa-text-primary);
  margin: 0;
}

/* Mídia */
.wa-profile-media-section {
  cursor: pointer;
}

.wa-profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wa-profile-section-header span {
  font-size: 15px;
  color: var(--wa-text-secondary);
}

.wa-profile-media-count {
  display: flex;
  align-items: center;
  color: var(--wa-text-secondary);
  font-size: 14px;
}

.wa-profile-media-preview {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.wa-profile-media-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* Toggle items */
.wa-profile-toggle-section {
  padding: 0;
}

.wa-profile-toggle-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 20px;
  cursor: pointer;
}

.wa-profile-toggle-icon {
  width: 24px;
  display: flex;
  justify-content: center;
}

.wa-profile-toggle-text span {
  font-size: 16px;
  color: var(--wa-text-primary);
}

/* Info items */
.wa-profile-info-section {
  padding: 0;
}

.wa-profile-info-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  gap: 20px;
  cursor: pointer;
}

.wa-profile-info-icon {
  width: 24px;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.wa-profile-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-profile-info-title {
  font-size: 16px;
  color: var(--wa-text-primary);
}

.wa-profile-info-desc {
  font-size: 14px;
  color: var(--wa-text-secondary);
}

/* Grupos */
.wa-profile-groups-section {
  padding: 14px 20px;
}

.wa-profile-section-title {
  font-size: 14px;
  color: var(--wa-text-secondary);
  margin: 0;
}

/* Botões de perigo */
.wa-profile-danger-section {
  background: white;
  padding: 0;
  margin-bottom: 20px;
}

.wa-profile-danger-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.wa-profile-danger-btn span {
  font-size: 16px;
  color: #e53935;
}

/* Modal de foto com ações */
.wa-photo-modal-actions {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: rgba(0,0,0,0.3);
}

.wa-photo-action-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* wa-chat-info clicável */
.wa-chat-info {
  cursor: pointer;
}

/* ============================================================ */
/* MODAL FULLSCREEN                                              */
/* ============================================================ */

.wa-fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-fullscreen-modal.hidden {
  display: none;
}

.wa-fullscreen-content {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.wa-fullscreen-icon {
  margin-bottom: 16px;
}

.wa-fullscreen-content h2 {
  font-size: 20px;
  color: #1a1a1a;
  margin: 0 0 8px;
  font-weight: 600;
}

.wa-fullscreen-content p {
  font-size: 14px;
  color: #667781;
  margin: 0 0 24px;
  line-height: 1.5;
}

.wa-fullscreen-btn {
  width: 100%;
  padding: 14px 24px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
}

.wa-fullscreen-btn:hover {
  background: #22c55e;
}

.wa-fullscreen-skip {
  background: transparent;
  border: none;
  color: #667781;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.wa-fullscreen-skip:hover {
  color: #1a1a1a;
}
/* ============================================================ */
/* TELA DE ATUALIZAÇÕES (STATUS)                                 */
/* ============================================================ */

.wa-updates-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--wa-bg);
  padding-bottom: 80px;
}

.wa-updates-header {
  padding: 16px 16px 8px;
  background: var(--wa-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wa-updates-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--wa-text-primary);
  margin: 0;
}

.wa-updates-content {
  padding: 8px 0;
}

.wa-updates-section {
  margin-bottom: 16px;
}

.wa-updates-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--wa-text-secondary);
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wa-status-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.wa-status-item:active {
  background: var(--wa-hover);
}

.wa-status-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
}

.wa-status-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    var(--wa-green) 0deg,
    var(--wa-green) var(--ring-progress, 360deg),
    #ccc var(--ring-progress, 360deg),
    #ccc 360deg
  );
}

.wa-status-ring.viewed {
  background: conic-gradient(#ccc 0deg, #ccc 360deg);
}

.wa-status-ring.multiple {
  background: none;
  border: none;
}

.wa-status-ring.multiple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--wa-green) 0deg,
    var(--wa-green) 85deg,
    transparent 85deg,
    transparent 90deg,
    var(--wa-green) 90deg,
    var(--wa-green) 175deg,
    transparent 175deg,
    transparent 180deg,
    var(--wa-green) 180deg,
    var(--wa-green) 265deg,
    transparent 265deg,
    transparent 270deg,
    var(--wa-green) 270deg,
    var(--wa-green) 355deg,
    transparent 355deg,
    transparent 360deg
  );
}

.wa-status-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 3px;
  left: 3px;
  background: var(--wa-bg);
  border: 2px solid white;
}

.wa-status-info {
  flex: 1;
  min-width: 0;
}

.wa-status-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--wa-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-status-time {
  font-size: 13px;
  color: var(--wa-text-secondary);
}

.wa-status-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--wa-text-secondary);
}

.wa-status-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.wa-status-empty p {
  font-size: 15px;
  line-height: 1.5;
}

/* Modal de visualização de status */
.wa-status-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.wa-status-viewer.active {
  display: flex;
}

.wa-status-viewer-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.wa-status-viewer-close {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: white;
}

.wa-status-viewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-status-viewer-info {
  flex: 1;
}

.wa-status-viewer-name {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

.wa-status-viewer-time {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.wa-status-progress-container {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
}

.wa-status-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 1px;
  overflow: hidden;
}

.wa-status-progress-fill {
  height: 100%;
  background: white;
  width: 0;
  transition: width 0.1s linear;
}

.wa-status-progress-bar.viewed .wa-status-progress-fill {
  width: 100%;
}

.wa-status-viewer-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wa-status-viewer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-status-viewer-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 60px 16px 24px;
  color: white;
  font-size: 15px;
  text-align: center;
}

/* ============================================================ */
/* TELA DE CHAMADAS (HISTÓRICO)                                  */
/* ============================================================ */

.wa-calls-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--wa-bg);
  padding-bottom: 80px;
}

.wa-calls-header {
  padding: 16px 16px 8px;
  background: var(--wa-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wa-calls-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--wa-text-primary);
  margin: 0;
}

.wa-calls-content {
  padding: 8px 0;
}

.wa-call-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.wa-call-item:active {
  background: var(--wa-hover);
}

.wa-call-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}

.wa-call-info {
  flex: 1;
  min-width: 0;
}

.wa-call-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--wa-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-call-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wa-text-secondary);
}

.wa-call-icon {
  display: flex;
  align-items: center;
}

.wa-call-icon.incoming {
  color: var(--wa-green);
}

.wa-call-icon.outgoing {
  color: var(--wa-green);
}

.wa-call-icon.missed {
  color: #e53935;
}

.wa-call-action {
  padding: 8px;
  color: var(--wa-green);
}

.wa-calls-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--wa-text-secondary);
}

.wa-calls-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.wa-calls-empty p {
  font-size: 15px;
  line-height: 1.5;
}

/* ============ NOTIFICAÇÃO NO TOPO ============ */
.wa-top-notification {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 10000;
  transition: top 0.3s ease;
  overflow: hidden;
}

.wa-top-notification.show {
  top: 20px;
}

.wa-notif-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 4px solid #25D366;
}

.wa-notif-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.wa-notif-text {
  flex: 1;
  min-width: 0;
}

.wa-notif-text strong {
  display: block;
  font-size: 14px;
  color: #111B21;
  margin-bottom: 2px;
}

.wa-notif-text p {
  font-size: 13px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ========== MENSAGENS DE CHAMADA ========== */
.wa-message.system {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.wa-message-content.system-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #667781;
}

.wa-message-content.system-call.declined {
  background: rgba(255, 107, 107, 0.1);
  color: #dc3545;
}

.wa-message-content.system-call.completed {
  background: rgba(37, 211, 102, 0.1);
  color: #128C7E;
}

.wa-message-content.system-call .call-icon {
  font-size: 16px;
}

.wa-message-content.system-call .call-text {
  font-weight: 500;
}

.wa-message-content.system-call .wa-message-time {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
}

/* ========== MENSAGENS DE PIX ========== */
.wa-pix-bubble {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  padding: 15px;
  border-radius: 12px;
  max-width: 280px;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wa-pix-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wa-pix-icon {
  font-size: 24px;
}

.wa-pix-title {
  font-weight: 600;
  font-size: 14px;
}

.wa-pix-amount {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
  text-align: center;
}

.wa-pix-description {
  font-size: 13px;
  opacity: 0.9;
  text-align: center;
  margin-bottom: 12px;
}

/* Botão principal de pagar */
.wa-pix-pay-main {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #333;
  text-align: center;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.wa-pix-pay-main:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.wa-pix-pay-main:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

.wa-pix-button {
  display: block;
  background: white;
  color: #00b894;
  text-align: center;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.wa-pix-button:hover {
  background: #f0f0f0;
  transform: scale(1.02);
}

.wa-pix-button:active {
  transform: scale(0.98);
}

.wa-pix-bubble .wa-message-time {
  display: block;
  text-align: right;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
}

/* ========== BOTÕES DE BANCO PIX ========== */
.wa-pix-banks {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.wa-pix-bank-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.wa-pix-bank-btn.nubank {
  background: #820AD1;
  color: white;
}

.wa-pix-bank-btn.nubank:hover {
  background: #6B09B0;
}

.wa-pix-bank-btn.picpay {
  background: #21C25E;
  color: white;
}

.wa-pix-bank-btn.picpay:hover {
  background: #1AA34E;
}

.wa-pix-bank-btn.inter {
  background: #FF7A00;
  color: white;
}

.wa-pix-bank-btn.inter:hover {
  background: #E56D00;
}

.wa-pix-bank-btn.mp {
  background: #009EE3;
  color: white;
}

.wa-pix-bank-btn.mp:hover {
  background: #0086C3;
}

.wa-pix-link {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: 8px;
  text-decoration: none;
}

.wa-pix-link:hover {
  color: white;
  text-decoration: underline;
}

/* Toast animation */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ============================================================ */
/* COMUNIDADES (GRUPOS)                                          */
/* ============================================================ */

.wa-communities-screen {
  flex: 1;
  overflow-y: auto;
  background: #f0f2f5;
}

.wa-communities-header {
  padding: 20px 16px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e9edef;
}

.wa-communities-header h2 {
  font-size: 22px;
  font-weight: 400;
  color: #111b21;
}

.wa-community-list {
  padding: 8px;
}

.wa-community-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
  background: #ffffff !important;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: #111b21;
}

.wa-community-card:hover {
  background: #f5f6f7;
}

.wa-community-card:active {
  background: #e9edef;
}

.wa-community-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: white;
}

.wa-community-info {
  flex: 1;
  min-width: 0;
}

.wa-community-name {
  font-size: 16px;
  font-weight: 500;
  color: #111b21;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-community-desc {
  font-size: 13px;
  color: #667781;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-community-online {
  font-size: 12px;
  color: #00a884;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-community-online::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #00a884;
  border-radius: 50%;
}

.wa-community-arrow {
  font-size: 24px;
  color: #667781;
}

/* Tela de Chat do Grupo - Tema Claro */
.wa-group-chat-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5ddd5;
  display: flex;
  flex-direction: column;
  z-index: 200;
  max-width: 500px;
  margin: 0 auto;
}

.wa-group-banner {
  background: #E9EDEF;
  color: #54656f;
  padding: 10px 15px;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 15px;
  border-radius: 8px;
}

.wa-group-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wa-message-sender {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wa-system-message {
  text-align: center;
  font-size: 12px;
  color: var(--wa-text-secondary);
  padding: 6px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  align-self: center;
  margin: 5px 0;
}

#groupMessagesContainer {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#groupInputArea {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: var(--wa-bg);
  border-top: 1px solid var(--wa-border);
}

#groupMessageInput {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: #F0F2F5;
  font-size: 15px;
  outline: none;
}

#groupInputArea .wa-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wa-green-header);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#groupInputArea .wa-attach-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#groupInputArea .wa-attach-btn:active {
  background: rgba(0,0,0,0.1);
}

/* Mensagem com foto no grupo */
.wa-group-photo {
  max-width: 250px;
  max-height: 300px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}

.wa-group-photo-container {
  position: relative;
}

/* Modal de foto ampliada do grupo */
.wa-group-photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-group-photo-modal img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.wa-group-photo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* ========== IMAGENS NO CHAT PRIVADO ========== */
.wa-image-bubble {
  padding: 4px !important;
  background: transparent !important;
}

.wa-chat-image {
  max-width: 250px;
  max-height: 300px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  display: block;
}

.wa-chat-image:hover {
  opacity: 0.9;
}

/* Modal de imagem em tela cheia */
.wa-fullscreen-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wa-fullscreen-image-modal.active {
  opacity: 1;
  visibility: visible;
}

.wa-fullscreen-image-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

.wa-fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.wa-fullscreen-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Ajuste para imagem recebida ter fundo correto */
.wa-message.received .wa-image-bubble {
  background: #202c33 !important;
  padding: 4px !important;
}

.wa-message.sent .wa-image-bubble {
  background: #005c4b !important;
  padding: 4px !important;
}

/* ========== PLAYER DE ÁUDIO ESTILO WHATSAPP ========== */
.wa-audio-bubble {
  padding: 6px 8px 4px 6px !important;
  min-width: 260px;
  max-width: 320px;
  border-radius: 8px;
  background: #f0f2f5 !important;
}

.wa-audio-container {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
}

.wa-audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #54656f;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.wa-audio-play-btn:active {
  transform: scale(0.95);
}

.wa-audio-play-btn svg {
  width: 40px;
  height: 40px;
}

.wa-audio-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.wa-audio-waveform {
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.wa-audio-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: transparent;
  z-index: 2;
}

.wa-audio-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #25d366;
  border-radius: 50%;
  left: 0%;
  transition: left 0.1s linear;
  z-index: 3;
}

.wa-audio-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.wa-audio-bars span {
  flex: 1;
  background: #b8bcbf;
  border-radius: 2px;
  min-width: 2px;
  max-width: 3px;
}

.wa-audio-duration {
  font-size: 11px;
  color: #667781;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
}

.wa-audio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dfe5e7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}

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

.wa-audio-avatar-placeholder {
  color: #8696a0;
  font-size: 20px;
}

.wa-audio-mic-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f2f5;
}

.wa-audio-mic-badge svg {
  width: 10px;
  height: 10px;
  fill: white;
}

.wa-audio-bubble .wa-message-time {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #667781;
  margin-top: 2px;
  padding-right: 4px;
}

/* Remove o fundo padrão das mensagens */
.wa-message.received .wa-audio-bubble {
  background: #f0f2f5 !important;
}

.wa-message.sent .wa-audio-bubble {
  background: #d9fdd3 !important;
}

.wa-message.sent .wa-audio-mic-badge {
  border-color: #d9fdd3;
}

/* ========== MODAL DE CHAMADA RECEBIDA (IA) ========== */
.wa-incoming-call-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wa-incoming-call-modal.active {
  opacity: 1;
  visibility: visible;
}

.wa-incoming-call-content {
  text-align: center;
  color: white;
}

.wa-incoming-call-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid #25d366;
  animation: pulse-ring 1.5s infinite;
}

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

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-incoming-call-content h3 {
  font-size: 24px;
  margin: 0 0 10px;
}

.wa-incoming-call-text {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 30px;
}

.wa-incoming-call-animation {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.wa-incoming-call-animation span {
  width: 12px;
  height: 12px;
  background: #25d366;
  border-radius: 50%;
  animation: bounce-call 1.4s infinite ease-in-out both;
}

.wa-incoming-call-animation span:nth-child(1) { animation-delay: -0.32s; }
.wa-incoming-call-animation span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce-call {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.wa-incoming-call-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.wa-call-decline {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.wa-call-decline:hover {
  background: #c0392b;
  transform: scale(1.05);
}

.wa-call-accept {
  background: #25d366;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.wa-call-accept:hover {
  background: #1da855;
  transform: scale(1.05);
}

/* ============================================================ */
/* IMAGEM EMBAÇADA - CLIQUE PARA REVELAR (ESTILO WHATSAPP) */
/* ============================================================ */

.blurred-image-container {
  position: relative;
  display: block;
  cursor: pointer;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
}

.blurred-image-container img {
  width: 100%;
  height: auto;
  max-width: 280px;
  object-fit: cover;
  border-radius: 8px;
  filter: blur(20px);
  transition: filter 0.4s ease;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

.blurred-image-container.revealed img {
  filter: none;
}

.blurred-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.blurred-image-container.revealed .blurred-image-overlay {
  opacity: 0;
  pointer-events: none;
}

.blurred-image-overlay .reveal-text {
  font-size: 0.85em;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
}

/* ========== IMAGENS/VÍDEOS NO CHAT ========== */
.wa-chat-image {
  max-width: 250px;
  max-height: 300px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
}

.wa-chat-video {
  max-width: 250px;
  max-height: 300px;
  border-radius: 8px;
  display: block;
  margin-bottom: 4px;
}

/* Fullscreen overlay para imagens */
.wa-image-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-image-fullscreen-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
}

.wa-image-fullscreen {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.wa-image-fullscreen-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
}

/* ========== FIX TECLADO ANDROID/iOS ========== */
/* A barra de input é position:fixed e controlada via JS */

/* Para telas PWA/fullscreen - safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .wa-chat-input-area {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
}

/* Visual viewport fix */
html {
  height: 100%;
  height: -webkit-fill-available;
}

body.whatsapp-mode {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow: hidden;
}

/* Classe para quando teclado está aberto */
.wa-chat-screen.keyboard-open .wa-chat-messages {
  scroll-behavior: smooth;
}

/* ============================================================ */
/* PAINEL DE INFO DO GRUPO - TEMA ESCURO                        */
/* ============================================================ */

/* Tema escuro para chat de grupo */
.wa-group-chat-screen.dark-theme {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b141a;
  display: flex;
  flex-direction: column;
  z-index: 200;
  max-width: 500px;
  margin: 0 auto;
}

.group-chat-header {
  background: #008069;
  color: white;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.group-back-btn {
  background: transparent;
  border: none;
  color: #e9edef;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.group-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.group-header-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.group-header-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-header-members {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.group-menu-btn {
  background: transparent;
  border: none;
  color: #aebac1;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}

.group-menu-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Menu dropdown */
.group-dropdown-menu {
  position: absolute;
  top: 56px;
  right: 8px;
  background: #233138;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 300;
  overflow: hidden;
  min-width: 180px;
}

.group-dropdown-menu .menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: #e9edef;
}

.group-dropdown-menu .menu-item:hover {
  background: #2a3942;
}

/* Container de mensagens - tema claro */
.group-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #e5ddd5;
}

/* Banner de regras - tema claro */
.group-rules-banner {
  text-align: center;
  font-size: 12px;
  color: #54656f;
  padding: 8px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  align-self: center;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mensagem do sistema - tema claro */
.group-system-message {
  text-align: center;
  font-size: 12px;
  color: #54656f;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  align-self: center;
  margin: 8px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Botão de carregar mais mensagens */
.load-more-messages-btn {
  text-align: center;
  font-size: 13px;
  color: #fff;
  padding: 10px 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 20px;
  align-self: center;
  margin: 12px auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,211,102,0.3);
  transition: all 0.2s ease;
  font-weight: 500;
}

.load-more-messages-btn:hover {
  background: linear-gradient(135deg, #20c55e, #0f7a6d);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}

.load-more-messages-btn:active {
  transform: scale(0.98);
}

/* Mensagens - tema claro */
.group-message {
  max-width: 85%;
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.group-message.received {
  align-self: flex-start;
}

.group-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.group-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-end;
}

.group-message-content {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  max-width: 100%;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.group-message.sent .group-message-content {
  background: #d9fdd3;
}

.group-message.received .group-message-content {
  border-top-left-radius: 0;
}

.group-message.sent .group-message-content {
  border-top-right-radius: 0;
}

.group-message-sender {
  font-size: 12px;
  font-weight: 500;
  color: #00a884;
  margin-bottom: 2px;
}

.group-message-text {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  color: #111b21;
}

.group-message-time {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
  text-align: right;
}

/* Input Area - tema claro */
.group-input-area {
  padding: 8px 12px;
  background: #f0f2f5;
  display: flex;
  gap: 8px;
  align-items: center;
}

.group-attach-btn {
  background: transparent;
  border: none;
  color: #54656f;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-attach-btn:hover {
  background: rgba(0,0,0,0.05);
}

.group-input-area input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: #111b21;
}

.group-input-area input::placeholder {
  color: #667781;
}

.group-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.group-send-btn:hover {
  background: #06cf9c;
}

/* Panel Info do Grupo - tema escuro */
.group-info-panel.dark-theme {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111b21;
  z-index: 400;
  max-width: 500px;
  margin: 0 auto;
  overflow-y: auto;
}

.group-info-panel .info-header {
  background: #202c33;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  font-weight: 500;
  color: #e9edef;
}

.group-info-panel .info-content {
  padding-bottom: 20px;
}

.group-info-panel .info-group-header {
  background: #202c33;
  padding: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.group-info-panel .info-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.group-info-panel .info-group-header h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #e9edef;
}

.group-info-panel .info-group-header p {
  color: #8696a0;
  font-size: 14px;
}

.group-info-panel .info-section {
  background: #202c33;
  padding: 16px;
  margin-bottom: 8px;
}

.group-info-panel .info-section h3 {
  font-size: 14px;
  color: #00a884;
  font-weight: 500;
  margin-bottom: 8px;
}

.group-info-panel .info-section p {
  font-size: 14px;
  color: #e9edef;
  line-height: 1.5;
}

.group-info-panel .info-date {
  font-size: 12px;
  color: #8696a0;
  display: block;
  margin-top: 8px;
}

/* Stats Section - tema escuro */
.group-info-panel .stats-section {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px;
}

.group-info-panel .stat-item {
  text-align: center;
}

.group-info-panel .stat-number {
  font-size: 24px;
  font-weight: 600;
  color: #00a884;
  display: block;
}

.group-info-panel .stat-label {
  font-size: 12px;
  color: #8696a0;
}

/* Media Section - tema escuro */
.group-info-panel .media-section {
  cursor: pointer;
}

.group-info-panel .section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e9edef;
}

.group-info-panel .arrow {
  font-size: 20px;
  color: #8696a0;
}

/* Link Section - tema escuro */
.group-info-panel .link-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b141a;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.group-info-panel .link-container span {
  flex: 1;
  font-size: 13px;
  color: #00a884;
  word-break: break-all;
}

.group-info-panel .copy-btn {
  background: #00a884;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.group-info-panel .copy-btn:hover {
  background: #06cf9c;
}

/* Members Section - tema escuro */
.group-info-panel .members-section h3 {
  margin-bottom: 16px;
}

.group-info-panel .members-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-info-panel .member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #2a3942;
}

.group-info-panel .member-item:last-child {
  border-bottom: none;
}

.group-info-panel .member-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.group-info-panel .member-info {
  flex: 1;
}

.group-info-panel .member-name {
  font-size: 15px;
  font-weight: 500;
  color: #e9edef;
}

.group-info-panel .member-status {
  font-size: 13px;
  color: #8696a0;
}

.group-info-panel .member-badge {
  background: #00a884;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Action Buttons - tema escuro */
.group-info-panel .info-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-info-panel .action-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  background: #202c33;
  color: #e9edef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.group-info-panel .action-btn:hover {
  background: #2a3942;
}

.group-info-panel .action-btn.danger {
  color: #f15c6d;
}

.group-info-panel .action-btn.report {
  color: #f7b955;
}

/* Media Modal - tema escuro */
.group-media-modal.dark-theme {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111b21;
  z-index: 500;
  max-width: 500px;
  margin: 0 auto;
}

.group-media-modal .media-header {
  background: #202c33;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: #e9edef;
}

.group-media-modal .media-tabs {
  display: flex;
  background: #202c33;
  border-bottom: 2px solid #2a3942;
}

.group-media-modal .media-tabs .tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #8696a0;
  cursor: pointer;
  font-size: 13px;
  position: relative;
}

.group-media-modal .media-tabs .tab.active {
  color: #00a884;
}

.group-media-modal .media-tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00a884;
}

.group-media-modal .media-content {
  padding: 20px;
  min-height: 300px;
}

.group-media-modal .empty-media {
  text-align: center;
  padding: 60px 20px;
  color: #8696a0;
}

.group-media-modal .empty-media span {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* Toast - tema escuro */
.group-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #323739;
  color: #e9edef;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  animation: groupToastSlide 0.3s ease;
}

@keyframes groupToastSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================ */
/* MENU DROPDOWN PRINCIPAL                                       */
/* ============================================================ */

.wa-main-menu {
  position: absolute;
  top: 100%;
  right: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
  display: none;
  animation: menuSlideIn 0.15s ease;
}

.wa-main-menu.active {
  display: block;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-menu-item:hover {
  background: #f5f6f6;
}

.wa-menu-item span {
  font-size: 15px;
  color: #111b21;
}

.wa-menu-item.wa-menu-logout span {
  color: #e53935;
}

.wa-menu-divider {
  height: 1px;
  background: #e9edef;
  margin: 4px 0;
}

/* ============================================================ */
/* TELA MEU PERFIL                                               */
/* ============================================================ */

.wa-my-profile-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f0f2f5;
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.wa-my-profile-screen.active {
  display: flex;
}

.wa-my-profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wa-my-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-photo-edit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  gap: 4px;
}

.wa-photo-edit-overlay span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Campos do perfil */
.wa-my-profile-field {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border-bottom: 1px solid #e9edef;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-my-profile-field:hover {
  background: #f5f6f6;
}

.wa-my-profile-field:first-of-type {
  margin-top: 20px;
}

.wa-my-profile-field-icon svg {
  display: block;
}

.wa-my-profile-field-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-my-profile-field-label {
  font-size: 13px;
  color: #008069;
}

.wa-my-profile-field-value {
  font-size: 16px;
  color: #111b21;
}

.wa-my-profile-field-edit {
  opacity: 0.5;
}

/* Tokens */
.wa-my-profile-tokens {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  margin-top: 20px;
  border-radius: 12px;
  margin-left: 16px;
  margin-right: 16px;
}

.wa-my-profile-tokens-icon {
  font-size: 32px;
}

.wa-my-profile-tokens-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-my-profile-tokens-label {
  font-size: 13px;
  color: #92400e;
}

.wa-my-profile-tokens-value {
  font-size: 24px;
  font-weight: 700;
  color: #78350f;
}

/* Aviso */
.wa-my-profile-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin: 20px 16px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #667781;
  font-size: 13px;
  line-height: 1.5;
}

.wa-my-profile-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================ */
/* MODAL DE EDIÇÃO DE CAMPO                                      */
/* ============================================================ */

.wa-edit-field-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-edit-field-modal.active {
  display: flex;
}

.wa-edit-field-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: editFieldSlide 0.2s ease;
}

@keyframes editFieldSlide {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wa-edit-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e9edef;
}

.wa-edit-field-close,
.wa-edit-field-save {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-edit-field-title {
  font-size: 18px;
  font-weight: 500;
  color: #111b21;
}

.wa-edit-field-body {
  padding: 24px 20px;
}

.wa-edit-field-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9edef;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.wa-edit-field-input:focus {
  border-color: #008069;
}

.wa-edit-field-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #667781;
}

/* ============================================================ */
/* REGRAS PARA DESKTOP - Esconder perfil, manter layout mobile  */
/* ============================================================ */
@media (min-width: 769px) {
  /* Esconde tela de perfil do contato no desktop */
  .wa-profile-screen,
  .wa-profile-screen.active,
  .wa-profile-sidebar,
  .wa-profile-sidebar.active {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  /* Desabilita clique no avatar que abre perfil */
  .wa-chat-avatar,
  .wa-chat-info {
    pointer-events: none;
    cursor: default;
  }
}

