/*===============================
    Sale Popup (20% Shared Plans)
===============================*/

.sale-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 41, 55, 0.6);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sale-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.sale-popup-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--theme-white-color, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.3s ease;
  font-family: "Figtree-Regular";
}

.sale-popup-overlay.is-active .sale-popup-card {
  transform: scale(1) translateY(0);
}

.sale-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.sale-popup-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.sale-popup-banner {
  background: linear-gradient(135deg, #4338ca 0%, #6a5ff0 100%);
  padding: 28px 28px 22px 28px;
  text-align: center;
}

.sale-popup-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: "Figtree-Bold";
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.sale-popup-percent {
  font-family: "Figtree-Bold";
  font-size: 56px;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.sale-popup-percent span {
  font-size: 22px;
  vertical-align: middle;
  margin-left: 4px;
}

.sale-popup-banner-text {
  font-family: "Figtree-Bold";
  font-size: 20px;
  line-height: 28px;
  color: #ffffff;
  margin: 0;
}

.sale-popup-body {
  padding: 24px 28px 28px 28px;
  text-align: center;
}

.sale-popup-desc {
  font-size: 15px;
  line-height: 24px;
  color: var(--theme-gray-shade1, #555555);
  margin: 0 0 18px 0;
}

.sale-popup-coupon {
  display: flex;
  align-items: stretch;
  border: 1.5px dashed var(--theme-primary-color, #4338ca);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--theme-primary-light, #d9d7f4);
}

.sale-popup-coupon-code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Figtree-Bold";
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--theme-black3-color, #2a2d43);
  padding: 12px;
}

.sale-popup-copy-btn {
  border: none;
  background: var(--theme-primary-color, #4338ca);
  color: #ffffff;
  font-family: "Figtree-Medium";
  font-size: 14px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.sale-popup-copy-btn:hover {
  background: var(--theme-black-color, #000000);
}

.sale-popup-copy-btn.is-copied {
  background: #16a34a;
}

.sale-popup-cta {
  display: block;
  width: 100%;
  font-size: 17px;
  line-height: 24px;
  font-family: "Figtree-Medium";
  padding: 13px 20px;
  border-radius: 4px;
  color: #ffffff;
  background-color: var(--theme-primary-color, #4338ca);
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 12px;
}

.sale-popup-cta:hover {
  color: #ffffff;
  background-color: var(--theme-black-color, #000000);
}

.sale-popup-note {
  font-size: 12px;
  line-height: 18px;
  color: var(--theme-gray-shade3, #999999);
  margin: 0;
}

body.sale-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .sale-popup-percent {
    font-size: 44px;
  }

  .sale-popup-banner-text {
    font-size: 17px;
    line-height: 24px;
  }

  .sale-popup-banner {
    padding: 24px 20px 18px 20px;
  }

  .sale-popup-body {
    padding: 20px 20px 22px 20px;
  }
}
