:root {
  --almont-blue: #32476E;
  --almont-yellow: #F1BD31;
  --almont-black: #000;
  --almont-white: #fff;
}

/* Fullscreen app container */
.almont-crm-app {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(50, 71, 110, 1), rgba(0, 0, 0, 1));
  color: rgba(255, 255, 255, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  z-index: 999999;
  display: flex;
  flex-direction: column;
}

.almont-crm-app,
.almont-crm-app * {
  box-sizing: border-box;
}

.almont-crm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.almont-crm-topbar {
  height: 64px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.76);
  color: var(--almont-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
}

.almont-crm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.almont-crm-logo {
  height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 140px !important;
  object-fit: contain;
  display: block;
}

.almont-crm-brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* marcador antigo removido */

.almont-crm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Evita estilo nativo do browser em botões/links */
.almont-crm-btn,
.almont-crm-iconbtn {
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 860px) {
  .almont-crm-topbar {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .almont-crm-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .almont-crm-btn {
    padding: 9px 12px;
    border-radius: 12px;
  }

  .almont-crm-logo {
    height: 26px;
    max-height: 26px;
  }
}

@media (max-width: 640px) {
  .almont-crm-brand-title {
    display: none;
  }

  .almont-crm-body {
    padding: 12px;
  }
}

.almont-crm-btn {
  background: var(--almont-yellow);
  border: 0;
  color: var(--almont-black);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.almont-crm-btn:hover {
  filter: brightness(0.98);
}

.almont-crm-btn:active {
  transform: translateY(1px);
}

.almont-crm-btn-ghost {
  background: rgba(50, 71, 110, 0.08);
  color: var(--almont-blue);
  border: 1px solid rgba(50, 71, 110, 0.14);
  text-decoration: none;
}

.almont-crm-btn-ghost:hover {
  background: rgba(50, 71, 110, 0.10);
}

.almont-crm-link {
  color: var(--almont-white);
  text-decoration: none;
}

.almont-crm-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px;
  position: relative;
  z-index: 1;
}

/* WhatsApp (atendimento) */
.almont-wa {
  display: flex;
  gap: 14px;
  height: calc(100vh - 64px - 36px);
}

@media (max-width: 980px) {
  .almont-wa {
    height: calc(100vh - 64px - 24px);
    min-height: calc(100vh - 64px - 24px);
    position: relative;
    overflow: hidden;
  }

  .almont-wa-list {
    width: 100%;
    max-height: none;
  }

  .almont-wa-list,
  .almont-wa-thread {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }

  /* Por padrão, mostra lista (estilo mensageiro) */
  .almont-wa-thread {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .almont-wa.is-thread-open .almont-wa-thread {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .almont-wa.is-thread-open .almont-wa-list {
    transform: translateX(-8%);
    opacity: 0;
    pointer-events: none;
  }

  .almont-wa-back {
    display: inline-flex;
  }
}

/* Back só existe para mobile; no desktop não aparece */
.almont-wa-back {
  display: none;
}

.almont-wa-list,
.almont-wa-thread {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.almont-wa-list {
  width: 360px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.almont-wa-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.almont-wa-conversations {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
}

.almont-wa-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}

.almont-wa-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(241, 189, 49, 0.18);
}

.almont-wa-item:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(2px);
}

.almont-wa-item.is-active {
  background: linear-gradient(135deg, rgba(241, 189, 49, 0.22), rgba(241, 189, 49, 0.12));
  border: 1px solid rgba(241, 189, 49, 0.30);
  box-shadow: 0 4px 20px rgba(241, 189, 49, 0.15);
}

.almont-wa-item.is-active,
.almont-wa-item.is-active .almont-wa-item__title {
  color: var(--almont-black);
}

.almont-wa-item.is-active .almont-wa-item__time {
  color: var(--almont-black);
  opacity: 0.72;
}

.almont-wa-item.is-active .almont-wa-item__last {
  color: var(--almont-black);
  opacity: 0.85;
}

/* Conversa não lida */
.almont-wa-item.has-unread {
  background: linear-gradient(135deg, rgba(50, 71, 110, 0.35), rgba(50, 71, 110, 0.20));
  border: 1px solid rgba(241, 189, 49, 0.25);
}

.almont-wa-item.has-unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--almont-yellow);
  box-shadow: 0 0 8px rgba(241, 189, 49, 0.6);
  animation: almontPulse 2s infinite;
}

@keyframes almontPulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.2);
  }
}

.almont-wa-item.has-unread .almont-wa-item__title {
  font-weight: 800;
  color: var(--almont-yellow);
}

.almont-wa-item__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(50, 71, 110, 0.5), rgba(50, 71, 110, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.almont-wa-item__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge de follow-up elegante */
.almont-wa-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-right: 8px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--almont-yellow), #e6a800);
  border: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--almont-black);
  box-shadow: 0 2px 8px rgba(241, 189, 49, 0.35);
}

/* Indicador de mensagem não lida */
.almont-wa-item.is-unread {
  background: rgba(241, 189, 49, 0.08);
}

.almont-wa-item.is-unread .almont-wa-item__title {
  font-weight: 800;
}

.almont-wa-item.is-unread .almont-wa-item__last {
  font-weight: 600;
  opacity: 1;
}

/* Se a conversa estiver ativa, o estilo ativo deve prevalecer mesmo se estiver marcada como não lida */
.almont-wa-item.is-active.has-unread,
.almont-wa-item.is-active.is-unread {
  background: linear-gradient(135deg, rgba(241, 189, 49, 0.22), rgba(241, 189, 49, 0.12));
  border: 1px solid rgba(241, 189, 49, 0.30);
  box-shadow: 0 4px 20px rgba(241, 189, 49, 0.15);
}

.almont-wa-item.is-active.has-unread .almont-wa-item__title {
  color: var(--almont-black);
}

.almont-wa-item__unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: almont-pulse 2s ease-in-out infinite;
}

@keyframes almont-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.almont-wa-item__content {
  flex: 1 1 auto;
  min-width: 0;
}

.almont-wa-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.almont-wa-item__title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-wa-item__time {
  opacity: 0.72;
  font-size: 12px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.almont-wa-item__last {
  opacity: 0.85;
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-wa-thread {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.almont-wa-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}

.almont-wa-thread-info {
  flex: 1 1 auto;
  min-width: 0;
}

.almont-wa-thread-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ícones do header do chat - estilo mais suave e arredondado */
.almont-wa-thread-actions .almont-crm-iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

.almont-wa-thread-actions .almont-crm-iconbtn:hover {
  background: rgba(241, 189, 49, 0.2);
  color: var(--almont-yellow);
  box-shadow: 0 0 12px rgba(241, 189, 49, 0.25);
}

.almont-wa-thread-actions .almont-crm-iconbtn:active {
  background: rgba(241, 189, 49, 0.3);
}

.almont-wa-thread-actions .almont-crm-iconbtn svg {
  width: 16px;
  height: 16px;
}

/* Popovers modernos (nome, cliente, vendedor) */
.almont-wa-popover {
  position: absolute;
  top: 60px;
  right: 16px;
  z-index: 100;
  min-width: 280px;
  background: rgba(30, 30, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  animation: almontPopIn 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes almontPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.almont-wa-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.almont-wa-popover__close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  transition: all 140ms ease;
}

.almont-wa-popover__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.almont-wa-popover__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.almont-wa-popover__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 140ms ease;
}

.almont-wa-popover__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.almont-wa-popover__input:focus {
  border-color: var(--almont-yellow);
  box-shadow: 0 0 0 3px rgba(241, 189, 49, 0.15);
}

.almont-wa-popover__select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}

.almont-wa-popover__select option {
  background: #1e1e2e;
  color: #fff;
}

.almont-wa-popover__btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--almont-yellow), #e6a800);
  color: var(--almont-black);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 140ms ease;
}

.almont-wa-popover__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(241, 189, 49, 0.3);
}

.almont-wa-popover__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.almont-wa-popover__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* Lista de resultados de clientes no popover */
.almont-wa-popover .almont-wa-client-results {
  grid-column: unset;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.almont-wa-client-results {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  overflow: hidden;
}

.almont-wa-client-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: var(--almont-white);
  cursor: pointer;
  transition: background 100ms ease;
}

.almont-wa-client-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.almont-wa-thread-title {
  font-weight: 800;
  font-size: 16px;
}

.almont-wa-thread-sub {
  opacity: 0.7;
  font-size: 12px;
  margin-top: 2px;
}

.almont-wa-thread-sub.is-error {
  color: var(--almont-yellow);
  opacity: 1;
}

.almont-wa-messages {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
}

/* Composer moderno - barra de envio de mensagem */
.almont-wa-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 35, 45, 0.95) 0%, rgba(25, 30, 40, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Botões de ação (anexo, follow-up) */
.almont-wa-composer__btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.almont-wa-composer__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.almont-wa-composer__btn:hover {
  background: rgba(241, 189, 49, 0.15);
  border-color: rgba(241, 189, 49, 0.3);
  color: var(--almont-yellow);
  transform: translateY(-1px);
}

.almont-wa-composer__btn:active {
  transform: translateY(0);
}

/* Campo de texto */
.almont-wa-composer__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.almont-wa-composer__input-wrap textarea {
  width: 100%;
  min-height: 42px;
  max-height: 100px;
  padding: 10px 16px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  transition: all 150ms ease;
}

.almont-wa-composer__input-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.almont-wa-composer__input-wrap textarea:focus {
  border-color: rgba(241, 189, 49, 0.5);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(241, 189, 49, 0.08);
}

/* Área de agendamento */
.almont-wa-composer__schedule {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.almont-wa-composer__schedule input[type="datetime-local"] {
  width: 170px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  outline: none;
  transition: all 150ms ease;
}

.almont-wa-composer__schedule input[type="datetime-local"]:focus {
  border-color: rgba(241, 189, 49, 0.4);
  background: rgba(0, 0, 0, 0.35);
}

/* Botão de enviar - destaque principal */
.almont-wa-composer__send {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--almont-yellow) 0%, #e6a800 100%);
  color: var(--almont-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(241, 189, 49, 0.25);
}

.almont-wa-composer__send svg {
  width: 20px;
  height: 20px;
}

.almont-wa-composer__send:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 20px rgba(241, 189, 49, 0.35);
}

.almont-wa-composer__send:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(241, 189, 49, 0.2);
}

/* Gravação de áudio */
.almont-wa-composer__btn--mic.is-recording {
  background: rgba(239, 68, 68, 0.9);
  animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.almont-wa-recording {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  flex: 1;
}

.almont-wa-recording__indicator {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink-recording 1s infinite;
}

@keyframes blink-recording {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.almont-wa-recording__time {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  min-width: 40px;
}

.almont-wa-recording__levels {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  width: 72px;
}

.almont-wa-recording__bar {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 80ms linear, opacity 80ms linear;
  opacity: 0.35;
}

.almont-wa-recording__cancel,
.almont-wa-recording__send {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.almont-wa-recording__cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
}

.almont-wa-recording__cancel:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.almont-wa-recording__send {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.almont-wa-recording__send:hover {
  background: rgba(34, 197, 94, 1);
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .almont-wa-composer {
    gap: 8px;
    padding: 10px 12px;
  }

  .almont-wa-composer__schedule {
    display: none;
    /* Esconde agendamento em mobile */
  }

  .almont-wa-composer__btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .almont-wa-composer__send {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

/* Estilos antigos (mantidos para compatibilidade) */
.almont-wa-send {
  display: none;
  /* substituído pelo composer */
}

.almont-wa-send textarea {
  flex: 1 1 auto;
  resize: none;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.almont-wa-send textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.almont-wa-followup-when {
  width: 220px;
  max-width: 44vw;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .almont-wa-send {
    flex-wrap: wrap;
  }

  .almont-wa-send textarea {
    width: 100%;
    flex: 1 1 100%;
    order: 3;
  }

  .almont-wa-meta-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .almont-wa-followup-when {
    width: 100%;
    max-width: none;
  }
}

.almont-wa-msg {
  display: flex;
  margin-bottom: 10px;
}

.almont-wa-msg--in {
  justify-content: flex-start;
}

.almont-wa-msg--out {
  justify-content: flex-end;
}

.almont-wa-msg__bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.10);
}

.almont-wa-msg--out .almont-wa-msg__bubble {
  background: rgba(241, 189, 49, 0.22);
  border-color: rgba(241, 189, 49, 0.24);
  color: rgba(0, 0, 0, 0.88);
}

.almont-wa-msg__who {
  font-weight: 700;
  margin-bottom: 6px;
}

.almont-wa-msg__text {
  white-space: pre-wrap;
}

.almont-wa-msg__text a {
  color: var(--almont-white);
  text-decoration: underline;
}

.almont-wa-msg--out .almont-wa-msg__text a {
  color: rgba(0, 0, 0, 0.88);
}

.almont-wa-msg__time {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.70;
}

/* ====== MENSAGENS DE SISTEMA ====== */
.almont-wa-msg--system {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.almont-wa-msg__system-bubble {
  background: rgba(75, 85, 99, 0.4);
  border: 1px solid rgba(107, 114, 128, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 8px 16px;
  max-width: 85%;
  text-align: center;
}

.almont-wa-msg__system-text {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.4;
}

.almont-wa-msg--system .almont-wa-msg__time {
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.6;
  text-align: center;
}

.almont-wa-msg__media {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
}

.almont-wa-msg__media:hover {
  opacity: 0.9;
}

/* ====== STICKERS ====== */
.almont-wa-msg__sticker {
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
}

/* Stickers animados - garantir que a animação funcione */
.almont-wa-msg__sticker--animated {
  image-rendering: auto;
  -webkit-animation: none;
  animation: none;
}

/* Remove fundo para stickers */
.almont-wa-msg--in .almont-wa-msg__bubble:has(.almont-wa-msg__sticker),
.almont-wa-msg--out .almont-wa-msg__bubble:has(.almont-wa-msg__sticker) {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4px;
}

audio.almont-wa-msg__media {
  max-width: 250px;
  max-height: none;
}

video.almont-wa-msg__media {
  max-width: 280px;
  max-height: 200px;
}

/* ====== PLAYER DE ÁUDIO (WHATSAPP) ====== */
.almont-wa-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 360px;
  width: 100%;
}

.almont-wa-msg--out .almont-wa-audio {
  border-color: rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18));
}

.almont-wa-audio__btn {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(0, 0, 0, 0.22);
  color: var(--almont-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.almont-wa-msg--out .almont-wa-audio__btn {
  background: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.88);
  border-color: rgba(0, 0, 0, 0.12);
}

.almont-wa-audio__btn:hover {
  opacity: 0.92;
}

.almont-wa-audio__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 189, 49, 0.35);
}

.almont-wa-audio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.almont-wa-audio__icon--pause {
  display: none;
}

.almont-wa-audio.is-playing .almont-wa-audio__icon--play {
  display: none;
}

.almont-wa-audio.is-playing .almont-wa-audio__icon--pause {
  display: inline-flex;
}

.almont-wa-audio__main {
  flex: 1 1 auto;
  min-width: 0;
}

.almont-wa-audio__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  margin-bottom: 10px;
  overflow: hidden;
}

.almont-wa-audio__bar {
  width: 2px;
  height: 100%;
  border-radius: 999px;
  transform-origin: bottom;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0.70;
}

.almont-wa-msg--out .almont-wa-audio__bar {
  background: rgba(0, 0, 0, 0.55);
}

.almont-wa-audio__range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  outline: none;
}

.almont-wa-msg--out .almont-wa-audio__range {
  background: rgba(0, 0, 0, 0.12);
}

.almont-wa-audio__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.10);
  cursor: pointer;
}

.almont-wa-audio__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.10);
  cursor: pointer;
}

.almont-wa-audio__range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
}

.almont-wa-msg--out .almont-wa-audio__range::-webkit-slider-thumb {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(0, 0, 0, 0.10);
}

.almont-wa-audio__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.80;
}

.almont-wa-audio__el {
  display: none;
}

.almont-wa-msg__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.9);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
  word-break: break-word;
  max-width: 100%;
}

.almont-wa-msg__file:hover {
  background: rgba(59, 130, 246, 1);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}

.almont-wa-msg__file::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 11v6m0 0l-2-2m2 2l2-2'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.almont-wa-msg--out .almont-wa-msg__file {
  background: rgba(21, 128, 61, 0.9);
}

.almont-wa-msg--out .almont-wa-msg__file:hover {
  background: rgba(21, 128, 61, 1);
}

.almont-crm-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 5;
}

/* ====== BARRA DE BUSCA GLOBAL ====== */
.almont-crm-search-wrap {
  position: relative;
  flex: 0 1 280px !important;
  min-width: 0 !important;
  max-width: 280px !important;
}

.almont-crm-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 2;
}

.almont-crm-search-input {
  width: 100% !important;
  height: 32px !important;
  padding: 0 48px 0 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  outline: none !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.almont-crm-search-input::placeholder {
  color: rgba(255, 255, 255, 0.28) !important;
  font-size: 12px !important;
}

.almont-crm-search-input:focus {
  border-color: rgba(241, 189, 49, 0.35) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 1.5px rgba(241, 189, 49, 0.08) !important;
}

.almont-crm-search-clear {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.35);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 5px !important;
  line-height: 1;
  border-radius: 3px;
  z-index: 2;
}

.almont-crm-search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1) !important;
}

.almont-crm-search-badge {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(241, 189, 49, 0.18);
  color: #fbbf24;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

/* Kanban filtering via search */
.almont-crm-board--searching .almont-crm-card {
  display: none;
}

.almont-crm-board--searching .almont-crm-card.almont-crm-card--search-hit {
  display: block;
  animation: searchPulse 0.4s ease-out;
}

.almont-crm-board--searching .almont-crm-column-count {
  display: none;
}

.almont-crm-board--searching .almont-crm-column-header {
  opacity: 0.5;
}

.almont-crm-board--searching .almont-crm-column-header:has(~ .almont-crm-column-body .almont-crm-card--search-hit) {
  opacity: 1;
}

/* Fallback for browsers w/o :has() — JS handles it via class */
.almont-crm-board--searching .almont-crm-column--has-hits > .almont-crm-column-header {
  opacity: 1;
}

@keyframes searchPulse {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.almont-crm-board--no-results::after {
  content: 'Nenhum lead encontrado';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .almont-crm-toolbar {
    flex-wrap: wrap;
  }

  .almont-crm-search-wrap {
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    order: 10;
  }

  .almont-crm-search-input {
    height: 32px !important;
    font-size: 12px !important;
  }
}

.almont-crm-clients-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 4;
}

.almont-crm-clients-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.almont-crm-clients-panel-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  margin: 2px 0 10px;
}

.almont-crm-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 6px;
}

.almont-crm-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 960px) {
  .almont-crm-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .almont-crm-client-grid {
    grid-template-columns: 1fr;
  }
}

.almont-crm-client-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.almont-crm-client-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.almont-crm-client-status[data-kind="error"] {
  color: rgba(241, 189, 49, 0.95);
}

.almont-crm-myclients-toolbar {
  margin-bottom: 10px;
}

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

@media (max-width: 980px) {
  .almont-crm-myclients-list {
    grid-template-columns: 1fr;
  }
}

.almont-crm-myclients-list .almont-crm-myclients-item {
  width: 100%;
  text-align: left !important;
  padding: 14px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(0, 0, 0, 0.16) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.almont-crm-myclients-list .almont-crm-myclients-item:hover {
  background: rgba(0, 0, 0, 0.20) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-1px);
}

.almont-crm-myclients-list .almont-crm-myclients-item strong {
  display: block;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94) !important;
}

.almont-crm-myclients-list .almont-crm-myclients-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72) !important;
  margin-top: 0;
  line-height: 1.2;
}

.almont-crm-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Modal de criação de negócio */
.almont-crm-newlead-form .almont-crm-client-grid>.almont-crm-newlead-client {
  grid-column: span 2;
}

/* Respiro/legibilidade específicos da modal "Novo negócio" */
.almont-crm-modal--newlead .almont-crm-modal-body {
  padding: 16px 18px 18px;
}

.almont-crm-modal--newlead .almont-crm-panel {
  padding: 16px;
}

.almont-crm-modal--newlead .almont-crm-panel-title {
  margin-bottom: 12px;
}

.almont-crm-modal--newlead .almont-crm-client-grid {
  gap: 12px;
}

.almont-crm-modal--newlead .almont-crm-owner-assign {
  margin: 14px 0 0;
  flex-wrap: wrap;
}

.almont-crm-modal--newlead .almont-crm-client-status {
  line-height: 1.2;
}

@media (max-width: 640px) {
  .almont-crm-newlead-form .almont-crm-client-grid>.almont-crm-newlead-client {
    grid-column: span 1;
  }
}

.almont-crm-client-picker {
  position: relative;
}

.almont-crm-client-picker input[type="text"] {
  min-width: 300px;
}

/* Dentro da modal, deixa o input de cliente se adaptar ao grid */
.almont-crm-modal--newlead .almont-crm-client-picker input[type="text"] {
  min-width: 0;
}

@media (max-width: 768px) {
  .almont-crm-client-picker input[type="text"] {
    min-width: 200px;
  }
}

.almont-crm-client-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 999999;
  background: rgba(20, 25, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 320px;
  overflow-y: auto;
}

/* Dropdown do cliente (Novo negócio): visual mais "menu" e menos card dentro de card */
.almont-crm-modal--newlead .almont-crm-client-results {
  top: calc(100% + 6px);
  border-radius: 12px;
  padding: 6px;
  max-height: 260px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.almont-crm-modal--newlead .almont-crm-client-item {
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  transition: background 140ms ease, transform 140ms ease;
}

.almont-crm-modal--newlead .almont-crm-client-item:hover,
.almont-crm-modal--newlead .almont-crm-client-item:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  outline: none;
}

.almont-crm-modal--newlead .almont-crm-client-item:active {
  transform: translateY(1px);
}

.almont-crm-modal--newlead .almont-crm-client-item strong {
  font-size: 14px;
}

.almont-crm-modal--newlead .almont-crm-client-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70) !important;
}

.almont-crm-client-results.is-floating {
  position: fixed;
  left: 0;
  right: auto;
  top: 0;
  min-width: 320px;
}

.almont-crm-client-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.almont-crm-client-item:hover {
  background: rgba(0, 0, 0, 0.18) !important;
}

.almont-crm-client-item strong {
  display: block;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94) !important;
  line-height: 1.15;
}

.almont-crm-client-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70) !important;
  margin-top: 0;
  line-height: 1.2;
}

.almont-crm-client-owner {
  color: rgba(241, 189, 49, 0.92) !important;
}

.almont-crm-client-results {
  padding: 8px;
}

.almont-crm-myclients-toolbar .almont-crm-input {
  max-width: 520px;
}

.almont-crm-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  color-scheme: dark;
  font-size: 14px;
  min-height: 44px;
  width: 100%;
  cursor: pointer;
}

.almont-crm-select option {
  background: #1e1e2e;
  color: #f0f0f0;
}

.almont-crm-input,
.almont-crm-select,
.almont-wa-followup-when,
.almont-wa-send textarea {
  outline: none;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.almont-crm-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.92);
  width: 100%;
  font-size: 14px;
  min-height: 44px;
}

.almont-crm-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.almont-crm-input:focus,
.almont-crm-select:focus,
.almont-wa-followup-when:focus,
.almont-wa-send textarea:focus {
  border-color: rgba(241, 189, 49, 0.34);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 3px rgba(241, 189, 49, 0.12);
}

.almont-crm-owner-assign {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}

.almont-crm-inline-form input[type="text"] {
  min-width: 320px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.almont-crm-inline-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.60);
}

.almont-crm-inline-form input[type="file"] {
  max-width: 280px;
}

.almont-crm-loading {
  color: rgba(255, 255, 255, 0.70);
  padding: 12px;
}

.almont-crm-board {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
  position: relative;
  z-index: 1;

  /* UX: rolar horizontalmente arrastando, sem scrollbar visível */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge antigo */
  cursor: grab;
}

.almont-crm-board::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.almont-crm-board.is-drag-scrolling {
  cursor: grabbing;
}

.almont-crm-board.is-drag-scrolling,
.almont-crm-board.is-drag-scrolling * {
  user-select: none;
}

.almont-crm-column {
  width: 320px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.almont-crm-column-header {
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.almont-crm-column-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.almont-crm-column-count {
  background: var(--almont-yellow);
  color: var(--almont-black);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
}

.almont-crm-column-body {
  padding: 12px;
  min-height: 160px;
}

.almont-crm-column.drag-over {
  outline: 2px dashed var(--almont-yellow);
  outline-offset: -6px;
}

.almont-crm-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: grab;
}

.almont-crm-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.almont-crm-card.dragging {
  opacity: 0.65;
}

.almont-crm-card-title {
  font-weight: 700;
  margin: 0;
}

.almont-crm-card-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
}

/* Modal */
.almont-crm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.almont-crm-modal[hidden] {
  display: none;
}

.almont-crm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.almont-crm-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.40);
}

.almont-crm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.almont-crm-modal-kicker {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 6px;
}

.almont-crm-modal-title {
  font-size: 18px;
  margin: 0;
}

.almont-crm-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(50, 71, 110, 0.14);
  background: rgba(50, 71, 110, 0.08);
  color: var(--almont-blue);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
  text-decoration: none;
}

.almont-crm-iconbtn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.almont-crm-iconbtn:hover {
  background: rgba(50, 71, 110, 0.10);
  border-color: rgba(50, 71, 110, 0.18);
  color: var(--almont-blue);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(50, 71, 110, 0.12);
}

.almont-crm-iconbtn:active {
  transform: translateY(0);
  box-shadow: none;
}

.almont-crm-iconbtn--sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.almont-crm-iconbtn--sm svg {
  width: 16px;
  height: 16px;
}

/* Estado muted (som desligado) */
.almont-crm-iconbtn.is-muted {
  opacity: 0.4;
}

.almont-crm-iconbtn.is-muted:hover {
  opacity: 0.7;
}

/* Topbar no contexto WhatsApp - ícones claros */
.almont-crm-app[data-screen="whatsapp"] .almont-crm-topbar .almont-crm-iconbtn {
  background: rgba(50, 71, 110, 0.05);
  border-color: rgba(50, 71, 110, 0.1);
}

.almont-crm-app[data-screen="whatsapp"] .almont-crm-topbar .almont-crm-iconbtn:hover {
  background: rgba(50, 71, 110, 0.1);
  border-color: rgba(50, 71, 110, 0.18);
}

/* Piloto automático (apenas visual) */
.almont-crm-iconbtn.is-on {
  border-color: var(--almont-yellow);
  box-shadow: 0 0 0 2px var(--almont-yellow);
}

.almont-crm-tipwrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.almont-crm-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
  z-index: 9;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.almont-crm-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.almont-crm-modal-body {
  padding: 14px 16px 16px;
}

.almont-crm-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Modal (Novo negócio) - 1 coluna e mais compacta */
.almont-crm-modal-grid.almont-crm-modal-grid--single {
  grid-template-columns: 1fr;
}

.almont-crm-modal-card.almont-crm-modal-card--newlead {
  width: min(720px, calc(100% - 28px));
}

@media (max-width: 900px) {
  .almont-crm-modal-grid {
    grid-template-columns: 1fr;
  }

  .almont-crm-modal-quickactions {
    flex-wrap: wrap;
    padding: 8px 12px 0;
  }

  .almont-crm-qaction {
    flex: 1 1 auto;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }

  .almont-crm-section-header {
    font-size: 13px;
    padding: 6px 0 4px;
  }

  .almont-crm-kv {
    grid-template-columns: 100px 1fr;
    gap: 8px;
    padding: 7px 0;
  }

  .almont-crm-k {
    font-size: 12px;
  }

  .almont-crm-btn--save {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .almont-crm-modal-quickactions {
    flex-direction: column;
    gap: 8px;
  }

  .almont-crm-qaction {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 14px;
    min-height: 48px;
  }

  .almont-crm-kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .almont-crm-k {
    padding-bottom: 0;
  }
}

.almont-crm-panel {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
}

.almont-crm-panel-title {
  font-weight: 800;
  margin-bottom: 10px;
}

/* === Section Headers (icon + label) === */
.almont-crm-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 0 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.almont-crm-section-header svg {
  color: rgba(241, 189, 49, 0.85);
  flex-shrink: 0;
}

/* === Quick Actions Bar === */
.almont-crm-modal-quickactions {
  display: flex;
  gap: 10px;
  padding: 10px 16px 0;
}

.almont-crm-qaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 150ms ease;
  color: #fff;
}

.almont-crm-qaction--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.almont-crm-qaction--wa:hover {
  background: linear-gradient(135deg, #22c55e, #0f766e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.almont-crm-qaction--system {
  background: linear-gradient(135deg, #10b981, #059669);
}

.almont-crm-qaction--system:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* === Save Button prominent === */
.almont-crm-save-row {
  padding: 10px 0 4px;
}

.almont-crm-btn--save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--almont-yellow), #e5a100);
  color: #1a1a2e;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.almont-crm-btn--save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(241, 189, 49, 0.35);
}

/* === Admin Zone === */
.almont-crm-admin-zone {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Search field with icon === */
.almont-crm-search-field {
  position: relative;
}

.almont-crm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.almont-crm-input--search {
  padding-left: 38px !important;
}

.almont-crm-kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  align-items: center;
}

.almont-crm-kv:first-of-type {
  border-top: 0;
}

.almont-crm-k {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.almont-crm-k svg {
  color: rgba(255, 255, 255, 0.50);
  flex-shrink: 0;
}

.almont-crm-v {
  color: rgba(255, 255, 255, 0.92);
}

.almont-crm-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.almont-crm-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
}

.almont-crm-note-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 6px;
}

.almont-crm-note-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  resize: vertical;
  font-size: 14px;
  min-height: 80px;
}

.almont-crm-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.almont-crm-note-hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
}

.almont-crm-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.almont-crm-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.almont-crm-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.almont-crm-switch-ui::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
}

.almont-crm-switch input:checked+.almont-crm-switch-ui {
  background: rgba(241, 189, 49, 0.35);
  border-color: rgba(241, 189, 49, 0.55);
}

.almont-crm-switch input:checked+.almont-crm-switch-ui::after {
  left: 21px;
}

.almont-crm-switch-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

/* ===== Stage confirm on note save ===== */
.almont-crm-note-stage-confirm {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.almont-crm-note-stage-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.almont-crm-note-stage-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.almont-crm-select--sm,
.almont-crm-input--sm {
  font-size: 12px !important;
  padding: 5px 8px !important;
  height: 30px !important;
  border-radius: 8px !important;
}
textarea.almont-crm-input--sm {
  height: auto !important;
  min-height: 44px !important;
  resize: vertical;
}

/* ===== Inline reminder form ===== */
.almont-crm-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s;
}
.almont-crm-btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(241,189,49,0.4);
  color: rgba(241,189,49,0.9);
}
.almont-crm-btn--ghost.active {
  background: rgba(241,189,49,0.12);
  border-color: rgba(241,189,49,0.5);
  color: rgba(241,189,49,0.95);
}
.almont-crm-btn--sm {
  padding: 4px 10px;
  font-size: 12px;
}
.almont-crm-reminder-inline {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(241,189,49,0.06);
  border: 1px solid rgba(241,189,49,0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.almont-crm-reminder-row {
  width: 100%;
}
.almont-crm-reminder-row--datetime {
  display: flex;
  gap: 6px;
}
.almont-crm-reminder-row--datetime input {
  flex: 1;
}
.almont-crm-reminder-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.almont-crm-empty {
  max-width: 680px;
}

/* Login view */
.almont-crm-login {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.almont-crm-login-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 22px;
}

.almont-crm-muted {
  color: rgba(0, 0, 0, 0.65);
  margin-top: 6px;
}

.almont-crm-login-card #loginform {
  margin-top: 14px;
}

.almont-crm-login-card input[type="text"],
.almont-crm-login-card input[type="password"] {
  width: 100%;
}

.almont-crm-login-card input[type="submit"] {
  background: var(--almont-blue);
  border-color: var(--almont-blue);
}

.almont-crm-login-card input[type="submit"]:hover {
  filter: brightness(1.05);
}

/* ====== LIGHTBOX PARA IMAGENS ====== */
.almont-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  animation: almont-lightbox-fadein 0.2s ease;
}

@keyframes almont-lightbox-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.almont-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.almont-lightbox__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.almont-lightbox__header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.almont-lightbox__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.almont-lightbox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.almont-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.almont-lightbox__btn:active {
  transform: scale(0.92);
}

.almont-lightbox__btn--close {
  background: rgba(220, 53, 69, 0.85);
}

.almont-lightbox__btn--close:hover {
  background: rgba(220, 53, 69, 1);
}

.almont-lightbox__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 16px 16px;
  touch-action: pan-x pan-y pinch-zoom;
}

.almont-lightbox__img {
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  animation: almont-lightbox-img-pop 0.25s ease;
}

@keyframes almont-lightbox-img-pop {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

.almont-lightbox__img:active {
  cursor: grabbing;
}

/* Lightbox: Footer com informações */
.almont-lightbox__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  pointer-events: none;
}

/* Lightbox: Responsivo Mobile */
@media (max-width: 640px) {
  .almont-lightbox__header {
    padding: 8px 12px;
  }
  
  .almont-lightbox__btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  
  .almont-lightbox__btn svg {
    width: 18px;
    height: 18px;
  }
  
  .almont-lightbox__btn--close svg {
    width: 22px;
    height: 22px;
  }
  
  .almont-lightbox__body {
    padding: 50px 8px 8px;
  }
  
  .almont-lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
  }
  
  /* Esconde botões de zoom no mobile (usa pinch) */
  .almont-lightbox__btn[data-action="zoom-in"],
  .almont-lightbox__btn[data-action="zoom-out"],
  .almont-lightbox__btn[data-action="reset"] {
    display: none;
  }
  
  .almont-lightbox__footer {
    padding: 12px;
    font-size: 12px;
  }
}

/* Lightbox: Oculto quando não ativo */
.almont-lightbox[style*="display: none"],
.almont-lightbox[style*="display:none"] {
  visibility: hidden;
}

.almont-wa-msg__media--clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.almont-wa-msg__media--clickable:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* === Source Badge para conversas do vendedor === */

/* === Source Badge para conversas do vendedor === */
.almont-wa-item__source-badge {
  display: inline-flex;
  font-size: 11px;
  margin-right: 4px;
  vertical-align: middle;
}

.almont-wa-item.is-seller {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
  border-left: 3px solid #2563eb;
}

.almont-wa-item.is-seller:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, transparent 100%);
}

.almont-wa-item.is-seller.is-active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, #2563eb 100%);
  border-left-color: #1d4ed8;
}

.almont-wa-item__owner--seller {
  color: #2563eb;
  font-weight: 500;
}

/* === Melhorias de legibilidade para lista de conversas === */

/* Container do conteúdo da conversa */
.almont-wa-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Linha superior com título e hora */
.almont-wa-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Título mais legível */
.almont-wa-item__title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.3;
}

/* Preview da última mensagem */
.almont-wa-item__last {
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.3;
}

/* Label do vendedor */
.almont-wa-item__owner {
  font-size: 11px;
  margin-top: 4px;
  padding: 3px 8px;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-block;
  max-width: fit-content;
}

.almont-wa-item__owner--seller {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

/* Item de conversa do vendedor */
.almont-wa-item.is-seller {
  border-left: 3px solid rgba(16, 185, 129, 0.5);
}

.almont-wa-item.is-seller:hover {
  border-left-color: #10b981;
}

/* Badges e indicadores */
.almont-wa-item__unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--almont-yellow);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s infinite;
}

.almont-wa-item__source-badge {
  margin-right: 4px;
  font-size: 12px;
}

.almont-wa-item__badge {
  background: var(--almont-yellow);
  color: var(--almont-black);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

/* Item não lido destacado */
.almont-wa-item.is-unread {
  background: rgba(50, 71, 110, 0.4);
  border: 1px solid rgba(241, 189, 49, 0.3);
}

.almont-wa-item.is-unread .almont-wa-item__title {
  color: var(--almont-yellow);
  font-weight: 700;
}

.almont-wa-item.is-unread .almont-wa-item__last {
  color: rgba(255, 255, 255, 0.85);
}

/* Item ativo */
.almont-wa-item.is-active {
  background: linear-gradient(135deg, rgba(241, 189, 49, 0.25), rgba(241, 189, 49, 0.15));
}

.almont-wa-item.is-active .almont-wa-item__title,
.almont-wa-item.is-active .almont-wa-item__last,
.almont-wa-item.is-active .almont-wa-item__time {
  color: #fff;
}

/* Avatar melhorado - mantém dimensões e estilo consistente */
.almont-wa-item__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(50, 71, 110, 0.5), rgba(50, 71, 110, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}

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

/* Fallback quando não há imagem */
.almont-wa-item__avatar:empty::before {
  content: '?';
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* === CORREÇÃO: Garantir legibilidade das conversas === */
/* Estado base - fundo escuro, texto claro */
.almont-wa-item {
  background: rgba(0, 0, 0, 0.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.almont-wa-item__title {
  color: rgba(255, 255, 255, 0.95) !important;
}

.almont-wa-item__time {
  color: rgba(255, 255, 255, 0.7) !important;
}

.almont-wa-item__last {
  color: rgba(255, 255, 255, 0.75) !important;
}

.almont-wa-item__owner {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Hover - destaque sutil */
.almont-wa-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Conversa ativa - destaque dourado */
.almont-wa-item.is-active {
  background: linear-gradient(135deg, rgba(241, 189, 49, 0.25), rgba(241, 189, 49, 0.15)) !important;
  border: 1px solid rgba(241, 189, 49, 0.35) !important;
}

.almont-wa-item.is-active .almont-wa-item__title,
.almont-wa-item.is-active .almont-wa-item__time,
.almont-wa-item.is-active .almont-wa-item__last {
  color: #fff !important;
}

/* Conversa não lida */
.almont-wa-item.is-unread,
.almont-wa-item.has-unread {
  background: rgba(50, 71, 110, 0.35) !important;
  border-left: 3px solid var(--almont-yellow) !important;
}

.almont-wa-item.is-unread .almont-wa-item__title,
.almont-wa-item.has-unread .almont-wa-item__title {
  color: var(--almont-yellow) !important;
  font-weight: 700;
}

/* Conversa do vendedor */
.almont-wa-item.is-seller {
  border-left: 3px solid #2563eb !important;
}
/* === Timeline Modal Styles === */
#almont-wa-timeline-modal .almont-crm-modal-card {
  background: #1e293b; /* Dark Slate */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
}

#almont-wa-timeline-modal .almont-crm-modal-title {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 600;
}

#almont-wa-timeline-modal .almont-crm-iconbtn {
  color: #94a3b8;
}

#almont-wa-timeline-modal .almont-crm-iconbtn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-left: 16px; 
}

/* Linha conectora vertical */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px; /* Centralizar com o ícone/dot */
    top: 24px;
    bottom: -16px; /* Estender até o próximo item */
    width: 2px;
    background: rgba(255, 255, 255, 0.08); 
    z-index: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .t-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    z-index: 1;
    border: 2px solid #1e293b; /* Cor do fundo do modal para "cortar" a linha */
    box-sizing: content-box; 
    /* A cor de fundo vem inline do PHP */
}

.timeline-item .t-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
}

.timeline-item .t-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.timeline-item .t-user {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-item .t-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

.timeline-item .t-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.timeline-item .t-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.timeline-item .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    /* Cores vêm inline */
}

.timeline-item .t-detail {
    color: #64748b;
    font-size: 0.8rem;
}

/* Products in Modal */
.almont-crm-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.almont-crm-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.03);
  padding: 8px;
  border-radius: 6px;
}

.almont-crm-product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.almont-crm-product-info {
  flex: 1;
  min-width: 0;
}

.almont-crm-product-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-crm-product-price {
  font-size: 12px;
  opacity: 0.7;
}

.almont-crm-product-actions {
  flex: 0 0 auto;
}

.almont-crm-product-add {
  position: relative;
}

.almont-crm-product-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e2235 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 6px;
  padding: 6px;
  display: flex !important;
  flex-direction: column !important;
}

.almont-crm-product-result {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  width: 100% !important;
  padding: 10px;
  border: none;
  background: transparent !important;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background 120ms ease;
  flex-shrink: 0;
}

.almont-crm-product-result:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.almont-crm-product-result + .almont-crm-product-result {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.almont-crm-product-result img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
}

.almont-crm-product-result div {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.almont-crm-product-result strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-crm-product-result div > div {
  font-size: 12px;
  color: rgba(241, 189, 49, 0.85) !important;
  margin-top: 3px;
  font-weight: 500;
}

.almont-crm-price-empty {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ====== WHATSAPP CONNECT - DESIGN PREMIUM ====== */
.almont-wa-connect-btn {
  position: relative;
}

.almont-wa-connect-btn::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.5);
  animation: almont-wa-pulse 2s ease-in-out infinite;
}

@keyframes almont-wa-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(37, 211, 102, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 2px 16px rgba(37, 211, 102, 0.8); }
}

/* Fullscreen Takeover */
.almont-wa-connect-modal {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.almont-wa-connect-modal[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Split Layout */
.almont-wa-connect-split {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left Panel - Branding */
.almont-wa-connect-left {
  flex: 0 0 45%;
  background: linear-gradient(165deg, #075E54 0%, #128C7E 50%, #25D366 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.almont-wa-connect-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.05'%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");
  opacity: 0.5;
}

.almont-wa-connect-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.almont-wa-connect-logo {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: almont-wa-float 4s ease-in-out infinite;
}

@keyframes almont-wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.almont-wa-connect-logo svg {
  width: 64px;
  height: 64px;
  fill: #fff;
}

.almont-wa-connect-brand h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.almont-wa-connect-brand p {
  margin: 0;
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 280px;
}

.almont-wa-connect-features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.almont-wa-connect-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.almont-wa-connect-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Powered by Almont */
.almont-wa-connect-powered {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.almont-wa-powered-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.almont-wa-connect-powered:hover .almont-wa-powered-logo,
.almont-wa-connect-powered strong {
  opacity: 1;
}

/* Right Panel - QR Code */
.almont-wa-connect-right {
  flex: 1;
  background: linear-gradient(180deg, #0a0d14 0%, #111827 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.almont-wa-connect-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.almont-wa-connect-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: scale(1.05);
}

.almont-wa-connect-qr-wrapper {
  text-align: center;
  max-width: 400px;
}

.almont-wa-connect-qr-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.almont-wa-connect-qr-subtitle {
  margin: 0 0 32px;
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.5;
}

/* QR Code Box */
.almont-wa-qrcode-box {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.1),
    0 20px 50px rgba(0,0,0,0.4),
    0 0 100px rgba(37, 211, 102, 0.15);
  margin-bottom: 24px;
}

.almont-wa-qrcode-box::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #25D366, #128C7E, #075E54);
  border-radius: 27px;
  z-index: -1;
  opacity: 0.6;
}

.almont-wa-qrcode-inner {
  width: 240px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.almont-wa-qrcode-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 8px;
}

/* QR Timer */
.almont-wa-qr-timer {
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 12px;
  color: #60a5fa;
  text-align: center;
}

.almont-wa-qr-timer span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Loading State */
.almont-wa-qrcode-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #374151;
}

.almont-wa-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #25D366;
  border-radius: 50%;
  animation: almont-wa-spin 0.8s linear infinite;
}

@keyframes almont-wa-spin {
  to { transform: rotate(360deg); }
}

.almont-wa-qrcode-loading span {
  font-size: 14px;
  font-weight: 500;
}

/* Success State */
.almont-wa-qrcode-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #059669;
}

.almont-wa-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: almont-wa-success-pop 0.5s ease;
}

@keyframes almont-wa-success-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.almont-wa-success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.almont-wa-qrcode-success h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* Status Badge */
.almont-wa-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.almont-wa-status--waiting {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.almont-wa-status--waiting::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  animation: almont-wa-blink 1.5s ease-in-out infinite;
}

@keyframes almont-wa-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.almont-wa-status--success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.almont-wa-status--error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Error State */
.almont-wa-qrcode-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.almont-wa-error-icon {
  margin-bottom: 8px;
}

.almont-wa-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.almont-wa-retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.almont-wa-retry-btn:active {
  transform: translateY(0);
}

/* Instructions */
.almont-wa-instructions {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  text-align: left;
}

.almont-wa-instructions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
}

.almont-wa-instructions ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 2;
}

.almont-wa-instructions strong {
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .almont-wa-connect-left {
    display: none;
  }
  
  .almont-wa-connect-right {
    padding: 24px;
  }
  
  .almont-wa-connect-qr-title {
    font-size: 24px;
  }
  
  .almont-wa-qrcode-inner {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .almont-wa-connect-right {
    padding: 20px;
    padding-top: 70px;
  }
  
  .almont-wa-qrcode-box {
    padding: 16px;
    border-radius: 20px;
  }
  
  .almont-wa-qrcode-inner {
    width: 180px;
    height: 180px;
  }
  
  .almont-wa-instructions {
    margin-top: 24px;
    padding: 16px;
  }
}

/* ========================================
   Lembretes/Reminders
   ======================================== */

/* Badge no botão de lembretes */
#almont-wa-reminders-btn,
#almont-global-reminders-btn {
  position: relative;
}

.almont-wa-reminders-badge,
.almont-global-reminders-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  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;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Lista de lembretes no popover */
.almont-wa-reminders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.almont-wa-reminder-item {
  background: rgba(55, 65, 81, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.almont-wa-reminder-item:hover {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(139, 92, 246, 0.4);
}

.almont-wa-reminder-item.is-overdue {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.almont-wa-reminder-item.is-soon {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
}

.almont-wa-reminder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.almont-wa-reminder-subject {
  font-weight: 600;
  color: #f3f4f6;
  font-size: 13px;
  flex: 1;
  word-break: break-word;
}

.almont-wa-reminder-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.almont-wa-reminder-status.is-pending {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.almont-wa-reminder-status.is-overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.almont-wa-reminder-status.is-soon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.almont-wa-reminder-status.is-completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.almont-wa-reminder-message {
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-wa-reminder-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
}

.almont-wa-reminder-meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.almont-wa-reminder-datetime {
  display: flex;
  align-items: center;
  gap: 4px;
}

.almont-wa-reminder-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.almont-wa-reminder-action {
  background: rgba(75, 85, 99, 0.5);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  color: #d1d5db;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.almont-wa-reminder-action:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.almont-wa-reminder-action.is-complete:hover {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.almont-wa-reminder-action.is-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Badge piscante para lembrete vencido */
.almont-wa-reminders-badge.is-overdue,
.almont-global-reminders-badge.is-overdue {
  animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  }
}

/* ========================================
   Global Reminders List (Modal)
   ======================================== */
.almont-global-reminders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.almont-global-reminder-item {
  background: rgba(55, 65, 81, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.almont-global-reminder-item:hover {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(139, 92, 246, 0.4);
}

.almont-global-reminder-item.is-overdue {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.almont-global-reminder-item.is-soon {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
}

.almont-global-reminder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.almont-global-reminder-contact {
  font-weight: 600;
  color: #f3f4f6;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.almont-global-reminder-contact svg {
  color: #22c55e;
  opacity: 0.8;
}

.almont-global-reminder-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.almont-global-reminder-status.is-pending {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.almont-global-reminder-status.is-overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.almont-global-reminder-status.is-soon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.almont-global-reminder-message {
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.almont-global-reminder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.almont-global-reminder-datetime {
  display: flex;
  align-items: center;
  gap: 4px;
}

.almont-global-reminder-datetime svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.almont-global-reminder-actions {
  display: flex;
  gap: 6px;
}

.almont-global-reminder-action {
  background: rgba(75, 85, 99, 0.5);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  color: #d1d5db;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.almont-global-reminder-action:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.almont-global-reminder-action.is-complete:hover {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.almont-global-reminder-action.is-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.almont-global-reminders-empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 20px;
}

.almont-global-reminders-empty svg {
  margin: 0 auto 12px;
  opacity: 0.5;
}

.almont-global-reminders-empty p {
  margin: 0;
  font-size: 14px;
}
