@charset "UTF-8";
/* ===========================================================================
   کمپین تخفیف — سکانس برتر

   رنگ‌ها عمداً از متغیرهای پوسته می‌خوانند و اگر نبودند، مقدار جایگزین
   دارند؛ پس افزونه مستقل از پوستهٔ فرزند هم درست دیده می‌شود.
   =========================================================================== */

.spromo-banner,
.spromo-modal {
  --sp-accent: var(--kb-accent, #2f9bff);
  --sp-navy: var(--kb-navy-900, #040030);
  --sp-panel: var(--kb-navy-850, #070446);
  --sp-line: rgba(255, 255, 255, 0.14);
  --sp-text: #ffffff;
  --sp-text-dim: rgba(255, 255, 255, 0.78);
  --sp-gold: #ffb020;
}

/* ---------------------------------------------------------------------------
   شمارش معکوس — مشترک بین بنر و پاپ‌آپ
   --------------------------------------------------------------------------- */
.spromo-cd {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  direction: rtl;
}

.spromo-cd__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--sp-line);
}

.spromo-cd__num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}

.spromo-cd__lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sp-text-dim);
}

/* ---------------------------------------------------------------------------
   بنر صفحهٔ خرید اشتراک
   --------------------------------------------------------------------------- */
.spromo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--sp-text);

  background:
    radial-gradient(120% 160% at 100% 0%, rgba(47, 155, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #0f1a5e, #0a0a3d);
  border: 1px solid rgba(78, 166, 255, 0.45);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.spromo-banner__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sp-accent), #0f63b8);
  box-shadow: 0 0 0 5px rgba(47, 155, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.spromo-banner__badge span {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.spromo-banner__text {
  flex: 1 1 260px;
  min-width: 0;
}

.spromo-banner__title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: var(--sp-text);
}

.spromo-banner__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--sp-text-dim);
}

.spromo-banner__timer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.spromo-banner__timer-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sp-text-dim);
}

/* ---------------------------------------------------------------------------
   پاپ‌آپ
   --------------------------------------------------------------------------- */
.spromo-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.spromo-modal[hidden] {
  display: none;
}

.spromo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 0, 20, 0.76);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: spromo-fade 0.25s ease both;
}

.spromo-modal__card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 30px 26px 24px;
  border-radius: 22px;
  text-align: center;
  color: var(--sp-text);

  background:
    radial-gradient(120% 120% at 50% 0%, rgba(47, 155, 255, 0.3), transparent 62%),
    linear-gradient(160deg, #101b63, #07052f);
  border: 1px solid rgba(78, 166, 255, 0.5);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.95);
  animation: spromo-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spromo-modal__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--sp-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.spromo-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.spromo-modal__percent {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--sp-gold);
}

.spromo-modal__percent strong {
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
}

.spromo-modal__percent span {
  font-size: 26px;
  font-weight: 800;
}

.spromo-modal__percent em {
  margin-inline-start: 6px;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  color: var(--sp-text);
}

.spromo-modal__title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.7;
  color: var(--sp-text);
}

.spromo-modal__sub {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--sp-text-dim);
}

.spromo-modal__timer-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sp-text-dim);
}

.spromo-modal__cta {
  display: block;
  margin: 18px 0 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sp-accent), #0f63b8);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(47, 155, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spromo-modal__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(47, 155, 255, 1);
  color: #ffffff !important;
}

.spromo-modal__later {
  margin: 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--sp-text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   روبان روی کارت پلن هدف
   کلاس را جاوااسکریپت می‌گذارد، چون شناسهٔ پلن از لینک پرداخت خوانده می‌شود.
   --------------------------------------------------------------------------- */
.kelaket_plans__item.spromo-target {
  position: relative;
  border-color: var(--sp-gold) !important;
  box-shadow: 0 0 0 1px var(--sp-gold), 0 20px 45px -26px rgba(0, 0, 0, 0.9) !important;
}

.spromo-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--sp-gold, #ffb020);
  color: #22160a;
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(255, 176, 32, 0.9);
}

@keyframes spromo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spromo-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spromo-modal__backdrop,
  .spromo-modal__card {
    animation: none;
  }
}

@media (max-width: 600px) {
  .spromo-banner {
    gap: 14px;
    padding: 16px;
  }

  .spromo-banner__badge {
    width: 64px;
    height: 64px;
  }

  .spromo-banner__badge span {
    font-size: 19px;
  }

  .spromo-banner__timer {
    width: 100%;
  }

  .spromo-cd__box {
    flex: 1 1 0;
    min-width: 0;
  }

  .spromo-modal__percent strong {
    font-size: 52px;
  }

  .spromo-modal__title {
    font-size: 18.5px;
  }
}
