﻿/* ============================================================
   FINANCEL  MODAL NOVIDADE WHATSAPP (v2 Clean)
   Design minimalista inspirado no visual do WhatsApp
   ============================================================ */

/* Overlay escuro simples */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.news-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Container do modal - estilo WhatsApp */
.news-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #111b21;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.news-modal-overlay.active .news-modal {
  transform: scale(1) translateY(0);
}

/* Header verde WhatsApp */
.news-modal__header {
  background: #00a884;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

/* Icone WhatsApp */
.news-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-modal__icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Titulo */
.news-modal__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* Corpo */
.news-modal__body {
  padding: 20px;
  background: #111b21;
}

/* Chat bubbles simulando conversa */
.news-modal__chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.news-modal__bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.news-modal__bubble--user {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.news-modal__bubble--bot {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.news-modal__bubble strong {
  color: #00a884;
}

/* Passos numerados */
.news-modal__steps {
  background: #1f2c34;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.news-modal__steps-title {
  color: #8696a0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.news-modal__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #e9edef;
  font-size: 0.85rem;
}

.news-modal__step:not(:last-child) {
  border-bottom: 1px solid rgba(134, 150, 160, 0.15);
}

.news-modal__step-num {
  width: 24px;
  height: 24px;
  background: #00a884;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Footer com botoes */
.news-modal__footer {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-modal__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #00a884;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.news-modal__btn-primary:hover {
  background: #008f72;
}

.news-modal__btn-primary svg {
  width: 18px;
  height: 18px;
}

.news-modal__btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: #8696a0;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}

.news-modal__btn-secondary:hover {
  color: #aebac1;
}

/* Responsivo */
@media (max-width: 400px) {
  .news-modal {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .news-modal__header {
    padding: 20px 16px;
  }
  
  .news-modal__body {
    padding: 16px;
  }
  
  .news-modal__footer {
    padding: 0 16px 16px;
  }
}
