/* Early Bird Offer Modal & Banner (Landing, TEPS ONE, Dashboard) */

.teps-eb-modal-open {
  overflow: hidden;
}

.teps-eb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(11, 29, 19, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.teps-eb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.teps-eb-dialog {
  position: relative;
  width: min(470px, 100%);
  background: #EF3535;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 64px rgba(120, 10, 10, 0.35);
  padding: 28px 28px 24px;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.teps-eb-overlay.is-open .teps-eb-dialog {
  transform: translateY(0) scale(1);
}

/* .teps-eb-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1aa05b 0%, #ffbd59 100%);
} */

.teps-eb-dialog::before {
  content: none;
}

.teps-eb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.teps-eb-close:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #ffffff;
  transform: scale(1.05);
}

.teps-eb-close:focus-visible,
.teps-eb-cta:focus-visible,
.teps-eb-banner:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.teps-eb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FFF1F2;
  border: 0;
  color: #BE123C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.teps-eb-title {
  margin: 16px 0 8px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.teps-eb-copy {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.teps-eb-countdown-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
}

.teps-eb-countdown-days {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.teps-eb-days-number {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
  color: #ffffff;
}

.teps-eb-days-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.teps-eb-deadline-pill {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.teps-eb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teps-eb-cta {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #BE123C;
  font-size: 15.5px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(120, 10, 10, 0.18);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.teps-eb-cta:hover {
  background: #FFF1F2;
  color: #9F1239;
  transform: translateY(-1px);
}

/* Fallback Banner (shown after modal is closed) */
@keyframes tepsEbBannerPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 52, 52, 0.5), 0 4px 14px rgba(239, 52, 52, 0.28);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 52, 52, 0.25), 0 6px 22px rgba(239, 52, 52, 0.45);
    filter: brightness(1.06);
  }
}

@keyframes tepsEbTagPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 241, 242, 0.65);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 5px rgba(255, 241, 242, 0);
  }
}

.teps-eb-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 11px 20px;
  background: #EF3434;
  color: #FFFFFF;
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 25;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  animation: tepsEbBannerPulse 2.4s ease-in-out infinite;
  transition: filter 0.16s ease;
}

.teps-eb-banner:hover {
  filter: brightness(1.08);
  color: #FFFFFF;
}

.teps-eb-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #FFF1F2;
  color: #BE123C;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: tepsEbTagPulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  .teps-eb-banner,
  .teps-eb-banner-tag {
    animation: none;
  }
}

.teps-eb-banner-text {
  font-weight: 600;
  color: #FFFFFF;
}

.teps-eb-banner-days {
  font-weight: 850;
  color: #FFFFFF;
  white-space: nowrap;
}

.teps-eb-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.teps-eb-banner:hover .teps-eb-banner-action {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  .teps-eb-dialog {
    padding: 24px 20px 20px;
  }

  .teps-eb-title {
    font-size: 21px;
  }

  .teps-eb-countdown-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .teps-eb-banner {
    justify-content: flex-start;
    padding: 10px 14px;
    gap: 8px;
    font-size: 13px;
  }
}