:root {
  --primary: #4dabf7;
  --secondary: #74c0fc;
  --dark: #2d3436;
  --light: #f5f6fa;
  --success: #00b894;
  --danger: #d63031;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #1e1e2f, #2a2a3a);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-back {
  color: var(--light);
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  text-align: center;
}

.file-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.file-info h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.file-details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.file-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-requirements {
  width: 100%;
  margin-bottom: 2rem;
}

.social-requirements h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn i {
  font-size: 1.2rem;
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.youtube {
  background: #ff0000;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.twitter {
  background: #1da1f2;
}

.social-btn.telegram {
  background: #0088cc;
}

.social-btn.completed {
  background: var(--success);
}

.social-btn.completed::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
}

.timer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.download-section {
  width: 100%;
  display: none;
  animation: fadeIn 0.5s ease;
}

.download-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77, 171, 247, 0.4);
}

.download-btn i {
  margin-right: 0.5rem;
}

.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 1rem 0 2rem 0;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.3s ease;
}

.status-text {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Download Popup Styles */
.download-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 90%;
  width: 350px;
}

.download-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.download-popup i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.download-popup h3 {
  margin-bottom: 1rem;
  color: white;
}

.download-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
}

.download-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.3s ease;
}

.download-status {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.popup-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-bg.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.floating {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 247, 0.2) 0%, rgba(77, 171, 247, 0) 70%);
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

.floating:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.floating:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
  animation-delay: 1s;
}

.floating:nth-child(3) {
  bottom: 10%;
  left: 20%;
  width: 100px;
  height: 100px;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 768px) {
  .container {
      padding: 1.5rem;
  }
  
  .social-buttons {
      flex-direction: column;
  }
  
  .social-btn {
      width: 100%;
      justify-content: center;
  }
}