/* ==========================================================================
   CouponBuzz — AdbluMalia content locker (template-accurate)
   Dark green sponsor-style locker on top of the site. A single gift icon is
   shown for every coupon; the code is revealed after one sponsored offer.
   ========================================================================== */

#locker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
  z-index: 300;
  background: rgba(2, 6, 4, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: Arial, sans-serif;
  color: #fff;
}
body.lock-scroll { overflow: hidden; }

/* --------------------- PRE-LOCKER LOADING SCREEN --------------------- */

#locker .lk-load {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 8, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.32s ease;
}
#locker .lk-load.is-done { opacity: 0; pointer-events: none; }

#locker .lk-load-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 42px;
  border-radius: 24px;
  background: rgba(16, 34, 24, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 42px rgba(16, 185, 129, 0.16);
  text-align: center;
}

#locker .lk-load-ring {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 28%, #14402a, #0a1410 70%);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08), 0 0 28px rgba(16, 185, 129, 0.35), inset 0 0 12px rgba(16, 185, 129, 0.22);
}
#locker .lk-load-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #34d399;
  border-right-color: rgba(52, 211, 153, 0.35);
  animation: spin 0.85s linear infinite;
}
#locker .lk-load-ring .gift-icon {
  width: 33px;
  height: 33px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

#locker .lk-load-title {
  font-size: 16px;
  font-weight: 700;
  color: #eafff4;
  letter-spacing: 0.2px;
}
#locker .lk-load-status {
  font-size: 12px;
  color: rgba(234, 255, 244, 0.55);
  min-height: 16px;
  transition: color 0.3s ease;
}
#locker .lk-load-status.is-done { color: #34d399; }

/* --------------------- MAIN BOX --------------------- */

#locker .box {
  width: 100%;
  max-width: 420px;
  background: #0b0f0b;
  border-radius: 25px;
  padding: 60px 20px 20px;
  position: relative;

  border: 2px solid #00ff99;

  box-shadow:
    0 0 10px rgba(0, 255, 100, 0.6),
    0 0 25px rgba(0, 255, 100, 0.4),
    0 0 50px rgba(0, 255, 100, 0.25),
    inset 0 0 10px rgba(0, 255, 100, 0.2);
}

/* --------------------- TOP IMAGE CIRCLE (gift icon) --------------------- */

#locker .icon-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1ed760;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.6);
  overflow: hidden;
}
#locker .icon-circle .gift-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

/* --------------------- TOP TEXT --------------------- */

#locker .title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

#locker .highlight {
  color: #1ed760;
}

#locker .subtitle {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin: 10px 0 20px;
}

/* --------------------- OFFER LIST & ANIMATIONS --------------------- */

#locker .offer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: linear-gradient(
    180deg,
    #34d27a 0%,
    #27ae60 40%,
    #1e7f45 100%
  );

  padding: 14px;
  margin: 12px 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 120, 0.25);

  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.15),
    inset 0 -6px 10px rgba(0, 0, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.5);

  gap: 12px;
  position: relative;
  overflow: hidden;
  animation: slowPulse 3s infinite ease-in-out;
  cursor: pointer;
}

/* Offer Box Glaze Effect */
#locker .offer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: glazeSweep 4s infinite;
  pointer-events: none;
}

#locker .offer .left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

#locker .offer .left img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 3px rgba(255, 255, 255, 0.4);
}

#locker .offer .offer-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#locker .offer .offer-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  overflow-wrap: break-word;
}

#locker .offer .offer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  overflow-wrap: break-word;
}

#locker .open-btn {
  background: linear-gradient(180deg, #ff4d4d, #d90000);
  color: white;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;

  display: flex;
  align-items: center;
  gap: 5px;

  white-space: nowrap;
  flex-shrink: 0;

  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.5);

  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
}

#locker .open-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: glazeSweep 2.5s infinite;
  pointer-events: none;
}

/* --------------------- VERIFYING / REVEAL --------------------- */

#locker .verify {
  text-align: center;
  color: #cfd;
  padding: 26px 10px;
  margin: 14px 0;
  border: 1px dashed rgba(0, 255, 100, 0.4);
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 600;
}
#locker .verify-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 100, 0.2);
  border-top-color: #1ed760;
  animation: spin 0.9s linear infinite;
}
#locker .verify-sub { display: block; font-size: 12px; font-weight: 500; color: #7fa; opacity: .8; margin-top: 6px; }

#locker .reveal {
  text-align: center;
  padding: 18px 12px;
  margin: 14px 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 100, 0.16), rgba(0, 255, 100, 0.03) 70%);
  border: 1px solid rgba(0, 255, 100, 0.35);
}
#locker .reveal .reveal-title {
  font-size: 13px;
  font-weight: 700;
  color: #1ed760;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
#locker .full-code {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: #0d2415;
  border: 1px solid rgba(0, 255, 100, 0.4);
  border-radius: 12px;
  padding: 12px 10px;
  margin: 0 0 12px;
  word-break: break-all;
  font-family: 'SF Mono', Consolas, monospace;
}
#locker .reveal .reveal-row { display: flex; gap: 10px; flex-wrap: wrap; }
#locker .reveal .reveal-row .open-btn { flex: 1; justify-content: center; }

/* --------------------- BOTTOM TIMER --------------------- */

#locker .timer {
  margin: 20px auto 0;
  padding: 10px 18px;

  border-radius: 999px;
  background: linear-gradient(180deg, #111, #0a0a0a);

  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  gap: 6px;

  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;

  color: #aaa;

  border: 1px solid rgba(0, 255, 120, 0.2);

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 255, 120, 0.15),
    inset 0 0 6px rgba(255, 255, 255, 0.03);
}

/* --------------------- KEYFRAME ANIMATIONS --------------------- */

@keyframes slowPulse {
  0%   { transform: scale(1);    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15), inset 0 -6px 10px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.5); }
  50%  { transform: scale(1.02); box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.2), inset 0 -6px 10px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 255, 120, 0.4); }
  100% { transform: scale(1);    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15), inset 0 -6px 10px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.5); }
}

@keyframes glazeSweep {
  0%   { left: -100%; }
  20%  { left: 200%; }
  100% { left: 200%; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------- MOBILE FIT --------------------- */

@media (max-width: 480px) {
  #locker {
    align-items: flex-start;
    padding: 15px 10px;
  }
  #locker .box {
    width: 100%;
    max-width: 100%;
    margin-top: 70px;
    padding: 55px 16px 18px;
  }
  #locker .icon-circle {
    width: 70px;
    height: 70px;
  }
  #locker .icon-circle .gift-icon {
    width: 34px;
    height: 34px;
  }
  #locker .timer {
    width: 60%;
  }
  #locker .box {
    margin-top: 54px;
  }
  #locker .offer {
    padding: 10px;
    gap: 8px;
  }
  #locker .offer .left img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  #locker .offer .left {
    gap: 8px;
  }
  #locker .offer .open-btn {
    padding: 7px 12px;
    font-size: 11px;
  }
  #locker .offer .offer-title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #locker *, #locker *::after { animation-duration: .001s !important; }
}