@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400;600&display=swap');    

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh;
  background: linear-gradient(120deg, #f5c60a, #fda085 38%, #a1c4fd 68%, #c2e9fb);
  overflow: hidden; position: relative;
}

body::before {
  content: ''; position: absolute; width: 160vw; height: 160vh; left: 50%; top: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.28) 30%, transparent 95%);
  transform: translate(-50%,-50%); animation: bgFloating 30s linear infinite alternate; z-index: 0;
}

@keyframes bgFloating {
  0% {transform: translate(-50%,-50%) rotate(0deg);}
  100% {transform: translate(-50%,-50%) rotate(360deg);}
}

.container {
  position: relative; z-index: 1; background: rgba(255,255,255,0.24);
  backdrop-filter: blur(18px) saturate(175%);
  border-radius: 28px;
  padding: 44px 60px 32px 60px;
  margin-top: 15px;
  text-align: center;
  box-shadow: 0 32px 60px rgba(255, 143, 108, 0.24), 0 4px 14px #fa72ef20;
  border: 2.5px solid rgba(255,255,255,0.23);
  transition: transform 0.36s cubic-bezier(.9,.7,.43,1.2), box-shadow 0.3s;
  max-width: 90vw;
}

.container:hover {
  transform: scale(1.055) translateY(-5px);
  box-shadow: 0 48px 90px #799cf7c9, 0 18px 64.5px #ffbfaec6;
}

.container h1, .container h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #23366c;
  letter-spacing: .04em;
  margin-bottom: .8em;
  text-shadow: 0 5px 16px #839eea25;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-end;
}

.button-group .webp-btn {
  margin-left: auto;
  margin-top: 5px;
}

.tick-btn {
  background: linear-gradient(90deg, #00e0ff, #0078ff);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(0,200,255,0.6), 0 0 25px rgba(0,200,255,0.4), inset 0 0 10px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tick-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.tick-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0,255,255,1), 0 0 50px rgba(0,200,255,0.8), inset 0 0 20px rgba(255,255,255,0.5);
  background: linear-gradient(90deg, #00b4ff, #00ffbf);
}

.tick-btn:hover::before {
  animation: shine 0.6s ease-in-out;
  opacity: 1;
}

@keyframes shine {
  0% {transform: translateX(-100%) translateY(-100%) rotate(45deg);}
  100% {transform: translateX(100%) translateY(100%) rotate(45deg);}
}

.tick-btn.danger {
  background: linear-gradient(90deg, #ff4d4d, #ff0000);
  box-shadow: 0 0 15px rgba(255,0,0,0.6), 0 0 25px rgba(255,50,50,0.4), inset 0 0 10px rgba(255,255,255,0.3);
}

.tick-btn.danger:hover {
  box-shadow: 0 0 30px rgba(255,100,100,1), 0 0 50px rgba(255,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.5);
  background: linear-gradient(90deg, #ff6666, #ff1a1a);
}

#grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
  width: 90%;
  max-width: 800px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

#grid::-webkit-scrollbar {width: 8px;}
#grid::-webkit-scrollbar-thumb {background: #666; border-radius: 4px;}

.preview-container {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed #ffe6ff85;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  justify-items: center;
  align-items: center;
}

.preview-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: linear-gradient(45deg, #333, #555);
}

.preview-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0,150,255,0.5);
}

.footer-box {margin-top: 8px; text-align: right;}
.footer-dev {font-size: 8px; margin: 0;}
.dev-author {color: #070707; font-size: 11px; font-weight: bold;}

.img-card {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DOWNLOAD PROGRESS BAR - ENHANCED */
.progress-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f5ff, #00ff85);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.6);
}

#progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 480px) {
  #grid {
    width: 95% !important;
    padding: 12px !important;
    gap: 6px !important;
  }
  .preview-thumb {
    width: 45px !important;
    height: 45px !important;
  }
}
