/* ========================================================
   DOWNSELL MODAL PRIVACY OFICIAL - NICOLLE CAROLINE (R$ 5,99)
   Tema: BRANCO E LARANJA (#F6842C) IGUAL AO SITE
   ======================================================== */

.downsell-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.downsell-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.downsell-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 94vh;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #F6842C;
  border-radius: 20px;
  padding: 18px 16px 16px 16px;
  box-shadow: 0 20px 50px rgba(246, 132, 44, 0.25), 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #18181b;
  scrollbar-width: thin;
}

.downsell-modal-card::-webkit-scrollbar {
  width: 5px;
}
.downsell-modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.downsell-modal-backdrop.active .downsell-modal-card {
  transform: scale(1) translateY(0);
}

/* Botão Fechar */
.downsell-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 50%;
  color: #71717a;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.downsell-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Super Destaque do Cronômetro de 5 Minutos */
.downsell-timer-superbanner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #F6842C;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(246, 132, 44, 0.15);
  animation: downsellTimerPulse 2s infinite ease-in-out;
}

@keyframes downsellTimerPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(246, 132, 44, 0.15); }
  50% { box-shadow: 0 5px 16px rgba(246, 132, 44, 0.35); }
}

.downsell-timer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.downsell-timer-icon {
  font-size: 18px;
  animation: downsellTicking 1s infinite alternate;
}

@keyframes downsellTicking {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

.downsell-timer-label {
  font-size: 11px;
  font-weight: 800;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.downsell-timer-clock {
  background: #F6842C;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(246, 132, 44, 0.4);
}

/* Título e Subtítulo */
.downsell-modal-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  color: #18181b;
  margin-bottom: 6px;
}

.downsell-modal-title span {
  color: #F6842C;
}

.downsell-modal-subtitle {
  font-size: 12.5px;
  line-height: 1.4;
  color: #52525b;
  margin-bottom: 12px;
}

.downsell-modal-subtitle b {
  color: #18181b;
}

/* Card Mockup de Post do Feed Privacy */
.downsell-post-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.downsell-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f4f4f5;
}

.downsell-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.downsell-post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #F6842C;
}

.downsell-post-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.downsell-post-author-handle {
  font-size: 11.5px;
  color: #6b7280;
}

.downsell-post-options {
  color: #9ca3af;
  font-size: 14px;
}

/* Mídia Bloqueada - Resolução alta mostrando o corpo todo sem corte */
.downsell-post-media {
  position: relative;
  width: 100%;
  height: 380px;
  max-height: 440px;
  overflow: hidden;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.downsell-post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.95) contrast(1.04);
  transform: scale(1.0);
}

.downsell-post-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  text-align: center;
}

.downsell-lock-circle {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F6842C;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 2px;
  border: 2px solid #F6842C;
}

/* Selo com fundo Laranja conforme solicitado */
.downsell-pack-badge {
  background: #F6842C;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(246, 132, 44, 0.55), 0 2px 6px rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.downsell-pack-subtag {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer do Post (Likes & Comentários) */
.downsell-post-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  background: #ffffff;
}

.downsell-post-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Áudio Privado com Estilo Bloqueado */
.downsell-audio-pill {
  width: 100%;
  background: #FFF7ED;
  border: 1.5px solid #F6842C;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(246, 132, 44, 0.12);
}

.downsell-audio-pill:hover {
  background: #FFEDD5;
}

.downsell-audio-circle {
  width: 34px;
  height: 34px;
  background: #F6842C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(246, 132, 44, 0.35);
  color: #ffffff;
}

.downsell-audio-circle svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.downsell-audio-info {
  flex: 1;
  text-align: left;
}

.downsell-audio-title {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.downsell-audio-sub {
  font-size: 10px;
  color: #c2410c;
  font-weight: 700;
  margin-top: 1px;
}

.downsell-audio-badge-locked {
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* Caixa de Preço */
.downsell-price-box {
  background: #FFF7ED;
  border: 2px dashed #F6842C;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.downsell-old-price {
  font-size: 12px;
  color: #71717a;
  text-decoration: line-through;
}

.downsell-new-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: #16a34a;
  font-weight: 900;
}

.downsell-new-price .curr {
  font-size: 18px;
}

.downsell-new-price .val {
  font-size: 34px;
  letter-spacing: -0.5px;
}

.downsell-period-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #9a3412;
  text-transform: uppercase;
}

/* Botão de Ação CTA Principal */
.downsell-cta-action {
  width: 100%;
  background: linear-gradient(135deg, #FF7A00 0%, #F6842C 100%);
  color: #ffffff;
  border: none;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(246, 132, 44, 0.45);
  animation: downsellPulseCta 2s infinite ease-in-out;
  transition: transform 0.15s ease;
}

@keyframes downsellPulseCta {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(246, 132, 44, 0.45); }
  50% { transform: scale(1.02); box-shadow: 0 12px 28px rgba(246, 132, 44, 0.65); }
}

.downsell-cta-action:active {
  transform: scale(0.98);
}

.downsell-skip-link {
  display: inline-block;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.downsell-skip-link:hover {
  color: #4b5563;
}
