/* ==========================================================================
   LapakRemove - Watermark Remover
   Tampilan flat, netral, satu warna aksen (oranye). Tanpa gradient, glow,
   glassmorphism, atau animasi berlebihan.
   Nama variabel lama dipertahankan supaya style inline di index.php tetap jalan.
   ========================================================================== */

:root {
  --bg-primary: #151617;
  --bg-secondary: #1b1c1e;
  --bg-card: #1f2023;
  --bg-card-hover: #26282b;
  --bg-input: #ffffff;
  --border-glass: #34373b;
  --border-focus: #e0561b;

  --accent: #e0561b;
  --accent-hover: #c94a16;
  --accent-cyan: #f08a4b; /* dipakai inline untuk teks sorotan */
  --accent-indigo: #e0561b; /* dipakai inline untuk ikon/angka */
  --accent-purple: #e0561b;
  --accent-emerald: #3fa66b;
  --accent-amber: #d9a21b;
  --accent-rose: #d9534f;

  --grad-primary: #e0561b; /* sengaja flat, bukan gradient */

  --text-main: #ececea;
  --text-primary: #ececea;
  --text-muted: #a4a7ab;
  --text-dim: #7d8187;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-glow: none;

  --transition-fast: 0.12s ease;
  --transition-normal: 0.18s ease;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Overlay grid dimatikan */
.bg-grid {
  display: none;
}

/* ── Container ── */
.app-container {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(14px, 3vw, 22px) 72px;
}

/* ── Header ── */
.app-header {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.brand-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.app-title {
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.22;
}

/* Dulu gradient text, sekarang satu warna polos */
.gradient-text {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
  display: inline;
}

.app-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Tabs ── */
.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  max-width: 820px;
  margin: 0 auto clamp(20px, 4vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 42px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.tab-btn.active {
  color: #ffffff;
  background: var(--accent);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ── Card (nama class lama dipertahankan) ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 4vw, 30px);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

/* ── Form lama (url-input) ── */
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .input-group {
    flex-direction: column;
  }
}

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

.link-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b7076;
  pointer-events: none;
}

.url-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-input);
  border: 1px solid #bfc3c8;
  border-radius: var(--radius-md);
  color: #16181a;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  min-height: 48px;
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 86, 27, 0.25);
}

/* ── Tombol ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 46px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: #b04112;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 42px;
  background: transparent;
  border: 1px solid #4a4e53;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: #6a6f75;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ── Badge platform yang didukung ── */
.supported-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-main);
}

/* ── Drop zone ── */
.drop-zone {
  border: 2px dashed #4a4e53;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 6vw, 50px) clamp(16px, 4vw, 26px);
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  transition:
    border-color var(--transition-normal),
    background var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: #221c18;
}

.drop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--bg-card-hover);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.drop-title {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  max-width: 580px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

/* ── Editor ── */
.editor-workspace {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }
}

.preview-container {
  background: #000000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 40vw, 460px);
}

.canvas-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 520px;
  display: inline-block;
  user-select: none;
  touch-action: none;
}

.canvas-wrapper canvas,
.canvas-wrapper video,
.canvas-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* Kotak seleksi watermark: tetap kontras di atas video apa pun */
.watermark-box {
  position: absolute;
  border: 2px solid #ff7a3d;
  background: rgba(255, 122, 61, 0.18);
  cursor: move;
  border-radius: 2px;
  z-index: 10;
  touch-action: none;
}

.watermark-box::after {
  content: "Area Watermark";
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: #c94a16;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

.box-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 2px solid #c94a16;
  border-radius: 3px;
  touch-action: none;
}

.handle-tl {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}
.handle-tr {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}
.handle-bl {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}
.handle-br {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 3vw, 20px);
}

.control-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.preset-btn {
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #44484d;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.preset-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.method-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.radio-card:hover {
  background: var(--bg-card-hover);
}

.radio-card.active {
  background: #2a211b;
  border-color: var(--accent);
}

.radio-card input {
  accent-color: var(--accent);
}

.radio-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.radio-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.range-group {
  margin-top: 14px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}

/* ── Progress ── */
.progress-card {
  margin-top: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.progress-status {
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-percent {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #2e3033;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Hasil ── */
.result-card {
  margin-top: 22px;
  background: var(--bg-secondary);
  border: 1px solid #2f5a42;
  border-radius: var(--radius-xl);
  padding: clamp(16px, 4vw, 26px);
  text-align: center;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  background: rgba(63, 166, 107, 0.14);
  color: #62c58c;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.result-media {
  max-width: 520px;
  max-height: 380px;
  margin: 16px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.result-media video,
.result-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ── Kode & bookmarklet ── */
.code-box {
  background: #0f1011;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #d7d9db;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 14px 0;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  font-size: 0.75rem;
  background: #2c2e31;
  border: 1px solid #44484d;
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
}

.copy-btn:hover {
  background: #3a3d41;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.step-text strong {
  color: var(--text-main);
}

/* ── SEO / artikel ── */
.seo-section {
  margin-top: 46px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.seo-title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 22px 0 36px;
}

.seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.seo-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.seo-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.seo-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #4d5156;
}

.faq-summary {
  padding: 15px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-content {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 400px;
  margin-left: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 11px 16px;
  background: #2a2c2f;
  border: 1px solid #44484d;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.18s ease;
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.toast.success {
  border-left: 3px solid var(--accent-emerald);
}

.toast.error {
  border-left: 3px solid var(--accent-rose);
}

.toast-icon {
  font-weight: 800;
}

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

/* ── Footer ── */
.app-footer {
  margin-top: 46px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
}

.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==========================================================================
   Tab 1: Download dari Link
   ========================================================================== */

.feature-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.banner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-body {
  flex: 1;
}

.banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f4f4f2;
  margin-bottom: 4px;
}

.banner-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Input link: PUTIH, teks gelap, jelas terlihat ── */
.input-container {
  margin-bottom: 22px;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f4f4f2;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #6b7076;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 92px 13px 42px;
  background: #ffffff;
  border: 1px solid #bfc3c8;
  border-radius: var(--radius-md);
  color: #16181a;
  caret-color: #16181a;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 86, 27, 0.28);
}

.input-wrapper input::placeholder {
  color: #7a7f85;
  font-size: 0.88rem;
}

/* Autofill browser tidak boleh mengubah warna jadi biru/kuning */
.input-wrapper input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #ffffff inset;
  -webkit-text-fill-color: #16181a;
}

.btn-input-action {
  position: absolute;
  right: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: #eceef0;
  border: 1px solid #c8ccd0;
  border-radius: var(--radius-sm);
  color: #2b2f33;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-input-action:hover {
  background: #dcdfe2;
  color: #000000;
}

/* ── Contoh link ── */
.input-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.hint-label {
  color: var(--text-dim);
  font-weight: 500;
}

.hint-sample-text,
.chip-sample {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--mono);
}

.hint-sample-text {
  user-select: all;
  cursor: default;
}

.chip-sample {
  color: var(--accent-cyan);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chip-sample:hover {
  background: var(--bg-card-hover);
  color: #ffb27d;
}

/* ── Hasil ekstraksi ── */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 15px;
  margin-bottom: 16px;
  background: rgba(63, 166, 107, 0.1);
  border: 1px solid #2f5a42;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 10px;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.results-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #8fd8ae;
}

.results-submeta {
  font-size: 0.82rem;
  color: #c4c7ca;
  display: flex;
  gap: 12px;
  align-items: center;
}

.extractor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.media-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-card-header {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.media-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f4f2;
  line-height: 1.35;
  margin-bottom: 4px;
}

.media-card-author {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.media-badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(63, 166, 107, 0.14);
  border: 1px solid #2f5a42;
  color: #62c58c;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62c58c;
}

.media-player-wrapper {
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: 380px;
  overflow: hidden;
}

.media-player-wrapper video {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #000;
  display: block;
}

.media-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  background: #1a1b1d;
  border-bottom: 1px solid var(--border-glass);
}

.spec-chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #c4c7ca;
}

.spec-chip b {
  color: var(--text-muted);
  font-weight: 500;
}

.media-card-actions {
  padding: 13px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: #1a1b1d;
  margin-top: auto;
}

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

.dl-spinner-ring {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dlSpin 0.7s linear infinite;
  vertical-align: middle;
}

.btn-dl-loading {
  opacity: 0.85 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* Tombol unduh utama */
.btn-dl-master {
  flex: 1;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-dl-master:hover {
  background: var(--accent-hover);
}

/* Tombol HD / upscale: hijau polos, tanpa gradient & efek kilau */
.btn-dl-upscale {
  flex: 1;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #2f8f5b;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-dl-upscale:hover {
  background: #277a4d;
  color: #ffffff;
}

.btn-dl-upscale svg {
  color: #ffffff;
  filter: none;
}

.btn-action-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid #4a4e53;
  color: #d2d4d6;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.btn-action-ghost:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

/* ── Cara download ── */
.workflow-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-glass);
}

.workflow-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.workflow-card {
  padding: 15px 17px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.wf-step {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.workflow-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f1ef;
  margin-bottom: 6px;
}

.workflow-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsif ── */
@media (max-width: 680px) {
  .input-row {
    flex-direction: column;
  }
  .input-wrapper input {
    padding-right: 84px;
  }
  .btn-primary {
    width: 100%;
  }
  .extractor-grid {
    grid-template-columns: 1fr;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 16px 12px 56px;
  }
  .glass-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }
  .media-card-actions {
    flex-direction: column;
  }
  .btn-dl-upscale,
  .btn-dl-master,
  .btn-action-ghost {
    width: 100%;
  }
}

/* ==========================================================================
   Multi-platform
   ========================================================================== */
.platform-badge {
  --pf-color: #a4a7ab;
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pf-color);
  border: 1px solid color-mix(in srgb, var(--pf-color) 50%, transparent);
  background: color-mix(in srgb, var(--pf-color) 12%, transparent);
}
.platform-badge[data-state="unknown"] {
  color: #a4a7ab;
  font-weight: 500;
}

.media-badge-clean.is-warn {
  color: #e3b64a;
  background: rgba(217, 162, 27, 0.12);
  border-color: #6b5518;
}
.media-warn {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: #ecd48e;
  background: rgba(217, 162, 27, 0.08);
  border: 1px solid #5f4c16;
}

.pt-select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}
.pt-select:focus {
  outline: none;
  border-color: var(--border-focus);
}
.pt-note {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.kf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.kf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--accent-cyan);
  background: var(--bg-card-hover);
  border: 1px solid #4a4e53;
}
.kf-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 1;
}
.kf-chip button:hover {
  background: rgba(217, 83, 79, 0.3);
}
.kf-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ==========================================================================
   SEO / konten artikel
   ========================================================================== */
.sem-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 18px 0 22px;
}

.sem-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: #d2d4d6;
  font-weight: 600;
  text-align: left;
}

.sem-trust-badge .badge-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.llm-capsule {
  margin: 34px 0 26px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.llm-capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.llm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--bg-card-hover);
  border: 1px solid #4a4e53;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.llm-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.84rem;
}

.llm-meta-table th,
.llm-meta-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.llm-meta-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: #1a1b1d;
  width: 25%;
}

.llm-meta-table td {
  color: #ececea;
}

.seo-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.seo-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.seo-pillar-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

/* Warna platform dibuat mirip warna aslinya masing-masing */
.tag-tiktok {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #55595e;
  color: #f2f2f0;
}

.tag-shopee {
  background: rgba(238, 77, 45, 0.12);
  border: 1px solid #7a2d1d;
  color: #f2836a;
}

.tag-dola {
  background: rgba(63, 166, 107, 0.12);
  border: 1px solid #2f5a42;
  color: #62c58c;
}

.tag-youtube {
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid #7a1d1d;
  color: #ff6b6b;
}

.tag-instagram {
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid #852248;
  color: #f7709b;
}

.seo-pillar-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.seo-pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.seo-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.seo-feature-pill {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.comparison-wrapper {
  margin: 34px 0;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 17px;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #f1f1ef;
}

.comparison-table th {
  background: #1a1b1d;
  color: #d2d4d6;
  font-weight: 700;
}

.comparison-table th.col-highlight {
  background: #3a2216;
  color: #ffb27d;
  border-left: 1px solid #6b3a1f;
  border-right: 1px solid #6b3a1f;
}

.comparison-table td.col-highlight {
  background: #261b14;
  border-left: 1px solid #4d2e1a;
  border-right: 1px solid #4d2e1a;
  font-weight: 700;
  color: #62c58c;
}

.check-yes {
  color: #62c58c;
  font-weight: 800;
}

.check-no {
  color: #e4716d;
  font-weight: 700;
}

.howto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 17px 19px;
  margin-bottom: 12px;
}

.howto-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.howto-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.howto-card ol li {
  margin-bottom: 6px;
}

.howto-card ol li strong {
  color: #f4f4f2;
}

@media (max-width: 680px) {
  .llm-capsule {
    padding: 18px 14px;
  }
  .llm-meta-table th,
  .llm-meta-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .seo-pillar-grid {
    grid-template-columns: 1fr;
  }
  .sem-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Slot iklan
   ========================================================================== */
.ad-slot-wrapper {
  width: 100%;
  margin: 22px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ad-slot-box {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: var(--bg-secondary);
  border: 1px dashed #44484d;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}

.ad-slot-box.has-ad {
  background: transparent;
  border: none;
  padding: 0;
}

.ad-slot-box iframe {
  border: 0;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .ad-slot-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    background: transparent;
    padding: 0;
  }
}

.ad-slot-rect {
  max-width: 336px;
  min-height: 280px;
}

.ad-placeholder-content {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 14px;
}

.ad-placeholder-content svg {
  margin-bottom: 6px;
  opacity: 0.7;
  color: var(--text-dim);
}

.ad-placeholder-content .ad-guide-text {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Skyscraper 160x300 */
.ad-skyscraper-wrapper {
  margin: 28px auto;
  width: 100%;
}

@media (min-width: 1420px) {
  .ad-skyscraper-wrapper {
    position: fixed;
    right: max(16px, calc((100vw - 1040px) / 2 - 185px));
    top: 140px;
    z-index: 90;
    margin: 0;
    width: 160px;
  }
}

/* ==========================================================================
   SweetAlert2
   ========================================================================== */
.swal2-dark-card {
  background: #1f2023 !important;
  border: 1px solid #44484d !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
  font-family: inherit !important;
  padding: 22px 20px !important;
  max-width: 440px !important;
  width: 92% !important;
}

.swal2-dark-card .swal2-title {
  color: #f4f4f2 !important;
  padding: 0 0 10px 0 !important;
  margin: 0 !important;
}

.swal2-dark-card .swal2-html-container {
  color: #c4c7ca !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.swal-btn-cancel {
  background: transparent !important;
  color: #a4a7ab !important;
  border: 1px solid #4a4e53 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 8px 18px !important;
}

.swal-btn-cancel:hover {
  background: #2a2c2f !important;
  color: #f4f4f2 !important;
}

.swal2-timer-progress-bar {
  background: #e0561b !important;
}

/* ── Video editor: advanced settings (collapsed by default) ── */
.adv-settings {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
}
.adv-settings > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.adv-settings > summary::-webkit-details-marker {
  display: none;
}
.adv-settings > summary::after {
  content: "▾";
  float: right;
  transition: transform 0.2s;
}
.adv-settings[open] > summary::after {
  transform: rotate(180deg);
}

/* ── Video editor: play / pause ── */
.vp-btn {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}
.vp-btn:hover {
  border-color: var(--border-focus);
}
#videoPlayer {
  cursor: pointer;
}
