/* ============================================
   PRICING MODAL — pricing.css
   ============================================ */

/* OVERLAY */
.pricing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

/* MODAL */
.pricing-modal {
  background: #0d0c18;
  border: 1px solid rgba(152, 109, 255, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 56px 52px 52px;
  box-shadow:
    0 0 80px rgba(152, 109, 255, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin;
  scrollbar-color: #986dff #13121a;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

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

.pricing-modal::-webkit-scrollbar {
  width: 4px;
}

.pricing-modal::-webkit-scrollbar-track {
  background: #13121a;
}

.pricing-modal::-webkit-scrollbar-thumb {
  background: #986dff;
  border-radius: 4px;
}

/* CLOSE BUTTON */
.pricing-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(152, 109, 255, 0.08);
  border: 1px solid rgba(152, 109, 255, 0.2);
  color: #986dff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.pricing-close:hover {
  background: rgba(152, 109, 255, 0.2);
  transform: rotate(90deg);
}

/* HEADER */
.pricing-header {
  text-align: center;
  margin-bottom: 52px;
}

.pricing-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #986dff;
  background: rgba(152, 109, 255, 0.1);
  border: 1px solid rgba(152, 109, 255, 0.25);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.pricing-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.pricing-header h2 span {
  color: #986dff;
}

.pricing-header p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #888;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* CARDS GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* CARD */
.pricing-card {
  background: #13121a;
  border: 1px solid rgba(152, 109, 255, 0.15);
  border-radius: 20px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(152, 109, 255, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(152, 109, 255, 0.12);
}

/* DESTAQUE */
.pricing-card.featured {
  border-color: rgba(152, 109, 255, 0.5);
  background: linear-gradient(160deg, #18162a 0%, #13121a 100%);
  box-shadow: 0 0 40px rgba(152, 109, 255, 0.1);
}

.pricing-card.featured:hover {
  box-shadow: 0 20px 60px rgba(152, 109, 255, 0.2);
  transform: translateY(-8px);
}

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7c4dff, #986dff);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(152, 109, 255, 0.4);
}

/* ICON */
.pricing-icon {
  width: 48px;
  height: 48px;
  background: rgba(152, 109, 255, 0.1);
  border: 1px solid rgba(152, 109, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #986dff;
}

/* NOME */
.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

/* ============================================
   PREÇO — ANIMAÇÃO DE DESCONTO
   ============================================ */

.pricing-price {
  margin-bottom: 20px;
}

.pricing-from {
  font-size: 0.75rem;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

/* Wrapper que segura o preço antigo + novo */
.pricing-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* PREÇO ANTIGO — riscado */
.pricing-old-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  width: fit-content;

  /* Inicia invisível, entra quando o card fica visible */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pricing-card.visible .pricing-old-price {
  opacity: 1;
  transform: translateY(0);
  /* delay maior que o card, para entrar depois que o card aparece */
  transition-delay: 0.35s;
}

.pricing-old-price sup {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  vertical-align: top;
  margin-top: 2px;
  display: inline-block;
}

.pricing-old-price .old-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #555;
  position: relative;
  line-height: 1;
}

/* A linha que corta — pseudo-elemento animado */
.pricing-old-price .old-value::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ff4d6d, #ff6b35);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 77, 109, 0.7);

  /* A linha dispara quando o card fica visible */
  transition: width 0s;
}

.pricing-card.visible .pricing-old-price .old-value::after {
  width: 108%;
  /* Delay: espera card aparecer (0.35s) + old-price aparecer (~0.3s) */
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

/* Badge de desconto */
.pricing-discount-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #ff4d6d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;

  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.8, 0.64, 1);
}

/* Badge aparece após a linha cortar */
.pricing-card.visible .pricing-discount-badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.08s;
}

/* PREÇO NOVO — destaque */
.pricing-value {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;

  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.pricing-card.visible .pricing-value {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* Aparece junto ao badge, após o corte */
  transition-delay: 1.0s;
}

.pricing-value sup {
  font-size: 0.9rem;
  font-weight: 600;
  color: #986dff;
  vertical-align: top;
  margin-top: 4px;
  display: inline-block;
}

/* Label "preço atual" abaixo do valor */
.pricing-current-label {
  font-size: 0.68rem;
  color: #986dff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card.visible .pricing-current-label {
  opacity: 1;
  transition-delay: 1.2s;
}

/* PRAZO */
.pricing-deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #666;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 24px;
  width: fit-content;
}

.pricing-deadline i {
  color: #986dff;
  font-size: 0.75rem;
}

/* DIVISOR */
.pricing-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

/* FEATURES */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.5;
}

.pricing-features li i {
  color: #986dff;
  font-size: 0.78rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* CTA BUTTON */
.pricing-cta {
  width: 100%;
  padding: 13px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(152, 109, 255, 0.4);
  background: transparent;
  color: #986dff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.pricing-cta:hover {
  background: #986dff;
  color: #fff;
  border-color: #986dff;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(152, 109, 255, 0.35);
}

.pricing-card.featured .pricing-cta {
  background: #986dff;
  color: #fff;
  border-color: #986dff;
  box-shadow: 0 8px 24px rgba(152, 109, 255, 0.3);
}

.pricing-card.featured .pricing-cta:hover {
  background: #7c4dff;
  box-shadow: 0 12px 32px rgba(152, 109, 255, 0.45);
  transform: scale(1.04);
}

/* ============================================
   BANNER DE PAGAMENTO
   ============================================ */

.pricing-payment-banner {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #13121a;
  border: 1px solid rgba(152, 109, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;

  /* Entrada suave junto com os cards */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.6s, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.6s;
}

.pricing-overlay.active .pricing-payment-banner {
  opacity: 1;
  transform: translateY(0);
}

/* Cada método de pagamento */
.payment-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  position: relative;
}

/* Divisor central */
.payment-method:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 16%;
  height: 68%;
  width: 1px;
  background: rgba(152, 109, 255, 0.15);
}

/* Ícone do método */
.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.payment-method--pix .payment-method-icon {
  background: rgba(0, 189, 126, 0.1);
  border: 1px solid rgba(0, 189, 126, 0.25);
  color: #00bd7e;
}

.payment-method--card .payment-method-icon {
  background: rgba(152, 109, 255, 0.1);
  border: 1px solid rgba(152, 109, 255, 0.25);
  color: #986dff;
}

/* Textos */
.payment-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-method-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-method--pix .payment-method-label {
  color: #00bd7e;
}

.payment-method--card .payment-method-label {
  color: #986dff;
}

.payment-method-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
}

.payment-method-sub {
  font-size: 0.72rem;
  color: #666;
  margin-top: 1px;
}

/* Badge "sem juros" */
.payment-badge-nofee {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 189, 126, 0.08);
  border: 1px solid rgba(0, 189, 126, 0.2);
  color: #00bd7e;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.payment-badge-nofee--card {
  background: rgba(152, 109, 255, 0.08);
  border-color: rgba(152, 109, 255, 0.2);
  color: #986dff;
}

/* FOOTER NOTE */
.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

.pricing-note a {
  color: #986dff;
  text-decoration: none;
  font-weight: 500;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media screen and (max-width: 900px) {
  .pricing-modal {
    padding: 44px 32px 40px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
}

@media screen and (max-width: 700px) {
  .pricing-payment-banner {
    flex-direction: column;
  }

  .payment-method:first-child::after {
    top: auto;
    bottom: 0;
    left: 16px;
    right: 16px;
    width: auto;
    height: 1px;
  }

  .payment-badge-nofee {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .pricing-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .pricing-modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    padding: 36px 22px 32px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .pricing-header {
    margin-bottom: 32px;
  }

  .pricing-header h2 {
    font-size: 1.6rem;
  }

  /* No mobile reduz delays para não demorar demais */
  .pricing-card.visible .pricing-old-price {
    transition-delay: 0.2s;
  }

  .pricing-card.visible .pricing-old-price .old-value::after {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
  }

  .pricing-card.visible .pricing-discount-badge {
    transition-delay: 0.85s;
  }

  .pricing-card.visible .pricing-value {
    transition-delay: 0.8s;
  }

  .pricing-card.visible .pricing-current-label {
    transition-delay: 1.0s;
  }
}