.pl-timed-popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  direction: rtl;
  font-family: Assistant, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pl-timed-popup-wrapper.pl-active {
  opacity: 1;
  visibility: visible;
}

.pl-timed-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 1;
}

.pl-timed-popup-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 32px 24px 24px;
  text-align: center;
  box-sizing: border-box;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pl-timed-popup-wrapper.pl-active .pl-timed-popup-dialog {
  transform: scale(1) translateY(0);
}

.pl-timed-popup-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.pl-timed-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.pl-timed-popup-header-decoration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.pl-timed-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #fde68a;
  margin-bottom: 14px;
}

.pl-timed-popup-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.pl-timed-popup-dialog:hover .pl-timed-popup-icon-circle {
  transform: rotate(0deg) scale(1.05);
}

.pl-timed-popup-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.pl-timed-popup-desc {
  margin: 0 0 18px;
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.5;
}

.pl-timed-popup-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-timed-popup-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.4;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pl-timed-popup-highlights li:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pl-highlight-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.pl-highlight-text {
  flex: 1;
}

.pl-highlight-text strong {
  color: #0f172a;
}

.pl-timed-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-timed-popup-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #16a34a 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.pl-timed-popup-cta:hover {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

.pl-timed-popup-cta i.fa-whatsapp {
  font-size: 1.35rem;
}

.pl-timed-popup-cta i.fa-arrow-left {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.pl-timed-popup-cta:hover i.fa-arrow-left {
  transform: translateX(-4px);
}

.pl-timed-popup-dismiss-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pl-timed-popup-dismiss-btn:hover {
  color: #334155;
  background: #f1f5f9;
}

@media (max-width: 480px) {
  .pl-timed-popup-dialog {
    padding: 26px 18px 20px;
    border-radius: 20px;
  }
  .pl-timed-popup-title {
    font-size: 1.2rem;
  }
  .pl-timed-popup-desc {
    font-size: 0.9rem;
  }
  .pl-timed-popup-cta {
    font-size: 0.98rem;
    padding: 12px 16px;
  }
}

