@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --kp-pink:       #f0417a;
  --kp-pink-mid:   #f472a8;
  --kp-pink-light: #f9a0c8;
  --kp-pink-pale:  #fdf3f6;
  --kp-red:        #e8305a;
  --kp-font:       'Poppins', sans-serif;
}

/* ── Backdrop ── */
.kp-backdrop {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .40);
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  font-family: var(--kp-font);
  animation: kpFadeIn .3s ease both;
}
@keyframes kpFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Popup card ── */
.kp-popin {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(200, 20, 80, .45);
  animation: kpPopIn .42s cubic-bezier(.175, .885, .32, 1.275) both;
}
@keyframes kpPopIn {
  from { transform: scale(.75) translateY(24px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ── TOP section ── */
.kp-top {
  /* //background: linear-gradient(170deg, #f0417a 0%, #f472a8 45%, #f9a0c8 100%); */
background: 
  linear-gradient(45deg, #ff7fb3 25%, transparent 25%),
  linear-gradient(-45deg, #ff7fb3 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #ff7fb3 75%),
  linear-gradient(-45deg, transparent 75%, #ff7fb3 75%);
background-size: 60px 60px;
/* background-color: #ffb3cf; */
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
}
/* .kp-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 2px, transparent 2px);
  background-size: 26px 26px;
  pointer-events: none;
} */

/* ── Close ── */
   
  .kp-popin .kp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px ;
  height: 32px ;
  min-width: 32px ;
  max-width: 32px ;
  min-height: 32px ;
  max-height: 32px ;
  padding: 0 ;
  margin: 0 ;
  border: none ;
  border-radius: 50% ;
  background: #ffffff ;
  color: #d6336c ;
  font-size: 16px ;
  line-height: 1 ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  appearance: none ;
  -webkit-appearance: none ;
  flex: none ;
  overflow: hidden ;
  text-indent: 0 ;
    display: none;

}

.kp-close:hover {
  transform: scale(1.06);
}

.kp-close:hover { background: rgba(255, 255, 255, .55); }

/* ── Top texts ── */
.kp-tagline {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.kp-headline {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(150, 10, 50, .3);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  word-break: break-word;
}
.kp-bonus {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.kp-bonus-sub {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, .85);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ── Wave ── */
.kp-wave {
  display: none;
  width: 100%;
  margin-bottom: -1px;
}

/* ── BOTTOM section ── */
.kp-bottom {
  background: #fff;
  padding: 20px 24px 28px;
}

/* ── Urgency ── */
.kp-urgency {
  font-family: var(--kp-font);
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
  text-align: center;
  margin-bottom: 4px;
}
.kp-urgency strong {
  color: var(--kp-red);
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.kp-urgency-sub {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
  font-family: var(--kp-font);
}

/* ── Timer ── */
.kp-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.kp-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 72px;
}
.kp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--kp-pink-pale);
  border: 2px solid var(--kp-pink-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kp-font);
  font-size: 28px;
  font-weight: 900;
  color: var(--kp-red);
  box-shadow: 0 3px 10px rgba(232, 48, 90, .10);
  position: relative;
  overflow: hidden;
}
.kp-box::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(232, 48, 90, .07);
}
.kp-box.kp-flip { animation: kpFlip .2s ease both; }
@keyframes kpFlip {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(.82); }
  100% { transform: scaleY(1); }
}
.kp-label {
  font-family: var(--kp-font);
  font-size: 9px;
  color: #bbb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 5px;
}
.kp-colon {
  font-family: var(--kp-font);
  font-size: 24px;
  font-weight: 900;
  color: var(--kp-red);
  margin-bottom: 20px;
  flex-shrink: 0;
  animation: kpBlink 1s step-start infinite;
}
@keyframes kpBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .15; }
}

/* ── Exclusive badge ── */
.kp-exclusive {
  background: linear-gradient(135deg, var(--kp-pink-pale), #ffe0ec);
  border: 2px solid var(--kp-pink-light);
  border-radius: 14px;
  padding: 12px 18px;
  font-family: var(--kp-font);
  font-size: 13px;
  font-weight: 700;
  color: #c4184a;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 18px;
}
.kp-exclusive u { text-decoration-thickness: 2px; }

/* ── CTA button ── */
.kp-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--kp-pink), #c4184a);
  color: #fff !important;
  font-family: var(--kp-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(200, 20, 70, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}
.kp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 20, 70, .50);
  filter: brightness(1.05);
  color: #fff !important;
}
.kp-cta:active { transform: translateY(0); filter: brightness(.96); }

/* ── Decline ── */
.kp-decline {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--kp-font);
  font-size: 11px;
  color: #ccc;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}
.kp-decline:hover { color: #999; }

/* ── Expired ── */
.kp-expired {
  font-family: var(--kp-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--kp-red);
  padding: 12px;
  background: var(--kp-pink-pale);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .kp-backdrop { padding: 12px; }
  .kp-popin    { max-width: 100%; border-radius: 22px; }
  .kp-top      { padding: 32px 20px 26px; }
  .kp-bottom   { padding: 16px 18px 24px; }
  .kp-headline { font-size: 28px; }
  .kp-box      { font-size: 22px; }
  .kp-cta      { font-size: 14px; padding: 14px 20px; }
}