* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #161616 50%, #1a1a1a 100%);
  min-height: 100vh;
  color: #fff;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: #aaa;
  font-size: 1rem;
}

.tagline {
  color: #888;
  font-size: 1.05rem;
  margin-top: 8px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.video-meta {
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}

.content {
  margin-top: 50px;
}

.features {
  margin-bottom: 50px;
}

.features h2, .how-to h2, .faq h2, .cta h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #eee;
}

.feature p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(90deg, #fe2c55, #25f4ee);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.faq-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #fff;
}

.faq-item p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cta {
  margin-top: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 20px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: #888;
}

footer {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 20px;
}

.footer-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-content p {
  color: #666;
  font-size: 0.85rem;
}

.footer-content h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #aaa;
}

.footer-content ul {
  list-style: none;
}

.footer-content li {
  margin-bottom: 4px;
}

.footer-content a {
  color: #777;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #00f2ea;
}

.copyright {
  color: #444;
  font-size: 0.8rem;
}

.insta-float {
  position: fixed;
  left: 24px;
  bottom: 96px;
  width: 60px;
  height: 60px;
  background: #000;
  border: 2px solid #fe2c55;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: transform 0.2s;
}
.insta-float:hover {
  transform: translateY(-4px) scale(1.08);
}

.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
}

@media (max-width: 540px) {
  .container {
    padding: 20px 16px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .input-group {
    flex-direction: column;
  }
  #downloadBtn {
    width: 100%;
  }
  .download-options {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#urlInput {
  flex: 1;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#urlInput::placeholder {
  color: #666;
}

#urlInput:focus {
  border-color: #ff0050;
}

#downloadBtn {
  padding: 14px 30px;
  background: linear-gradient(90deg, #ff0050, #ff0050dd);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

#downloadBtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#downloadBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.result {
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.video-preview {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

#thumbnail {
  width: 100%;
  display: block;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
}

.video-info p {
  color: #888;
  font-size: 0.9rem;
}

.download-options {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(90deg, #fe2c55, #fe2c55dd);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.error {
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 50px;
  color: #ff6b6b;
  text-align: center;
  font-size: 0.95rem;
}

.loading {
  text-align: center;
  margin-top: 30px;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fe2c55;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading p {
  color: #888;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  margin-top: 50px;
  color: #555;
  font-size: 0.85rem;
}

footer a {
  color: #777;
  text-decoration: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 540px) {
  .container {
    padding: 20px 16px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .input-group {
    flex-direction: column;
  }
  #downloadBtn {
    width: 100%;
  }
  .download-options {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

