/* SIMADDA Campaign Discount Promotional Popup (Popup Type 2) */

.cmp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cmp-popup-modal {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: min(92vh, 880px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 60%),
              radial-gradient(circle at 10% 40%, rgba(0, 212, 255, 0.08), transparent 50%),
              radial-gradient(circle at 90% 70%, rgba(155, 81, 224, 0.08), transparent 50%),
              #0a0a0c;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.18), 0 25px 70px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

/* Close Button */
.cmp-popup-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmp-popup-close:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
  color: #d4af37;
  transform: rotate(90deg);
}

/* Header Section */
.cmp-popup-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}

.cmp-popup-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cmp-popup-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.cmp-popup-brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gold, #d4af37);
  font-family: 'Montserrat', sans-serif;
}

.cmp-popup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Sale Headline Flashing Box */
.cmp-popup-headline-box {
  background: linear-gradient(135deg, #c1121f 0%, #780000 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.5);
  margin-bottom: 10px;
  animation: cmpHeadPulse 1.6s ease-in-out infinite;
}

@keyframes cmpHeadPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(193, 18, 31, 0.4); filter: brightness(1); }
  50% { box-shadow: 0 14px 40px rgba(193, 18, 31, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.12); filter: brightness(1.1); }
}

.cmp-popup-headline {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cmp-popup-subhead {
  color: var(--text-muted, #a0a0a0);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* Center Content & Badges Layout */
.cmp-popup-mid-row {
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr minmax(130px, 170px);
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

/* Discount Badge Circle */
.cmp-popup-discount-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.3), #120a05);
  border: 3px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.3);
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.cmp-popup-discount-badge .badge-top {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff4d4d;
  text-transform: uppercase;
}

.cmp-popup-discount-badge .badge-pct {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold, #d4af37);
  margin: 2px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cmp-popup-discount-badge .badge-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: #c1121f;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* Countdown Timer */
.cmp-popup-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cmp-popup-timer {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cmp-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1f0b08 0%, #0d0403 100%);
  border: 1px solid rgba(220, 38, 38, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cmp-timer-box .timer-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold, #d4af37);
  line-height: 1;
}

.cmp-timer-box .timer-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #a0a0a0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Flash Badge */
.cmp-popup-flash-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(220, 38, 38, 0.1));
  border: 1px solid var(--gold, #d4af37);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  text-align: center;
}

.cmp-popup-flash-badge .flash-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold, #d4af37);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cmp-popup-flash-badge .flash-sub {
  font-size: 10px;
  font-weight: 700;
  color: #ff4d4d;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 4 Category Promotional Cards Grid */
.cmp-popup-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cmp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.cmp-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cmp-card:hover .cmp-card-bg {
  opacity: 0.55;
  transform: scale(1.05);
}

.cmp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.95) 100%);
}

.cmp-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cmp-card-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-color, #d4af37);
  margin-bottom: 4px;
  line-height: 1.25;
}

.cmp-card-sub {
  font-size: 9px;
  font-weight: 700;
  color: #a0a0a0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: auto;
}

.cmp-card-desc {
  font-size: 10px;
  color: var(--text-faint, #99907c);
  margin-top: 10px;
  line-height: 1.35;
}

.cmp-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category Card Arrow Circle Button */
.cmp-card-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cmp-card-btn svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  stroke-width: 2.8;
  display: block;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.cmp-card:hover {
  border-color: var(--accent-color, #d4af37);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

.cmp-card:hover .cmp-card-btn {
  background: var(--accent-color, #d4af37);
  border-color: var(--accent-color, #d4af37);
  transform: scale(1.08);
}

.cmp-card:hover .cmp-card-btn svg {
  stroke: #050505;
  transform: translateX(1.5px);
}

/* Footer Section */
.cmp-popup-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cmp-popup-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.cmp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #a0a0a0);
  letter-spacing: 0.04em;
}

.cmp-trust-item span.material-symbols-outlined {
  font-size: 16px;
  color: var(--gold, #d4af37);
}

/* Main CTA Button */
.cmp-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d657 0%, #d4af37 50%, #aa820a 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #050505;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.cmp-cta-text {
  white-space: nowrap;
}

.cmp-cta-arrow {
  display: inline-block;
  flex-shrink: 0;
  stroke: #050505;
  stroke-width: 2.8;
  transition: transform 0.25s ease;
}

.cmp-popup-cta:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
  color: #000;
}

.cmp-popup-cta:hover .cmp-cta-arrow {
  transform: translateX(3px);
}

.cmp-popup-note {
  font-size: 12px;
  color: var(--text-faint, #99907c);
  text-align: center;
  margin: 0;
}

/* RESPONSIVE LAYOUT & MEDIA QUERIES */

@media (max-width: 880px) {
  .cmp-popup-modal {
    padding: 24px 20px;
    max-height: 90vh;
  }
  .cmp-popup-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .cmp-popup-overlay {
    padding: 12px;
  }

  .cmp-popup-modal {
    padding: 20px 14px;
    border-radius: 16px;
    max-height: 92vh;
  }

  .cmp-popup-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .cmp-popup-brand {
    gap: 8px;
    margin-bottom: 8px;
  }

  .cmp-popup-brand-logo {
    height: 26px;
  }

  .cmp-popup-brand-text {
    font-size: 19px;
  }

  .cmp-popup-kicker {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .cmp-popup-headline-box {
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    width: 100%;
  }

  .cmp-popup-headline {
    font-size: clamp(18px, 5vw, 24px);
  }

  .cmp-popup-subhead {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .cmp-popup-mid-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .cmp-popup-discount-badge {
    width: 125px;
    height: 125px;
    padding: 8px;
  }

  .cmp-popup-discount-badge .badge-pct {
    font-size: 30px;
  }

  .cmp-popup-timer {
    gap: 8px;
  }

  .cmp-timer-box {
    width: 54px;
    height: 56px;
  }

  .cmp-timer-box .timer-num {
    font-size: 20px;
  }

  .cmp-popup-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .cmp-card {
    min-height: 115px;
    padding: 14px;
  }

  .cmp-card-title {
    font-size: 12px;
  }

  .cmp-card-desc {
    font-size: 9.5px;
    margin-top: 4px;
  }

  .cmp-card-btn {
    width: 28px;
    height: 28px;
  }

  .cmp-card-btn svg {
    width: 13px;
    height: 13px;
  }

  .cmp-popup-trust-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    padding: 10px 12px;
  }

  .cmp-trust-item {
    font-size: 10px;
    justify-content: center;
  }

  /* Main CTA Button on Mobile: Single line EXPLORE ALL DEALS → */
  .cmp-popup-cta {
    width: fit-content;
    padding: 13px 24px;
    font-size: 13.5px;
    gap: 8px;
    margin: 0 auto;
  }

  .cmp-cta-text {
    white-space: nowrap;
  }

  .cmp-popup-note {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .cmp-popup-cta {
    padding: 12px 18px;
    font-size: 12px;
    gap: 6px;
    letter-spacing: 0.05em;
  }

  .cmp-popup-discount-badge {
    width: 110px;
    height: 110px;
  }

  .cmp-popup-discount-badge .badge-pct {
    font-size: 26px;
  }

  .cmp-timer-box {
    width: 48px;
    height: 50px;
  }

  .cmp-timer-box .timer-num {
    font-size: 18px;
  }
}
