/* public/assets/css/new-coupon.css */

/* Modal Overlay */
.coupon-modal-overlay[hidden] {
  display: none;
}

.coupon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.coupon-modal-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

/* New Coupon Content */
.coupon-content-new {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.coupon-modal-overlay:not([hidden]) .coupon-content-new {
    transform: scale(1);
}


.coupon-close-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

.coupon-title-new {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.coupon-subtitle-new {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
}

.coupon-offer-new {
  border: 2px dashed #ff6f61;
  border-radius: 8px;
  padding: 15px;
  margin: 0 auto 20px auto;
  display: inline-block;
}

.coupon-amount-new {
  font-size: 32px;
  font-weight: 700;
  color: #ff6f61;
}

.coupon-terms-new {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.coupon-claim-btn-new {
  background-color: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s, transform 0.2s;
}

.coupon-claim-btn-new:hover {
  background-color: #e65a50;
}

.coupon-claim-btn-new:active {
  transform: scale(0.98);
}

.coupon-decline-link-new {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #999;
  text-decoration: none;
}

.coupon-decline-link-new:hover {
  text-decoration: underline;
}

/* Animations */
.animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

@keyframes firecracker-burst {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.firecracker {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffcc00;
    border-radius: 50%;
    animation: firecracker-burst 1s ease-out forwards;
}

.firecracker:nth-child(1) { top: 20%; left: 15%; animation-delay: 0.2s; }
.firecracker:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.5s; }
.firecracker:nth-child(3) { bottom: 25%; left: 25%; animation-delay: 0.8s; }
.firecracker:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 1s; }


@keyframes gift-box-jump {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.gift-box-svg {
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 80px; /* Increased size for better visibility */
    height: 80px; /* Increased size for better visibility */
    transform: translateX(-50%);
    animation: gift-box-jump 1.5s ease-in-out infinite;
    animation-delay: 0.5s;
}
