/* PDF Compressor */
.pdfc-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 24px; box-shadow: var(--shadow-sm);
}

.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 46px 20px; border: 2px dashed #d6cfbd; border-radius: 14px; cursor: pointer;
    background: #fffdf7; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--link-color); background: #f3f7f2; }
.dropzone strong { font-family: var(--font-head); font-size: 18px; color: var(--green-dark); }
.dz-icon {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green-dark); color: var(--gold); font-size: 26px; margin-bottom: 8px;
}
.pdfc-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; border: 1px solid #f2b8b1; font-size: 15px; }

.file-row { display: flex; align-items: center; gap: 12px; }
.file-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #fdecea; color: #c0392b; font-size: 20px; flex-shrink: 0; }
.file-meta { display: flex; flex-direction: column; min-width: 0; }
.file-meta strong { font-family: var(--font-head); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 20px 0 10px; }
.progress-bar { height: 100%; width: 0; background: var(--green-dark); border-radius: 999px; transition: width .2s; }
.progress-bar.busy {
    background: repeating-linear-gradient(45deg, var(--green-dark) 0 14px, var(--link-color) 14px 28px);
    background-size: 40px 40px; animation: pdfc-stripes 1s linear infinite;
}
@keyframes pdfc-stripes { to { background-position: 40px 0; } }

.pdfc-h2 { font-size: 18px; margin: 22px 0 12px; }
.options { display: grid; gap: 10px; }
.option {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.option.recommended { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: #fffaea; }
.option.not-smaller { opacity: .65; }
.opt-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--green-dark); }
.opt-note { font-size: 13px; color: var(--muted); }
.opt-size { text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.opt-size strong { font-family: var(--font-head); font-size: 17px; }
.opt-saved { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--link-color); }
.not-smaller .opt-saved { color: var(--muted); font-weight: 400; }
.opt-dl { white-space: nowrap; }

.pdfc-note { margin: 12px 0 0; }
.pdfc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pdfc-foot .muted i { color: var(--link-color); margin-right: 4px; }

.pdfc-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.pdfc-help div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 12px; background: var(--bg-color); font-size: 14px; color: var(--muted); }
.pdfc-help i { color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.pdfc-help strong { font-family: var(--font-head); color: var(--heading-color); }
.pdfc-privacy { margin-top: 16px; text-align: center; }
.pdfc-privacy i { color: var(--link-color); margin-right: 4px; }

@media (max-width: 600px) {
    .pdfc-card { padding: 16px; border-radius: 14px; }
    .dropzone { padding: 34px 16px; }
    .option { grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 14px; }
    .opt-dl { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }
    .opt-dl .dl-txt { display: none; }
    .opt-title { font-size: 15px; }
    .pdfc-help { grid-template-columns: 1fr; }
    .pdfc-foot { flex-direction: column; align-items: stretch; text-align: center; }
    .pdfc-foot .btn { justify-content: center; }
}
