/* ==========================================
   DargoTools – Premium Cyberpunk Stylesheet
   ========================================== */

:root {
  --bg-dark: #050508;
  --bg-card: rgba(10, 8, 16, 0.45);
  --neon-cyan: #00f7ff;
  --neon-purple: #a855f7;
  --neon-rose: #f43f5e;
  --border-neon: rgba(168, 85, 247, 0.18);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --font-family: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(-45deg, #050508, #180828, #050e1a, #030303);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--transition-speed),
              border-color var(--transition-speed);
}

.glass:hover {
  border-color: rgba(0, 247, 255, 0.3);
}

.neon-btn {
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-cyan) 100%);
  color: #050508;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.neon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
  filter: brightness(1.1);
}

.neon-btn:active {
  transform: translateY(0);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
  transition: border-color var(--transition-speed);
}

.brand-logo:hover .logo-wrapper {
  border-color: var(--neon-cyan);
}

#nav-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ffffff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-speed);
  position: relative;
  padding: 4px 0;
}

.nav-item:hover {
  color: #fff;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--neon-purple), var(--neon-cyan));
  transition: width var(--transition-speed);
  border-radius: 2px;
}

.nav-item:hover::after {
  width: 100%;
}

.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  position: relative;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 247, 255, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
}

.tag-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--neon-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, var(--neon-cyan), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 247, 255, 0.15));
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 40px;
  min-height: 30px;
}

#typewriter-text {
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.cursor {
  color: var(--neon-cyan);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.downloader-console {
  padding: 32px;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

#url-input {
  width: 100%;
  padding: 16px;
  padding-right: 48px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

#url-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.15);
}

.hidden-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: none;
}

.hidden-btn.visible {
  display: block;
}

.hidden-btn:hover {
  color: #fff;
}

#submit-btn {
  padding: 0 32px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.setting-item label {
  font-weight: 600;
}

#quality-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  outline: none;
  cursor: pointer;
}

#quality-select:focus {
  border-color: var(--neon-cyan);
}

.toggle-container {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 8px;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--neon-cyan);
  color: #050508;
}

.spinner {
  border: 3px solid rgba(5, 5, 8, 0.2);
  border-top: 3px solid #050508;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

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

.hidden {
  display: none !important;
}

.status-banner {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.status-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-banner.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

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

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.accent-text {
  color: var(--neon-cyan);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.platform-card {
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
}

.platform-card:hover {
  transform: translateY(-8px);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-secondary);
  margin: 0 auto 20px;
  transition: all var(--transition-speed);
}

.platform-card:hover .icon-circle {
  color: #fff;
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-card span {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.platform-card.youtube-hover:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.03) 100%);
  border-color: rgba(220, 38, 38, 0.3);
}
.platform-card.youtube-hover:hover .icon-circle { color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }

.platform-card.instagram-hover:hover {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.15) 0%, rgba(219, 39, 119, 0.03) 100%);
  border-color: rgba(219, 39, 119, 0.3);
}
.platform-card.instagram-hover:hover .icon-circle { color: #ec4899; box-shadow: 0 0 15px rgba(236, 72, 153, 0.2); }

.platform-card.tiktok-hover:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-color: rgba(6, 182, 212, 0.3);
}
.platform-card.tiktok-hover:hover .icon-circle { color: #06b6d4; box-shadow: 0 0 15px rgba(6, 180, 210, 0.2); }

.platform-card.facebook-hover:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.03) 100%);
  border-color: rgba(37, 99, 235, 0.3);
}
.platform-card.facebook-hover:hover .icon-circle { color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon {
  border-color: rgba(255, 255, 255, 0.2);
}

.cyan-glow { color: var(--neon-cyan); }
.feature-card:hover .cyan-glow { box-shadow: 0 0 20px rgba(0, 247, 255, 0.25); }

.pink-glow { color: var(--neon-rose); }
.feature-card:hover .pink-glow { box-shadow: 0 0 20px rgba(244, 63, 94, 0.25); }

.gold-glow { color: #eab308; }
.feature-card:hover .gold-glow { box-shadow: 0 0 20px rgba(234, 179, 8, 0.25); }

.green-glow { color: #22c55e; }
.feature-card:hover .green-glow { box-shadow: 0 0 20px rgba(34, 197, 94, 0.25); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

@media (min-width: 1024px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(0, 247, 255, 0.4), rgba(168, 85, 247, 0.1));
    z-index: 0;
  }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--neon-cyan);
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: border-color var(--transition-speed);
}

.step-card:hover .step-icon-wrapper {
  border-color: var(--neon-cyan);
}

.step-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  color: #050508;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.step-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.faq-accordion {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--neon-cyan);
}

.faq-icon {
  font-size: 12px;
  color: var(--neon-cyan);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 0 solid rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-content {
  border-top-width: 1px;
}

.faq-content p {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.history-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.history-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--neon-rose);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.clear-btn:hover {
  opacity: 0.8;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.empty-state i {
  font-size: 28px;
}

.history-list {
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 13px;
  animation: slideUp 0.3s ease;
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.history-format {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.history-time {
  color: var(--text-secondary);
  font-size: 11px;
}

.history-url {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-quality {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer {
  background: rgba(3, 3, 5, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 24px 30px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--text-secondary);
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
  color: var(--neon-cyan);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 16px; }
  .input-row { flex-direction: column; }
  #submit-btn { padding: 14px; }
  .settings-row { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .section-header h2 { font-size: 32px; }
}

/* ==========================================
   Professional Futuristic AdSense Placements
   ========================================== */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px auto;
  position: relative;
  z-index: 1;
  width: 100%;
  clear: both;
}

.ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 700;
  opacity: 0.5;
}

.ad-placeholder {
  background: rgba(10, 8, 16, 0.45);
  border: 1px dashed rgba(0, 247, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed);
}

.ad-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, rgba(0, 247, 255, 0.03) 100%);
  z-index: 0;
}

.ad-placeholder:hover {
  border-color: rgba(0, 247, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.08);
}

.ad-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px;
}

.ad-icon {
  font-size: 20px;
  color: var(--neon-cyan);
  margin-bottom: 6px;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0, 247, 255, 0.2)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.4)); }
}

.ad-spec {
  font-size: 10px;
  color: var(--neon-purple);
  font-weight: 700;
  margin-top: 4px;
}

.ad-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Specific Sizes */
.ad-leaderboard {
  max-width: 970px;
  width: 100%;
}
.ad-leaderboard .ad-placeholder {
  width: 100%;
  min-height: 90px;
}

.ad-rectangle {
  max-width: 336px;
  width: 100%;
}
.ad-rectangle .ad-placeholder {
  width: 100%;
  min-height: 280px;
}

.ad-responsive {
  max-width: 100%;
  width: 100%;
}
.ad-responsive .ad-placeholder {
  width: 100%;
  min-height: 120px;
}

@media (max-width: 768px) {
  .ad-leaderboard .ad-placeholder {
    min-height: 100px;
  }
}

