    body, html {
      margin: 0;
      padding: 0;
      font-family: 'Poppins', sans-serif;
      background: url('images/99-nights-in-the-forest.png') ;
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      color: #fff;
      text-align: center;
      
}
    h1, h2, .pack div, #page-title {
  font-family: 'Fredoka', sans-serif;
}

button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}
    .header img {
      max-width: 120px;
      height: auto;
      margin-top: 20px;
    }
    .packs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
      padding: 20px;
    }
    .pack {
      background: url('images/GF.png') ;
background-size: cover;
      padding: 15px;
      border-radius: 10px;
      transition: transform 0.2s ease, background-color 0.3s ease;
      box-shadow: 0 20px 10px rgba(1, 0, 0, 0.10);
      font-weight: bold;
      text-align: center;
    }
    .pack:hover {
      transform: scale(1.1);
      background: rgba(255, 255, 255, 0.4);
    }
    .pack img {
      width: 100px;
      margin-bottom: 10px;
    }
    .points {
            margin-top: 8px;
            background: #fff;
            padding: 10px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
            color: #080808;
        }
    .pack button {
      display: block;
      width: 100%;
      padding: 10px 15px;
      background-color: #f2f2f0;
      border: none;
      color: #000;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
      margin-top: 10px;
    }
    .pack button:hover {
      background-color: #004ba1;
      color: #fff;
    }
    /* Modal Styles */
    .modal, .modal-generate, .verification-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
   .modal-content, .modal-generate-content {
      background: url('images/ds.png') ;
      color: #ffffff;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      width: 300px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
      font-family: 'Fredoka', sans-serif;
}

    .verification-modal .modal-content {
      background: url('images/ds.png') ;
      color: #ffffff;
      padding: 20px;
      border-radius: 15px;
      text-align: center;
      width: 350px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
    .verification-icon {
      font-size: 3rem;
      margin-bottom: 20px;
      animation: rotate 1s linear infinite;
      color: #007BFF;
    }
    @keyframes rotate {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
    .modal-content input, .modal-generate-content button {
      width: 80%;
      padding: 10px;
      margin: 10px auto;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
    }
    .modal-content button, .modal-generate-content button {
      padding: 10px 20px;
      background-color: #f2f2f0;
      border: none;
      border-radius: 5px;
      color: #000;
      font-size: 1rem;
      cursor: pointer;
    }
    .modal-content button:hover, .modal-generate-content button:hover {
      background-color: #004ba1;
      color: #fff;
    }
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: #fff;
      font-size: 1.5rem;
      cursor: pointer;
    }
    .progress-bar {
      width: 80%;
      background: #ffffff;
      border-radius: 10px;
      overflow: hidden;
      margin: 20px auto;
    }
    .progress-bar div {
      height: 20px;
      width: 0;
      background: #1e90ff;
      border-radius: 10px;
      transition: width 0.3s ease;
    }
    .verify-btn {
      display: none;
      padding: 15px 30px;
      background: linear-gradient(145deg, #007bff, #0056b3);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 1.2rem;
      font-weight: bold;
      cursor: pointer;
      margin: 20px auto;
      text-align: center;
    }
    .verify-btn.active {
      display: block;
    }
    .verify-btn:hover {
      background: linear-gradient(145deg, #0056b3, #007bff);
    }
    .fade {
      opacity: 0;
      transition: opacity 0.5s ease;
    }
    .fade-in {
      opacity: 1;
    }
    /* Animation for modal appearance */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: modalFadeIn 0.4s ease;
}
   @keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateX(-90deg) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: rotateX(20deg) scale(1.05);
  }
  100% {
    transform: rotateX(0deg) scale(1);
  }
}

.modal-generate-content {
  transform-origin: top center;
  animation: flipIn 0.6s ease-out;
}
    .complete-btn.active {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { background-color: #019112; }
  50% { background-color: #12d24f; }
}
    .progress-bar div {
  box-shadow: 0 0 10px #1e90ff, 0 0 20px #1e90ff;
}




    /* Popup styles */
        .popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
        }
        .popup-content {
            background: linear-gradient(135deg, #ffffff, #f7f7f7);
            padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    height: 350px;
    display: flex;
    flex-direction: column;  /* تغيير التوجيه إلى عمودي */
    justify-content: space-between;  /* توزيع الأزرار والمسافات بينهما */
}
        .popup-content img {
            width: 250px;
            height: 250px;
            margin: 0 auto 40px;
        }
      
        .popup-content button {
    width: 100%;  /* جعل الأزرار تأخذ عرض النافذة بالكامل */
    padding: 10px;
    margin: 5px 0; /* إضافة مسافة بين الأزرار */
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* تغيير مكان الزر "Open Locker" ليظهر في الأسفل */
#open-btn {
    margin-top: auto; /* الدفع للأعلى */
}

/* تصميم الزر "NEXT" */
#popup-points {
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* تدرج لوني جذاب */
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

#popup-points:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

#open-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#open-btn:hover {
    background-color: #9b59b6;
    transform: scale(1.05);
}
      
        .close-popup {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 18px;
            cursor: pointer;
        }

        /* Loader (دائرة التحميل) */
        .loader {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: auto;
            display: none;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* زر Open Locker */
        .open-btn {
            background: green;
            color: white;
            padding: 10px;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            display: none;
        }

        /* اهتزاز النافذة */
        @keyframes shake {
            0% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(5px); }
            60% { transform: translateX(-5px); }
            80% { transform: translateX(5px); }
            100% { transform: translateX(0); }
        }

        .shake {
            animation: shake 0.5s ease;
        }

        /* iframe for locker */
        .locker-iframe {
            width: 100%;
            border: none;
            height: 100%;
            min-height: 500px; /* Minimum height to prevent small content from being cut off */
            box-sizing: border-box;
        }

        /* Container for iframe (wrapper) */
        .locker-popup-content {
            position: relative;
            max-width: 80%;
            max-height: 80%;
            width: 90%;
            height: 90%;
        }
  
/* New Popup Styles */
.purchase-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #333;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.selected-images-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 15px auto;
}

.item-popup-image-small {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
}

.input-group input {
  width: 92%;
  padding: 15px 12px;
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.cancel-btn, .free-btn {
  flex: 1;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.cancel-btn {
  background-color: #555;
  color: white;
  border: none;
}

.free-btn {
  background-color: white;
  border: none;
  color: #333;
}
   .modal-item-img {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
  display: none;
  display: block;
  animation: zoomIn 0.4s ease;
}


/* اختياري: أنيميشن بسيط */
@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
    .roblox-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.roblox-loader div {
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-radius: 3px;
  animation: bounce 1.2s infinite ease-in-out both;
}

.roblox-loader div:nth-child(1) {
  animation-delay: -0.4s;
}
.roblox-loader div:nth-child(2) {
  animation-delay: -0.2s;
}
.roblox-loader div:nth-child(3) {
  animation-delay: 0s;
}
.roblox-loader div:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.verification-spinner {
  border: 6px solid #f3f3f3;            /* الخلفية */
  border-top: 6px solid #3498db;        /* الجزء الدوار */
  border-radius: 50%;                   /* جعله دائريًا */
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.square-loader {
  width: 64px;
  height: 64px;
  position: relative;
  margin: 0 auto 20px;
}

.square-loader div {
  width: 16px;
  height: 16px;
  background: #ffffff;
  position: absolute;
  animation: squareFade 1.2s linear infinite;
}

.square-loader div:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}
.square-loader div:nth-child(2) {
  top: 0;
  right: 0;
  animation-delay: 0.3s;
}
.square-loader div:nth-child(3) {
  bottom: 0;
  right: 0;
  animation-delay: 0.6s;
}
.square-loader div:nth-child(4) {
  bottom: 0;
  left: 0;
  animation-delay: 0.9s;
}

@keyframes squareFade {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}
