/* ==========================================================================
   FREQUÊNCIAS DA CURA DIVINA — DESIGN SYSTEM V2 (MOBILE-FIRST PREMIUM)
   Focado em Alta Conversão, Interatividade, Fluidez e Sons
   ========================================================================== */

:root {
  --color-primary: #0D1627;
  --color-primary-card: #15233E;
  --color-primary-light: #1E335B;
  --color-gold: #D4A853;
  --color-gold-light: #F7E0A5;
  --color-gold-dark: #9A7426;
  --color-gold-gradient: linear-gradient(135deg, #F3D288 0%, #D4A853 50%, #B28325 100%);
  --color-gold-glow: rgba(212, 168, 83, 0.4);

  --color-bg-app: #080D18;
  --color-bg-chat: #F4F1EA;
  --color-surface-card: #FFFFFF;
  --color-border-subtle: #E3DDD1;
  
  --color-text-main: #19202E;
  --color-text-muted: #576479;
  --color-text-light: #FFFFFF;
  
  --color-online: #22C55E;
  --color-accent-green: #10B981;

  --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-serif: 'Cinzel', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-bubble: 0 3px 12px rgba(13, 22, 39, 0.07);
  --shadow-gold: 0 6px 20px var(--color-gold-glow);

  --chat-max-width: 520px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset e Configuração Básica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family-sans);
  background-color: var(--color-bg-app);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.48;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   APP WRAPPER MOBILE-FIRST
   ========================================================================== */

.chat-app {
  width: 100%;
  max-width: var(--chat-max-width);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-chat);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

@media (min-width: 540px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #15243F 0%, #080D18 100%);
    padding: 12px 0;
  }
  .chat-app {
    height: 96dvh;
    max-height: 920px;
    border-radius: 28px;
    border: 1px solid rgba(212, 168, 83, 0.28);
  }
}

/* ==========================================================================
   HEADER PREMIUM ESTILO MENSAGEIRO
   ========================================================================== */

.chat-header {
  position: relative;
  z-index: 30;
  background: linear-gradient(180deg, #0F1A2E 0%, #0A1222 100%);
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(212, 168, 83, 0.22);
  flex-shrink: 0;
  padding-top: var(--safe-top);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.chat-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.header-emblem-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1F3660 0%, #0B1322 100%);
  border: 1.8px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(212, 168, 83, 0.2);
}

.frequency-wave-icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold-light);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.header-brand-title {
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-family-serif);
  letter-spacing: 0.6px;
  color: #F8E2AC;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gold-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-gold);
  display: inline-block;
  box-shadow: 0 0 6px var(--color-gold);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.status-guide-text {
  font-size: 11.5px;
  color: #9EAFCA;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-online);
  border: 2px solid #0F1A2E;
  box-shadow: 0 0 6px var(--color-online);
}

.agent-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agent-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.agent-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.verified-badge {
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.verified-badge svg {
  width: 15px;
  height: 15px;
}

.agent-status {
  font-size: 11.5px;
  color: #9EAFCA;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-online);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Botão de Som */
.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s;
}

.btn-sound-toggle:active {
  transform: scale(0.9);
}

.btn-sound-toggle.muted {
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.03);
}

/* Botão de Atalho para Oferta no Topo */
.btn-header-offer {
  background: var(--color-gold-gradient);
  border: none;
  color: #0E1627;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px var(--color-gold-glow);
  transition: transform 0.15s ease;
}

.btn-header-offer:active {
  transform: scale(0.92);
}

.btn-header-reset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #A0B0CB;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-header-reset:active {
  transform: scale(0.9);
  color: #FFFFFF;
}

/* Barra de Progresso com Brilho */
.progress-bar-track {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.progress-bar-glow {
  height: 100%;
  background: var(--color-gold-gradient);
  box-shadow: 0 0 10px var(--color-gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   FEED DE MENSAGENS E ROLAGEM
   ========================================================================== */

.chat-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.chat-main::-webkit-scrollbar {
  width: 4px;
}
.chat-main::-webkit-scrollbar-thumb {
  background-color: rgba(13, 22, 39, 0.15);
  border-radius: 4px;
}

.chat-intro-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  text-align: center;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(13, 22, 39, 0.05);
  border: 1px solid rgba(13, 22, 39, 0.08);
  color: var(--color-text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.date-chip {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7A879D;
  background-color: #E6E1D4;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Bolhas de Mensagem */
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  animation: popInBubble 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scroll-margin-top: 76px;
}

@keyframes popInBubble {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble-row.bot {
  justify-content: flex-start;
  padding-right: 22px;
}

.bubble-row.user {
  justify-content: flex-end;
  padding-left: 32px;
}

.mini-avatar-bot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0F1A2E;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.bubble-box {
  padding: 11px 14px;
  border-radius: 17px;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.bubble-row.bot .bubble-box {
  background-color: var(--color-surface-card);
  color: var(--color-text-main);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-bubble);
}

.bubble-row.user .bubble-box {
  background: linear-gradient(135deg, #101D35 0%, #1A2F55 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  box-shadow: 0 4px 12px rgba(16, 29, 53, 0.22);
}

.bubble-box strong {
  color: #0D1627;
  font-weight: 700;
}

.bubble-row.user .bubble-box strong {
  color: var(--color-gold-light);
}

.bubble-meta-time {
  display: block;
  font-size: 10px;
  color: #8C99AB;
  margin-top: 3px;
  text-align: right;
}

.bubble-row.user .bubble-meta-time {
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   FIGURINHAS DO WHATSAPP (STICKERS CRISTÃOS DE ALTA INTERAÇÃO)
   ========================================================================== */

.chat-sticker-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  animation: popInBubble 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scroll-margin-top: 76px;
  padding-right: 22px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.chat-sticker-container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.chat-sticker-img {
  width: 210px;
  max-width: 74vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(13, 22, 39, 0.16));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

.chat-sticker-container:hover .chat-sticker-img,
.chat-sticker-container:active .chat-sticker-img {
  transform: scale(1.06) rotate(-1.5deg);
}

.chat-sticker-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #7A879D;
  margin-top: 4px;
  margin-left: 6px;
  font-weight: 600;
}

.chat-sticker-meta .check-double {
  color: #38BDF8;
  font-size: 11px;
}

/* ==========================================================================
   GIFS RELIGIOSOS ANIMADOS
   ========================================================================== */

.chat-gif-card {
  width: 100%;
  max-width: 285px;
  background: #0D1627;
  border: 1.5px solid rgba(200, 169, 81, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(13, 22, 39, 0.12);
  margin-top: 4px;
  margin-bottom: 6px;
  position: relative;
  scroll-margin-top: 76px;
  animation: popInBubble 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gif-frame {
  position: relative;
  width: 100%;
  background: #060B14;
  cursor: pointer;
  display: block;
  overflow: hidden;
}

.gif-frame img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.gif-badge-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(13, 22, 39, 0.88);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gif-caption-text {
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #F1ECE2;
  background: linear-gradient(180deg, #10192A 0%, #0A101C 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   BALÕES DE MENSAGEM DE VOZ (ESTILO WHATSAPP COM ONDAS E TRANSCRIÇÃO)
   ========================================================================== */

.chat-voicenote-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  animation: popInBubble 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scroll-margin-top: 76px;
  padding-right: 20px;
  margin-top: 4px;
  margin-bottom: 6px;
}

.chat-voicenote-bubble {
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 12px 8px 11px;
  box-shadow: 0 4px 14px rgba(13, 22, 39, 0.08);
  box-sizing: border-box;
}

.vn-header {
  display: none !important;
}

.vn-author {
  display: none !important;
}

.vn-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vn-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.vn-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0F1A2E;
  color: #D4AF37;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #D4AF37;
}

.vn-mic-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}

.vn-player-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vn-controls-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vn-btn-play {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.vn-btn-play:active {
  transform: scale(0.92);
}

.vn-track-container {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2.5px;
  cursor: pointer;
  position: relative;
}

.vn-wave-bar {
  flex: 1;
  background-color: #CBD5E1;
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.15s ease;
}

.vn-wave-bar.played {
  background-color: #25D366;
}

.vn-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  margin-top: 3px;
}

.vn-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vn-timestamp {
  font-size: 10px;
  color: #79869A;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.vn-timestamp .check-double {
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
}

.vn-speed-btn {
  background: rgba(13, 22, 39, 0.08);
  border: none;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.vn-transcript-toggle {
  font-size: 11px;
  color: #0284C7;
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
  text-decoration: underline;
}

.vn-transcript-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: #F8FAFC;
  border-left: 2.5px solid #25D366;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
  display: none;
}

/* ==========================================================================
   CARDS DE IMAGENS E MÍDIAS (PROPORCIONADOS PARA CELULAR)
   ========================================================================== */

.chat-image-card {
  width: 100%;
  max-width: 325px;
  background: var(--color-surface-card);
  border-radius: 16px;
  border: 1.5px solid var(--color-border-subtle);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 22, 39, 0.08);
  margin-top: 5px;
  margin-bottom: 7px;
  position: relative;
  scroll-margin-top: 76px;
  animation: popInBubble 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.image-frame {
  position: relative;
  width: 100%;
  max-height: 480px;
  background-color: #0A101C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.image-frame img {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.zoom-indicator-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(13, 22, 39, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #DFBE6B;
  border: 1px solid rgba(212, 168, 83, 0.45);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.image-frame:hover .zoom-indicator-pill,
.news-image-frame:hover .zoom-indicator-pill {
  transform: scale(1.04);
}

.expert-photo-hint {
  font-size: 11px;
  color: #8C6A1D;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

.image-caption-text {
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  background-color: #FAF8F4;
  border-top: 1px solid var(--color-border-subtle);
  line-height: 1.4;
}

.image-caption-text strong {
  color: var(--color-primary);
}

/* ==========================================================================
   CARDS DE NOTÍCIAS JORNALÍSTICAS (PROPORCIONADAS PARA CELULAR)
   ========================================================================== */

.chat-news-card {
  width: 100%;
  max-width: 325px;
  background: var(--color-surface-card);
  border-radius: 16px;
  border: 1.5px solid var(--color-border-subtle);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 22, 39, 0.08);
  margin-top: 5px;
  margin-bottom: 7px;
  position: relative;
  scroll-margin-top: 76px;
  animation: popInBubble 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8F5EE;
  border-bottom: 1px solid var(--color-border-subtle);
}

.news-outlet-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.news-outlet-tag.g1 {
  color: #C4170C;
}

.news-outlet-tag.tuasaude {
  color: #0284C7;
}

.news-verified-pill {
  font-size: 10px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2.5px 7px;
  border-radius: var(--radius-pill);
}

.news-image-frame {
  position: relative;
  width: 100%;
  max-height: 480px;
  background-color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.news-image-frame img {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.news-takeaway-box {
  padding: 10px 13px;
  background-color: #FAF8F4;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-main);
}

.news-takeaway-box strong {
  color: var(--color-primary);
}

.image-caption-text.social-note {
  font-size: 11px;
  background-color: #F1ECE2;
  color: #6C7787;
  font-style: italic;
}

/* ==========================================================================
   CARDS DE ESPECIALISTAS & AUTORIDADES (RODRIGO SILVA & DR. EFRAIM NISSIM)
   ========================================================================== */

.chat-expert-card {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
  border: 1.5px solid #E2D7BE;
  border-radius: var(--radius-lg);
  padding: 13px 13px 14px;
  box-shadow: 0 4px 16px rgba(13, 22, 39, 0.07);
  margin-bottom: 6px;
  animation: popInBubble 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
  scroll-margin-top: 76px;
}

.expert-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(200, 169, 81, 0.25);
}

.expert-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8C6A1D;
  background: rgba(200, 169, 81, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.expert-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #15803D;
  background: rgba(22, 163, 74, 0.12);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
}

.expert-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.expert-photo-wrap {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #DFBE6B, #8C6A1D);
  box-shadow: 0 4px 12px rgba(140, 106, 29, 0.24);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.expert-photo-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(223, 190, 107, 0.4);
}

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

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

.expert-name {
  font-size: 15px;
  font-weight: 800;
  color: #0D1627;
  margin: 0 0 2px;
  line-height: 1.25;
}

.expert-credentials {
  font-size: 11.5px;
  line-height: 1.35;
  color: #5A6982;
  margin: 0;
  font-weight: 500;
}

.expert-bio-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #2D3748;
  background: rgba(13, 22, 39, 0.035);
  border-left: 3px solid #C8A951;
  border-radius: 0 8px 8px 0;
  padding: 9px 11px;
  margin: 0;
}

/* ==========================================================================
   CARD INICIAL DE BOAS-VINDAS E ATIVAÇÃO DE ÁUDIO
   ========================================================================== */

.welcome-starter-card {
  width: 100%;
  background: var(--color-surface-card);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 6px 20px rgba(13, 22, 39, 0.08);
  margin-bottom: 8px;
  animation: popInBubble 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
  scroll-margin-top: 76px;
}

.starter-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
}

.starter-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A1220 0%, #15243F 100%);
  border: 2px solid var(--color-gold);
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.25);
  position: relative;
  z-index: 2;
}

.starter-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 83, 0.55);
  animation: starterPulse 2s infinite ease-out;
  z-index: 1;
}

@keyframes starterPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 0.2; }
  100% { transform: scale(1.3); opacity: 0; }
}

.starter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.starter-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-primary);
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.starter-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.starter-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-main);
  margin: 0 0 12px;
  text-align: left;
}

.starter-desc strong {
  color: var(--color-primary);
}

/* Formulário de Identificação Pessoal (Nome e Idade) */
.starter-form-box {
  background: #FAF8F4;
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-field-label .required-star {
  color: #DC2626;
  font-size: 13px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 11px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.8;
}

.custom-chat-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: #FFFFFF;
  border: 1.5px solid #D5CEBF;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.custom-chat-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.25);
}

.custom-chat-input.input-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  background: #FEF2F2;
}

.input-error-msg {
  font-size: 11.5px;
  color: #DC2626;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.starter-rule-box {
  background: #FAF8F4;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: 6px;
}

.starter-rule-box strong {
  color: var(--color-text-main);
}

.btn-starter-pulse {
  animation: ctaGlowPulse 2s infinite ease-in-out;
}

/* ==========================================================================
   CARDS ESPECIAIS: PLAYER DE ÁUDIO 528 HZ & OFERTA
   ========================================================================== */

/* Player da Frequência Sagrada */
.frequency-player-card {
  background: linear-gradient(145deg, #0F1A2E 0%, #152542 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(13, 22, 39, 0.3);
  margin-top: 5px;
}

.btn-player-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-gradient);
  border: none;
  color: #0D1627;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--color-gold-glow);
  transition: transform 0.15s ease;
}

.btn-player-play:active {
  transform: scale(0.92);
}

.player-details {
  flex: 1;
}

.player-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.player-sub {
  font-size: 11px;
  color: #B4C2D8;
}

.player-equalizer-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.eq-bar {
  width: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.eq-bar.active {
  animation: eqPulse 0.75s ease-in-out infinite alternate;
}

.eq-bar:nth-child(2).active { animation-delay: 0.12s; }
.eq-bar:nth-child(3).active { animation-delay: 0.24s; }
.eq-bar:nth-child(4).active { animation-delay: 0.36s; }
.eq-bar:nth-child(5).active { animation-delay: 0.18s; }

@keyframes eqPulse {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* ==========================================================================
   SHOWCASE DAS 7 FREQUÊNCIAS (PLAYLIST SAGRADA ELEGANTE)
   ========================================================================== */

.bubble-box:has(.freq-playlist-wrap) {
  width: 100%;
  max-width: 360px;
  padding: 12px;
}

.freq-playlist-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin-top: 2px;
}

.freq-playlist-intro {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--color-text-main);
  margin-bottom: 3px;
}

.freq-playlist-intro strong {
  color: #0D1627;
}

.freq-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 5.5px;
  width: 100%;
}

.freq-playlist-item {
  background: #FAF8F4;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 1.5px 4px rgba(13, 22, 39, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  user-select: none;
  -webkit-user-select: none;
}

.freq-playlist-item:hover {
  transform: translateY(-1.5px);
  background: #FFFDF8;
  border-color: rgba(212, 168, 83, 0.7);
  box-shadow: 0 4px 10px rgba(212, 168, 83, 0.18);
}

.freq-playlist-item:active {
  transform: scale(0.985);
  background: #F4EEDF;
}

.freq-item-num {
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 50%;
  background: #0D1627;
  color: #DFBE6B;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(13, 22, 39, 0.2);
  flex-shrink: 0;
}

.freq-item-emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.freq-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.freq-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #0D1627;
  line-height: 1.25;
}

.freq-item-desc {
  font-size: 10.5px;
  color: #5A687D;
  line-height: 1.3;
  font-weight: 400;
}

.freq-item-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #8C6A1D;
  background: rgba(212, 168, 83, 0.14);
  border: 1px solid rgba(212, 168, 83, 0.35);
  padding: 2px 6.5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

.freq-playlist-btn {
  width: 100%;
  margin-top: 5px;
  background: linear-gradient(135deg, #F5EFE3 0%, #ECE2CE 100%);
  border: 1.5px dashed rgba(200, 169, 81, 0.7);
  color: #6D4F14;
  font-size: 12px;
  font-weight: 700;
  padding: 9.5px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(200, 169, 81, 0.12);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.freq-playlist-btn:hover {
  background: #E5D7BD;
  border-color: #8C6A1D;
  transform: translateY(-1px);
}

.freq-playlist-btn:active {
  transform: scale(0.985);
  background: #DBD0B4;
}

.freq-btn-arrow {
  color: #8C6A1D;
  font-weight: 800;
  font-size: 13px;
}

/* Card Expansível de Detalhes das 7 Frequências (Legado) */
.expandable-details-card {
  margin-top: 5px;
}

.btn-open-freq-modal {
  width: 100%;
  background: #F4EEDF;
  border: 1px dashed var(--color-gold-dark);
  color: #745112;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-open-freq-modal:active {
  background: #ECE3CF;
}

/* ==========================================================================
   RESUMO DE ANCORAGEM DOS BÔNUS (ETAPA 07)
   ========================================================================== */

.bonus-sum-box {
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF5EA 100%);
  border: 1.5px solid rgba(212, 168, 83, 0.45);
  border-radius: 12px;
  padding: 11px 13px;
  margin-top: 8px;
  margin-bottom: 4px;
  box-shadow: 0 3px 10px rgba(212, 168, 83, 0.1);
  text-align: left;
}

.bonus-sum-header {
  font-size: 11px;
  font-weight: 800;
  color: #8C6A1D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bonus-sum-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #334155;
  padding: 3.5px 0;
  border-bottom: 1px dashed rgba(212, 168, 83, 0.25);
}

.bonus-sum-line del {
  color: #DC2626;
  font-weight: 600;
}

.bonus-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0D1627;
  padding-top: 7px;
  margin-top: 2px;
}

.bonus-sum-free-tag {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid #86EFAC;
}

/* ==========================================================================
   CARD DEFINITIVO DE OFERTA (ETAPA 09 & 11)
   ========================================================================== */

.offer-card-container {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFCF8 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: 0 8px 26px rgba(212, 168, 83, 0.22);
  margin-top: 8px;
  text-align: center;
  animation: popInBubble 0.3s ease-out;
  scroll-margin-top: 76px;
}

.offer-tag-pill {
  display: inline-block;
  background: var(--color-gold-gradient);
  color: #0E1627;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.offer-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-family-serif);
  line-height: 1.25;
}

.offer-bullets-list {
  text-align: left;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.offer-bullet-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 1.3;
}

.check-pill {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #22C55E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.offer-pricing-block {
  background: #F7F4EC;
  border-radius: var(--radius-md);
  border: 1px solid #E5DBC7;
  padding: 12px;
  margin: 12px 0;
}

.old-price-line {
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
  display: block;
}

.old-price-line del {
  color: #DC2626;
  text-decoration: line-through;
  font-weight: 700;
  margin: 0 3px;
}

.big-price-tag {
  font-size: 34px;
  font-weight: 900;
  color: #0D1627;
  line-height: 1.1;
  margin: 2px 0;
}

.big-price-tag small {
  font-size: 19px;
  font-weight: 700;
}

.payment-type-note {
  font-size: 12px;
  color: #15803D;
  font-weight: 700;
}

.btn-card-checkout {
  width: 100%;
  background: var(--color-gold-gradient);
  border: none;
  color: #0D1627;
  font-family: var(--font-family-sans);
  font-size: 16px;
  font-weight: 800;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 5px 20px var(--color-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
  animation: glowPulse 2.4s infinite;
}

@keyframes glowPulse {
  0% { transform: scale(1); box-shadow: 0 4px 16px var(--color-gold-glow); }
  50% { transform: scale(1.02); box-shadow: 0 6px 24px rgba(212, 168, 83, 0.6); }
  100% { transform: scale(1); box-shadow: 0 4px 16px var(--color-gold-glow); }
}

.btn-card-checkout:active {
  transform: scale(0.96);
}

.offer-safe-badge {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ==========================================================================
   DIGITAÇÃO (TYPING INDICATOR)
   ========================================================================== */

.typing-indicator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  width: 100%;
  clear: both;
  animation: fadeInBubble 0.2s ease-out;
}

.typing-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0F1A2E;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.typing-bubble {
  background: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: blinkDot 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes blinkDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
  40% { transform: scale(1.1); opacity: 1; }
}

.typing-label {
  font-size: 11px;
  color: #79869A;
  font-style: italic;
}

/* ==========================================================================
   INDICADOR DE GRAVAÇÃO DE ÁUDIO (ESTILO WHATSAPP NATIVO)
   ========================================================================== */

.recording-indicator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  width: 100%;
  clear: both;
  animation: fadeInBubble 0.2s ease-out;
}

.recording-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0F1A2E;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recording-bubble {
  background: #FFFFFF;
  border: 1px solid #DCFCE7;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.12);
}

.recording-mic-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulseRecMic 1.4s infinite ease-in-out;
}

@keyframes pulseRecMic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
}

.recording-audio-waves {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.rec-wave-bar {
  width: 2.5px;
  background: #25D366;
  border-radius: 2px;
  animation: recWavePulse 1.2s infinite ease-in-out alternate;
}

.rec-wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.rec-wave-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.rec-wave-bar:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.rec-wave-bar:nth-child(4) { height: 9px; animation-delay: 0.4s; }
.rec-wave-bar:nth-child(5) { height: 7px; animation-delay: 0.15s; }

@keyframes recWavePulse {
  0% { height: 4px; }
  100% { height: 15px; }
}

.recording-label {
  font-size: 12px;
  font-weight: 600;
  color: #16A34A;
  font-style: normal;
}

/* ==========================================================================
   RODAPÉ (DESATIVADO - AÇÕES E SELEÇÕES AGORA SÃO 100% INLINE DENTRO DO CHAT)
   ========================================================================== */

.chat-footer {
  display: none !important;
}

.footer-action-container {
  display: none !important;
}

/* ==========================================================================
   AÇÕES E SELEÇÕES DIRETAMENTE DENTRO DO FEED DA CONVERSA (INLINE ACTIONS)
   ========================================================================== */

.chat-inline-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
  animation: popInBubble 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scroll-margin-top: 76px;
  box-sizing: border-box;
}

/* Botão de Continuação Elegante dentro do Chat */
.btn-ui-continue {
  width: 100%;
  background: #0F1A2E;
  border: 1.5px solid var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-family-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 22, 39, 0.12);
  transition: all 0.15s ease;
}

.btn-ui-continue:active {
  transform: scale(0.97);
  background: #172744;
}

.btn-ui-continue .arrow {
  color: var(--color-gold);
  font-size: 16px;
}

/* Botão de Compra no Rodapé */
.btn-ui-buy {
  width: 100%;
  background: var(--color-gold-gradient);
  border: none;
  color: #0E1627;
  font-family: var(--font-family-sans);
  font-size: 16px;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--color-gold-glow);
  transition: transform 0.15s ease;
}

.btn-ui-buy:active {
  transform: scale(0.97);
}

/* Opções de Respostas Rápidas / Microinterações */
.quick-replies-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.btn-quick-choice {
  width: 100%;
  background: #F7F4EC;
  border: 1.5px solid #DDD4C3;
  color: var(--color-primary);
  font-family: var(--font-family-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.btn-quick-choice:active {
  background: #FFFFFF;
  border-color: var(--color-gold);
  transform: scale(0.98);
}

.btn-quick-choice .chevron {
  color: var(--color-gold-dark);
  font-size: 13px;
}

/* Grid de FAQ / Dúvidas */
.faq-stack-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 3px;
}

.btn-faq-question {
  background: #FFFFFF;
  border: 1px solid #D7D0C1;
  color: var(--color-primary);
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.btn-faq-question:active {
  background: #FAF7F0;
  border-color: var(--color-gold);
}

.btn-faq-question.viewed {
  opacity: 0.7;
  background: #F1ECE0;
}

/* ==========================================================================
   STICKY BAR INFERIOR DE CHECKOUT
   ========================================================================== */

.sticky-checkout-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: linear-gradient(180deg, #0F1A2E 0%, #080D18 100%);
  border-top: 1.5px solid var(--color-gold);
  padding: 9px 12px calc(9px + var(--safe-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  animation: slideUpSticky 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpSticky {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sticky-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-desc {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--color-gold-light);
  letter-spacing: 0.5px;
}

.sticky-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.sticky-old-price {
  font-size: 11px;
  color: #7A899F;
  text-decoration: line-through;
}

.sticky-deal-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-gold-light);
}

.btn-sticky-buy {
  background: var(--color-gold-gradient);
  border: none;
  color: #0B1321;
  font-family: var(--font-family-sans);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 12px var(--color-gold-glow);
  flex-shrink: 0;
}

.btn-sticky-buy:active {
  transform: scale(0.95);
}

/* ==========================================================================
   MODAIS / LIGHTBOX / DIALOGS
   ========================================================================== */

/* Lightbox de Imagem em Alta Resolução */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: rgba(6, 11, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeInModal 0.2s ease-out;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox-box {
  position: relative;
  z-index: 100000;
  max-width: 95vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomLightIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomLightIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.04);
}

.lightbox-img-wrapper {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 82vh;
  max-width: 92vw;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 168, 83, 0.5);
  background-color: #0A101C;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
}

.lightbox-img-wrapper img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  color: #F1ECE2;
  font-size: 12.5px;
  margin-top: 10px;
  text-align: center;
  max-width: 92vw;
  line-height: 1.4;
  background: rgba(13, 22, 39, 0.7);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.lightbox-caption:empty {
  display: none !important;
}

/* Modal de Demonstração de Checkout */
.checkout-demo-dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  z-index: 111;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--color-gold);
}

.dialog-header-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.dialog-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.dialog-msg {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.dialog-info-box {
  background: #F8F5EE;
  border: 1px solid #E2D8C6;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.info-badge-active {
  background: #22C55E;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.info-tip {
  color: #795719;
  line-height: 1.35;
}

.info-tip code {
  background: #E8E0CE;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.btn-dialog-close {
  width: 100%;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Modal Detalhes das Frequências */
.freq-details-dialog {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.freq-details-card {
  position: relative;
  z-index: 106;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1.5px solid var(--color-gold);
}

.freq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 10px;
}

.freq-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-family-serif);
}

.freq-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text-muted);
}

.freq-scroll-list {
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.freq-pill-item {
  display: flex;
  gap: 9px;
  background: #FAF8F4;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
}

.f-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f-info strong {
  font-size: 13px;
  color: var(--color-primary);
  display: block;
}

.f-info p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.btn-freq-close-action {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  padding: 11px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-top: 6px;
}

/* ==========================================================================
   OTIMIZAÇÕES ULTRA COMPACTAS PARA TELAS MENORES (320px - 360px)
   ========================================================================== */

@media (max-width: 360px) {
  .header-brand-title { font-size: 12.5px; letter-spacing: 0.2px; }
  .status-guide-text { font-size: 10.5px; }
  .agent-name { font-size: 13.5px; }
  .agent-status { font-size: 10.5px; }
  .bubble-box { font-size: 13.5px; padding: 9px 12px; }
  .btn-ui-continue { font-size: 14px; padding: 11px 14px; }
  .btn-card-checkout { font-size: 14.5px; padding: 13px 14px; }
  .big-price-tag { font-size: 28px; }
  .sticky-deal-price { font-size: 16px; }
  .btn-sticky-buy { font-size: 11.5px; padding: 8px 10px; }
  .chat-image-card { max-width: 290px; }
  .chat-news-card { max-width: 295px; }
  .chat-expert-card { max-width: 300px; }
  .image-frame, .image-frame img { max-height: 420px; }
  .news-image-frame, .news-image-frame img { max-height: 420px; }
}
