:root {
  --bg: #0a0a0f;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --text: #0f1015;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --brand-1: #7c3aed;
  --brand-2: #ec4899;
  --brand-3: #06b6d4;
  --error: #ef4444;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* BG */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #1a0b2e 0%, transparent 50%), radial-gradient(circle at 100% 100%, #0f172a 0%, transparent 50%), linear-gradient(135deg, #0a0a0f 0%, #14141f 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: drift 25s infinite ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: var(--brand-1); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--brand-2); bottom: -80px; right: -80px; animation-delay: 8s; }
.orb-3 { width: 280px; height: 280px; background: var(--brand-3); top: 45%; left: 50%; animation-delay: 15s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.15); }
  66% { transform: translate(-40px, 40px) scale(0.9); }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.nav-mark { width: 34px; height: 34px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }
.nav-mark svg { width: 18px; height: 18px; color: #fff; }
.nav-brand em { font-style: normal; background: linear-gradient(135deg, #a78bfa, #f9a8d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* APP */
.app {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

/* ⭐ CREDIT TOP ⭐ */
.credit-top {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 -1px 0 rgba(0,0,0,0.4) inset, 0 12px 30px -8px rgba(124, 58, 237, 0.5), 0 0 20px -4px rgba(236, 72, 153, 0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.credit::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  background-size: 300% 300%;
  border-radius: 16px;
  z-index: -1;
  filter: blur(16px);
  opacity: 0.6;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.credit-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.6), 0 1px 0 rgba(255,255,255,0.4) inset;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.credit-icon svg { width: 13px; height: 13px; color: #fff; }
.credit-text { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.65); position: relative; z-index: 1; }
.credit-name {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 50%, #67e8f9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.7));
  position: relative; z-index: 1;
}

/* HERO */
.hero { text-align: center; padding: 20px 0 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 30px;
  color: #c4b5fd;
  font-size: 12px; font-weight: 600;
  margin-bottom: 16px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, #f9a8d4, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* CARD */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 30px 60px rgba(0,0,0,0.5);
  max-width: 640px;
  margin: 0 auto;
}

/* INPUT */
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.input-wrap:focus-within { border-color: var(--brand-1); background: #fff; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08); }
.input-icon { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
#urlInput {
  flex: 1;
  padding: 14px 4px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  min-width: 0;
  font-weight: 500;
}
#urlInput::placeholder { color: var(--text-3); font-weight: 400; }
.clear {
  width: 26px; height: 26px;
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all 0.15s;
}
.clear:hover { background: #d1d5db; color: var(--text); }
.clear svg { width: 12px; height: 12px; }

/* CTA */
.cta {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.5); }
.cta:disabled { opacity: 0.5; cursor: not-allowed; }
.cta svg { width: 18px; height: 18px; }

.hint { font-size: 12px; color: var(--text-2); text-align: center; padding: 10px 0 2px; font-weight: 500; }

/* SKELETON */
.skeleton { margin-top: 18px; padding: 16px; background: var(--surface-2); border-radius: 16px; }
.sk-line, .sk-video { background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.5s infinite; }
.sk-title { height: 14px; width: 60%; margin-bottom: 8px; }
.sk-meta { height: 11px; width: 40%; margin-bottom: 16px; }
.sk-video { height: 200px; border-radius: 12px; margin-bottom: 16px; }
.sk-button { height: 48px; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ALERT */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  margin-top: 16px;
  line-height: 1.5;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* RESULT */
.result { margin-top: 18px; animation: rise 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.result-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.plat-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--brand-1);
  flex-shrink: 0;
  text-transform: uppercase;
}
.plat-badge.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.plat-badge.tiktok { background: #000; }
.plat-badge.youtube { background: #FF0000; }
.plat-badge.facebook { background: #1877F2; }
.plat-badge.twitter { background: #000; }
.plat-badge.threads { background: #000; }
.plat-badge.pinterest { background: #E60023; }
.plat-badge.reddit { background: #FF4500; }
.meta { flex: 1; min-width: 0; }
.meta-user { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.meta-title { font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

/* PREVIEW */
.preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.preview video, .preview img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.preview video::-webkit-media-controls, .preview video::-webkit-media-controls-enclosure, .preview video::-webkit-media-controls-panel, .preview video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none !important; }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  cursor: pointer;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.play-overlay.hidden { opacity: 0; pointer-events: none; }
.play-btn { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,0.98); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255,255,255,0.5), 0 12px 32px rgba(0,0,0,0.5); animation: pulse-play 2s infinite; }
.play-btn svg { width: 26px; height: 26px; color: #111; margin-left: 4px; }
@keyframes pulse-play { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.5), 0 12px 32px rgba(0,0,0,0.5); } 50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255,255,255,0), 0 12px 32px rgba(0,0,0,0.5); } }
.play-text { color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.preview-watermark { position: absolute; bottom: 12px; right: 12px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.75); text-shadow: 0 2px 8px rgba(0,0,0,0.8); letter-spacing: 0.02em; pointer-events: none; background: rgba(0,0,0,0.35); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); z-index: 2; }

/* DOWNLOAD BTN */
.dl-main {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.dl-main:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.5); }
.dl-main svg { width: 20px; height: 20px; }
.dl-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--text-2); font-weight: 600; }
.dl-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }

/* PLATFORMS */
.platforms { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.plat {
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  color: rgba(255,255,255,0.55);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.plat:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }

/* SECTION — FIX GAP */
.section { padding: 40px 0 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: #a78bfa; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(20px, 4vw, 30px); font-weight: 800; letter-spacing: -0.03em; color: #fff; margin-bottom: 8px; line-height: 1.15; }
.section-head p { font-size: 13px; color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s;
}
.feat:hover { background: rgba(255,255,255,0.05); border-color: rgba(124, 58, 237, 0.3); transform: translateY(-3px); }
.feat-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feat-icon svg { width: 20px; height: 20px; color: #c4b5fd; }
.feat h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.feat p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}
.step:hover { background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}
.step h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* FAQ — FIX GAP: hapus margin bawah */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 8px; }
.faq details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.2s;
}
.faq details[open] { background: rgba(124, 58, 237, 0.06); border-color: rgba(124, 58, 237, 0.2); }
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: #a78bfa;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 16px; color: rgba(255,255,255,0.55); font-size: 13.5px; line-height: 1.6; }

/* FOOTER — CLEAN, NO CREDIT, RAPAT */
.foot {
  text-align: center;
  padding: 24px 0 16px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.foot-brand svg { width: 16px; height: 16px; color: #a78bfa; filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)); }
.foot-line { color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 500; }
.foot .copyright { color: rgba(255,255,255,0.25); font-size: 11px; font-weight: 500; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 20px;
  background: #111;
  color: #fff;
  border-radius: 30px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; }
.toast.error { background: var(--error); }
.toast.info { background: var(--brand-1); }

.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .app { padding: 0 16px 16px; }
  .credit-top { padding: 16px 0 4px; }
  .credit { padding: 9px 16px; gap: 8px; }
  .credit-icon { width: 22px; height: 22px; border-radius: 6px; }
  .credit-icon svg { width: 12px; height: 12px; }
  .credit-name { font-size: 13px; }
  .credit-text { font-size: 11.5px; }
  .hero { padding: 16px 0 16px; }
  .section { padding: 32px 0 0; }
  .section-head { margin-bottom: 22px; }
  .card { padding: 16px; border-radius: 18px; }
  .plat { padding: 6px 12px; font-size: 11px; }
  .feat, .step { padding: 16px; }
  .foot { padding: 18px 0 12px; margin-top: 18px; gap: 6px; }
}

/* ============ PLATFORM PILLS WITH SVG LOGO ============ */
.platforms {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.plat svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: all 0.25s;
}

.plat span {
  line-height: 1;
}

/* Instagram */
.plat[data-platform="instagram"]:hover {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.15), rgba(188, 24, 136, 0.15));
  border-color: rgba(225, 48, 108, 0.5);
  color: #f9a8d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(225, 48, 108, 0.5);
}
.plat[data-platform="instagram"]:hover svg { color: #E1306C; }

/* TikTok */
.plat[data-platform="tiktok"]:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(37, 244, 238, 0.1));
  border-color: rgba(37, 244, 238, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(37, 244, 238, 0.4);
}
.plat[data-platform="tiktok"]:hover svg { color: #25F4EE; filter: drop-shadow(2px 0 0 #FE2C55) drop-shadow(-2px 0 0 #25F4EE); }

/* YouTube */
.plat[data-platform="youtube"]:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(255, 0, 0, 0.5);
}
.plat[data-platform="youtube"]:hover svg { color: #FF0000; }

/* Facebook */
.plat[data-platform="facebook"]:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(24, 119, 242, 0.5);
}
.plat[data-platform="facebook"]:hover svg { color: #1877F2; }

/* Twitter/X */
.plat[data-platform="twitter"]:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(255, 255, 255, 0.3);
}
.plat[data-platform="twitter"]:hover svg { color: #fff; }

/* Threads */
.plat[data-platform="threads"]:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.plat[data-platform="threads"]:hover svg { color: #fff; }

/* Pinterest */
.plat[data-platform="pinterest"]:hover {
  background: rgba(230, 0, 35, 0.15);
  border-color: rgba(230, 0, 35, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(230, 0, 35, 0.5);
}
.plat[data-platform="pinterest"]:hover svg { color: #E60023; }

/* Reddit */
.plat[data-platform="reddit"]:hover {
  background: rgba(255, 69, 0, 0.15);
  border-color: rgba(255, 69, 0, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(255, 69, 0, 0.5);
}
.plat[data-platform="reddit"]:hover svg { color: #FF4500; }

/* Mobile */
@media (max-width: 640px) {
  .plat { padding: 7px 12px 7px 10px; font-size: 11px; gap: 5px; }
  .plat svg { width: 13px; height: 13px; }
  .platforms { gap: 8px; }
}

/* ============ DOWNLOAD PROGRESS ============ */
.dl-progress {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  animation: rise 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dl-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-progress-percent {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-1);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

.dl-progress-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dl-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 4px;
  transition: width 0.25s ease;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  position: relative;
  overflow: hidden;
}

.dl-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ CREDIT RAPI (FIX) ============ */
.credit-top {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 8px 24px -8px rgba(124, 58, 237, 0.5);
  position: relative;
  overflow: hidden;
}

.credit::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  background-size: 300% 300%;
  border-radius: 14px;
  z-index: -1;
  filter: blur(14px);
  opacity: 0.5;
  animation: gradient-shift 4s ease infinite;
}

.credit-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.6);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.credit-icon svg {
  width: 11px;
  height: 11px;
  color: #fff;
}

.credit-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.credit-name {
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #a78bfa 0%, #f9a8d4 50%, #67e8f9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  filter: drop-shadow(0 1px 4px rgba(167, 139, 250, 0.6));
  position: relative;
  z-index: 1;
}

/* Reduce spacing hero */
.hero {
  padding: 12px 0 16px !important;
}

.hero-badge {
  margin-bottom: 12px !important;
}

.hero h1 {
  margin-bottom: 10px !important;
}

.hero-sub {
  margin-bottom: 20px !important;
}

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

@media (max-width: 640px) {
  .credit-top { padding: 12px 0 2px; }
  .credit { padding: 7px 14px; gap: 7px; }
  .credit-icon { width: 18px; height: 18px; border-radius: 5px; }
  .credit-icon svg { width: 10px; height: 10px; }
  .credit-name { font-size: 12px; }
  .credit-text { font-size: 10.5px; }
  .hero { padding: 8px 0 12px !important; }
}

/* ============ NAVBAR WITH BURGER ============ */
.nav-burger {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.nav-burger svg { width: 20px; height: 20px; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-spacer { flex: 1; }

/* ============ DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: linear-gradient(180deg, #14141f 0%, #0a0a0f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}
.drawer.show {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}
.drawer-mark svg { width: 16px; height: 16px; color: #fff; }
.drawer-title {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.drawer-title em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.drawer-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.drawer-close svg { width: 16px; height: 16px; }

.drawer-section {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.drawer-section:last-of-type { border-bottom: none; }
.drawer-label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 10px 8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 11px;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 2px;
}
.drawer-item:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
}
.drawer-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.2));
  color: #fff;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 9px 11px;
}
.drawer-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.drawer-icon svg { width: 15px; height: 15px; color: #fff; }

.drawer-foot {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 11px;
  width: 100%;
  justify-content: center;
}

/* ============ HERO TAB TRANSITION ============ */
.hero-badge,
.hero h1,
.hero-sub {
  transition: opacity 0.3s;
}
.hero.tab-switching .hero-badge,
.hero.tab-switching h1,
.hero.tab-switching .hero-sub {
  opacity: 0;
}

/* ============ INPUT WRAP FOCUS PER PLATFORM ============ */
.input-wrap[data-platform="instagram"]:focus-within { border-color: #E1306C; box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.08); }
.input-wrap[data-platform="tiktok"]:focus-within { border-color: #25F4EE; box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.08); }
.input-wrap[data-platform="youtube"]:focus-within { border-color: #FF0000; box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08); }
.input-wrap[data-platform="facebook"]:focus-within { border-color: #1877F2; box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .drawer { width: 280px; }
}

/* ============ FIX: Preview & Button Alignment ============ */
.result {
  margin-top: 18px;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* Preview full width — sama dengan card padding */
.preview {
  width: 100%;
  margin: 0 0 14px 0 !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Tombol download full width juga */
.dl-main {
  width: 100%;
  margin: 0 !important;
  padding: 16px;
}

/* Meta rapi di bawah */
.dl-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Progress bar juga full width */
.dl-progress {
  width: 100%;
  margin: 14px 0 0 0;
}

/* Card padding lebih rapi di mobile */
@media (max-width: 640px) {
  .card {
    padding: 16px !important;
  }
  .result {
    margin-top: 16px;
  }
  .result-head {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .preview {
    margin-bottom: 12px !important;
  }
  .dl-meta {
    margin-top: 10px;
  }
}

/* ============ VIDEO LOADING INDICATOR ============ */
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: none;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.video-loading span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Meta duration styling */
.dl-meta .dur-item {
  font-weight: 700;
  color: var(--text);
}
