/* Semua selector dibatasi ke .pdfphoto agar tidak mengubah alat lain. */
.pdfphoto {
    --pdfp-primary: #315cf5;
    --pdfp-primary-dark: #2346d8;
    --pdfp-ink: #17233c;
    --pdfp-muted: #68758c;
    --pdfp-line: #e3e9f3;
    --pdfp-soft: #f5f8ff;
    --pdfp-success: #14804a;
    width: min(100% - 32px, 1000px);
    margin: 32px auto 56px;
    color: var(--pdfp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    box-sizing: border-box;
}
.pdfphoto *, .pdfphoto *::before, .pdfphoto *::after { box-sizing: border-box; }
.pdfphoto [hidden] { display: none !important; }

.pdfphoto__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at 88% 12%, rgba(135, 166, 255, .45), transparent 30%), linear-gradient(135deg, #14264c 0%, #254dd5 58%, #4b77ff 100%);
    box-shadow: 0 18px 42px rgba(38, 77, 190, .18);
}
.pdfphoto__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.pdfphoto__hero .pdfphoto__eyebrow { color: #dbe5ff; }

/* Judul h1 disesuaikan ukurannya agar serasi & warnanya putih bersih */
.pdfphoto__hero h1 { 
    margin: 10px 0 8px; 
    color: #ffffff !important; 
    font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important; 
    line-height: 1.25; 
    font-weight: 800; 
    letter-spacing: -.025em; 
}

.pdfphoto__hero > p { max-width: 680px; margin: 0; color: #e6edff; font-size: clamp(.88rem, 1.8vw, 1rem); }
.pdfphoto__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pdfphoto__trust span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .78rem; }

.pdfphoto__workspace { margin-top: 22px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--pdfp-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(27, 44, 82, .06); }
.pdfphoto__upload { display: flex; min-height: 280px; padding: 28px 18px; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed #c6d3ee; border-radius: 20px; background: linear-gradient(180deg, #fbfcff, #f5f8ff); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; outline: none; }
.pdfphoto__upload:hover, .pdfphoto__upload:focus-visible, .pdfphoto__upload.is-dragging { border-color: var(--pdfp-primary); background: #eef3ff; }
.pdfphoto__upload.is-dragging { transform: scale(.995); }
.pdfphoto__upload-icon { display: grid; width: 64px; height: 64px; margin-bottom: 14px; place-items: center; border-radius: 20px; color: var(--pdfp-primary); background: #e7edff; }
.pdfphoto__upload-icon svg { width: 36px; height: 36px; }
.pdfphoto__upload h2 { margin: 0 0 7px; font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 800; letter-spacing: -.02em; }
.pdfphoto__upload p { margin: 0 0 18px; color: var(--pdfp-muted); font-size: .88rem; }
.pdfphoto__file-note { margin-top: 13px; color: var(--pdfp-muted); font-size: .78rem; }

.pdfphoto__button { display: inline-flex; min-height: 42px; padding: 10px 16px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-size: .88rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.pdfphoto__button:hover { transform: translateY(-1px); }
.pdfphoto__button:focus-visible { outline: 3px solid rgba(49,92,245,.25); outline-offset: 2px; }
.pdfphoto__button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pdfphoto__button--primary { color: #fff; background: var(--pdfp-primary); box-shadow: 0 5px 13px rgba(49,92,245,.2); }
.pdfphoto__button--primary:hover { background: var(--pdfp-primary-dark); }
.pdfphoto__button--secondary { color: #30415f; background: #f0f3f9; border-color: #e2e7f0; }
.pdfphoto__button--quiet { color: #42516b; background: #fff; border-color: var(--pdfp-line); }

.pdfphoto__settings { margin-top: 20px; padding: 20px; border: 1px solid var(--pdfp-line); border-radius: 18px; background: #fcfdff; }
.pdfphoto__file-summary { display: flex; align-items: center; gap: 12px; }
.pdfphoto__file-badge { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 13px; color: #d62d45; background: #fff0f2; font-size: .78rem; font-weight: 900; }
.pdfphoto__file-meta { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.pdfphoto__file-meta strong { overflow-wrap: anywhere; font-size: .94rem; }
.pdfphoto__file-meta span { color: var(--pdfp-muted); font-size: .8rem; }

.pdfphoto__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.pdfphoto__options label { display: flex; flex-direction: column; gap: 7px; color: #35425a; font-size: .82rem; font-weight: 750; }
.pdfphoto__options select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d9e1ef; border-radius: 10px; color: var(--pdfp-ink); background: #fff; font: inherit; }
.pdfphoto__convert { width: 100%; min-height: 48px; }
.pdfphoto__small-note { margin: 12px 0 0; color: var(--pdfp-muted); font-size: .78rem; text-align: center; }

.pdfphoto__progress { padding: 24px 8px; text-align: center; }
.pdfphoto__progress-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; text-align: left; font-size: .88rem; }
.pdfphoto__progress-top span { color: var(--pdfp-primary); font-weight: 800; }
.pdfphoto__progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e9eef8; }
.pdfphoto__progress-track > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315cf5, #6d8cff); transition: width .2s ease; }
.pdfphoto__progress p, .pdfphoto__download-status p { margin: 10px 0 0; color: var(--pdfp-muted); font-size: .82rem; }

.pdfphoto__results { margin-top: 12px; }
.pdfphoto__results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.pdfphoto__results-heading .pdfphoto__eyebrow { color: var(--pdfp-primary); }
.pdfphoto__results-heading h2 { margin: 5px 0 3px; font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; }
.pdfphoto__results-heading p { margin: 0; color: var(--pdfp-muted); font-size: .86rem; }
.pdfphoto__download-status { margin: 0 0 20px; padding: 16px; border: 1px solid #dbe5ff; border-radius: 14px; background: #f5f8ff; }
.pdfphoto__download-status .pdfphoto__button { margin-top: 12px; }

.pdfphoto__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 16px; }
.pdfphoto__card { display: flex; min-width: 0; flex-direction: column; padding: 12px; border: 1px solid var(--pdfp-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(25, 42, 78, .04); }
.pdfphoto__preview { display: grid; min-height: 170px; overflow: hidden; place-items: center; border: 1px solid #edf0f6; border-radius: 10px; background: #f7f9fc; }
.pdfphoto__preview img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; }
.pdfphoto__card-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 10px; }
.pdfphoto__card-info strong { font-size: .85rem; }
.pdfphoto__card-info span { color: var(--pdfp-muted); font-size: .72rem; }
.pdfphoto__card .pdfphoto__button { width: 100%; min-height: 38px; padding: 8px 10px; font-size: .8rem; }
.pdfphoto__bottom-actions { display: flex; justify-content: center; margin-top: 22px; }

.pdfphoto__article { margin-top: 34px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--pdfp-line); border-radius: 20px; background: #fff; }
.pdfphoto__article h2 { margin: 0 0 14px; color: var(--pdfp-ink); font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.3; font-weight: 800; }
.pdfphoto__article-content { color: #43516a; font-size: .94rem; line-height: 1.85; overflow-wrap: anywhere; }
.pdfphoto__article-content p { margin: 0 0 14px; }
.pdfphoto__article-content h3, .pdfphoto__article-content h4 { margin: 22px 0 8px; color: var(--pdfp-ink); }
.pdfphoto__article-content ul, .pdfphoto__article-content ol { padding-left: 22px; margin: 0 0 16px; }

@media (max-width: 640px) {
    .pdfphoto { 
        width: calc(100% - 24px) !important; 
        margin-top: 18px; 
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .pdfphoto__hero { border-radius: 20px; padding: 22px 18px; }
    .pdfphoto__trust { gap: 7px; }
    .pdfphoto__trust span { font-size: .7rem; }
    .pdfphoto__workspace { padding: 12px; border-radius: 18px; }
    .pdfphoto__upload { min-height: 240px; padding: 22px 12px; }
    .pdfphoto__settings { padding: 14px; }
    .pdfphoto__file-summary { flex-wrap: wrap; }
    .pdfphoto__file-summary .pdfphoto__button { margin-left: 58px; }
    .pdfphoto__options { grid-template-columns: 1fr; gap: 12px; }
    .pdfphoto__results-heading { align-items: stretch; flex-direction: column; }
    .pdfphoto__results-heading > .pdfphoto__button { width: 100%; }
    .pdfphoto__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pdfphoto__card { padding: 8px; border-radius: 12px; }
    .pdfphoto__preview { min-height: 120px; }
    .pdfphoto__card-info { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (max-width: 370px) {
    .pdfphoto__grid { grid-template-columns: 1fr; }
    .pdfphoto__file-summary .pdfphoto__button { margin-left: 0; }
}