/* JPG ke PNG — styles terisolasi agar tidak bentrok dengan CSS tema situs */
.jpgpng-app {
  --jp-ink: #172033;
  --jp-muted: #667085;
  --jp-line: #e4e9f2;
  --jp-blue: #4361ee;
  --jp-blue-dark: #304bd1;
  --jp-green: #139b70;
  width: min(100% - 32px, 940px);
  margin: 38px auto 56px;
  color: var(--jp-ink);
  font-family: inherit;
}
.jpgpng-app *, .jpgpng-app *::before, .jpgpng-app *::after { box-sizing: border-box; }
.jpgpng-hero { text-align: center; margin: 0 auto 26px; max-width: 760px; }
.jpgpng-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dfe6ff; border-radius: 999px; color: #4055c7; background: #f5f7ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.jpgpng-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #536dfe; box-shadow: 0 0 0 4px #e3e8ff; }
.jpgpng-hero h1 { margin: 15px 0 10px; color: var(--jp-ink); font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; font-weight: 850; letter-spacing: -.035em; }
.jpgpng-hero > p { max-width: 660px; margin: 0 auto; color: var(--jp-muted); font-size: 15px; line-height: 1.8; }
.jpgpng-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 19px; }
.jpgpng-features span { display: inline-flex; align-items: center; gap: 6px; color: #596579; font-size: 12px; font-weight: 600; }
.jpgpng-features svg, .jpgpng-btn svg, .jpgpng-privacy-note svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.jpgpng-panel { padding: clamp(16px, 3.5vw, 30px); background: #fff; border: 1px solid var(--jp-line); border-radius: 24px; box-shadow: 0 16px 50px rgba(31, 48, 84, .075); }
.jpgpng-drop-zone { border: 2px dashed #cbd5e8; border-radius: 19px; padding: clamp(24px, 5vw, 44px) 16px; text-align: center; background: linear-gradient(135deg, #f8faff, #fcfdff); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; outline: none; }
.jpgpng-drop-zone:hover, .jpgpng-drop-zone:focus-visible, .jpgpng-drop-zone.is-dragover { border-color: var(--jp-blue); background: #f1f5ff; }
.jpgpng-drop-zone.is-dragover { transform: scale(1.005); }
.jpgpng-upload-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 15px; border-radius: 20px; color: var(--jp-blue); background: #e8edff; }
.jpgpng-upload-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jpgpng-drop-zone h2, .jpgpng-section-head h2, .jpgpng-loading-area h2, .jpgpng-result-area h2 { margin: 0; color: var(--jp-ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.jpgpng-drop-zone > p { margin: 7px 0 19px; color: var(--jp-muted); font-size: 13px; }
.jpgpng-upload-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.jpgpng-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.jpgpng-btn:hover { transform: translateY(-1px); }
.jpgpng-btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.jpgpng-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.jpgpng-btn-primary { color: #fff !important; background: var(--jp-blue); box-shadow: 0 6px 15px rgba(67, 97, 238, .2); }
.jpgpng-btn-primary:hover { background: var(--jp-blue-dark); }
.jpgpng-btn-secondary { color: #39465b; background: #fff; border-color: #dce2ec; }
.jpgpng-btn-secondary:hover { background: #f7f9fc; border-color: #c3ccdc; }
.jpgpng-file-hint { margin-top: 18px; color: #7b8798; font-size: 11px; }
.jpgpng-file-hint span { padding: 0 5px; color: #b5bdca; }
.jpgpng-notice { margin-top: 14px; padding: 12px 14px; color: #9a4d10; background: #fff8e8; border: 1px solid #f4dfb1; border-radius: 11px; font-size: 13px; line-height: 1.5; }
.jpgpng-notice.is-error { color: #a52b39; background: #fff1f2; border-color: #fecdd3; }
.jpgpng-preview-area, .jpgpng-loading-area, .jpgpng-result-area { padding-top: 23px; }
.jpgpng-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jpgpng-section-head h2 { font-size: 16px; }
.jpgpng-section-head p { margin: 5px 0 0; color: var(--jp-muted); font-size: 12px; }
.jpgpng-total-size { color: var(--jp-muted); font-size: 12px; }
.jpgpng-total-size strong { color: var(--jp-blue); }
.jpgpng-file-list { max-height: 310px; overflow: auto; border: 1px solid var(--jp-line); border-radius: 14px; }
.jpgpng-file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; }
.jpgpng-file-row + .jpgpng-file-row { border-top: 1px solid #edf0f5; }
.jpgpng-file-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; color: #5368d8; background: #eef1ff; border-radius: 11px; }
.jpgpng-file-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jpgpng-file-meta { min-width: 0; flex: 1; }
.jpgpng-file-name { display: block; overflow: hidden; color: #303b50; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.jpgpng-file-size { display: block; margin-top: 4px; color: #8791a1; font-size: 11px; }
.jpgpng-remove { padding: 7px 9px; color: #c13748; background: #fff; border: 0; border-radius: 8px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.jpgpng-remove:hover { background: #fff0f2; }
.jpgpng-action-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.jpgpng-loading-area, .jpgpng-result-area { text-align: center; padding: 36px 10px 12px; }
.jpgpng-spinner { width: 42px; height: 42px; margin: 0 auto 17px; border: 4px solid #e5eaff; border-top-color: var(--jp-blue); border-radius: 50%; animation: jpgpng-spin .8s linear infinite; }
@keyframes jpgpng-spin { to { transform: rotate(360deg); } }
.jpgpng-loading-area p, .jpgpng-result-subtitle { margin: 8px 0 19px; color: var(--jp-muted); font-size: 13px; }
.jpgpng-progress-track { width: min(100%, 440px); height: 9px; margin: 0 auto; overflow: hidden; background: #edf0f7; border-radius: 99px; }
.jpgpng-progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #536dfe, #7b8cff); border-radius: inherit; transition: width .2s ease; }
.jpgpng-success-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 15px; color: #fff; background: var(--jp-green); border-radius: 50%; font-size: 27px; font-weight: 800; box-shadow: 0 7px 18px rgba(19, 155, 112, .2); }
.jpgpng-result-area h2 { font-size: 21px; }
.jpgpng-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 570px); margin: 20px auto; }
.jpgpng-stats > div { padding: 15px 8px; background: #f7f9fc; border: 1px solid #edf0f5; border-radius: 13px; }
.jpgpng-stats span { display: block; color: #7a8597; font-size: 11px; }
.jpgpng-stats strong { display: block; margin-top: 5px; color: #2d3c55; font-size: 15px; overflow-wrap: anywhere; }
.jpgpng-error-summary { width: min(100%, 570px); margin: 0 auto 14px; padding: 11px; color: #9a4d10; background: #fff8e8; border-radius: 10px; font-size: 12px; text-align: left; }
.jpgpng-result-actions { justify-content: center; }
.jpgpng-privacy-note { display: flex; align-items: flex-start; gap: 11px; margin: 16px 3px 0; padding: 15px 17px; background: #f1fbf7; border: 1px solid #d5f1e5; border-radius: 14px; }
.jpgpng-privacy-note svg { margin-top: 2px; color: #14815f; }
.jpgpng-privacy-note p { margin: 0; color: #527367; font-size: 12px; line-height: 1.6; }
.jpgpng-privacy-note strong { color: #23634e; }
.jpgpng-article { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--jp-line); }
.jpgpng-article h2 { margin: 0 0 15px; color: var(--jp-ink); font-size: clamp(21px, 3vw, 27px); font-weight: 800; line-height: 1.35; }
.jpgpng-article-content { color: #485467; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.jpgpng-article-content img { max-width: 100%; height: auto; }
.jpgpng-app [hidden] { display: none !important; }
@media (max-width: 560px) {
  .jpgpng-app { width: min(100% - 22px, 940px); margin-top: 25px; }
  .jpgpng-hero > p { font-size: 13px; }
  .jpgpng-features { gap: 9px 12px; }
  .jpgpng-features span { font-size: 11px; }
  .jpgpng-panel { padding: 12px; border-radius: 18px; }
  .jpgpng-drop-zone { padding: 25px 12px; border-radius: 14px; }
  .jpgpng-drop-zone h2 { font-size: 17px; }
  .jpgpng-btn { min-height: 42px; padding: 10px 12px; font-size: 12px; }
  .jpgpng-section-head { align-items: flex-start; }
  .jpgpng-total-size { text-align: right; }
  .jpgpng-file-row { gap: 9px; padding: 10px; }
  .jpgpng-file-icon { width: 34px; height: 34px; }
  .jpgpng-stats { gap: 6px; }
  .jpgpng-stats > div { padding: 12px 5px; }
  .jpgpng-stats span { font-size: 10px; }
  .jpgpng-stats strong { font-size: 12px; }
  .jpgpng-action-row .jpgpng-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jpgpng-app *, .jpgpng-app *::before, .jpgpng-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Card Pembungkus Artikel SEO */
.jpgpng-article-card {
  margin-top: 38px;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--jp-line);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(31, 48, 84, 0.05);
}

/* Penyesuaian jarak di dalam card */
.jpgpng-article-card .pngwebp-article {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.jpgpng-article h2 {
  margin: 0 0 16px;
  color: var(--jp-ink);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.jpgpng-article-content {
  color: #485467;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.jpgpng-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

/* Khusus Card Artikel SEO - PNG ke WebP */
.jpgpng-article-card {
  margin-top: 32px; /* Ubah jarak sesuai selera (misal 28px atau 32px) */
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--jp-line);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(31, 48, 84, 0.05);
}