.compress-pdf-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(98, 54, 255, 0.06), transparent 28%),
        radial-gradient(circle at 100% 18%, rgba(193, 255, 82, 0.1), transparent 24%),
        #fcfbff;
}

.compress-pdf-page .page-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(98, 54, 255, 0.12), transparent 34%),
        radial-gradient(circle at 8% 88%, rgba(193, 255, 82, 0.14), transparent 30%),
        transparent;
}

.compress-pdf-page .page-hero p {
    max-width: 54ch;
}

.compress-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1.2rem 2rem;
    align-items: center;
}

.compress-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compress-hero-visual img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
}

.compress-pdf-page .section-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--purple);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.compress-pdf-page .tool-copy {
    margin-top: 1.4rem;
}

.compress-pdf-page .tool-copy p {
    color: var(--muted);
    max-width: none;
}

.compress-pdf-page .tool-copy p + p {
    margin-top: 0.85rem;
}

.compress-related-grid {
    margin-top: 1.4rem;
}

.compress-pdf-page .related-tools-block .section-head {
    text-align: center;
}

.compress-pdf-page .related-tools-block .section-head h2::after {
    margin-left: auto;
    margin-right: auto;
}

.compress-pdf-page .cta {
    padding: 0 0 3.2rem;
    background: transparent;
}

.compress-tool {
    padding-bottom: 1rem;
}

.compress-tool .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
}

.compress-upload {
    padding: 0 0 2.4rem;
}

.compress-tool .dropzone {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    border: 2px dashed #d9cff8;
    border-radius: 26px;
    padding: 3rem 1.5rem 2.2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.compress-tool .dropzone.dragover,
.compress-tool .dropzone:focus-within {
    border-color: var(--purple);
    box-shadow: var(--shadow-hover);
    transform: scale(1.01);
}

.compress-tool .dz-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f7f3ff, #ece4ff);
    color: var(--purple);
    font-size: 1.7rem;
    box-shadow: 0 8px 16px rgba(98, 54, 255, 0.1);
}

.compress-tool .dropzone h2 {
    color: var(--purple-navy);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.compress-tool .dropzone p {
    color: var(--muted);
    margin-bottom: 1.15rem;
}

.compress-tool .dz-hint {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.compress-tool .file-input-hidden {
    display: none;
}

.compress-tool .privacy-note {
    max-width: 680px;
    margin: 1.1rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.compress-tool .privacy-note i {
    color: #1f9d55;
}

.compress-tool .trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.6rem;
    margin-top: 1.5rem;
    list-style: none;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.compress-tool .trust-strip li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.compress-tool .trust-strip i {
    color: var(--purple);
}

.compress-tool .inline-error {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: #fdeeee;
    border: 1px solid #f5c6c7;
    color: #e5484d;
    font-size: 0.86rem;
}

.compress-tool .inline-error.active {
    display: flex;
}

.compress-tool .workspace {
    display: none;
    padding: 0 0 2.6rem;
}

.compress-tool .workspace.active {
    display: block;
}

.compress-tool .file-summary-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid rgba(98, 54, 255, 0.1);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.15rem;
}

.compress-tool .file-thumb-lg {
    width: 64px;
    height: 82px;
    border-radius: 10px;
    background: var(--purple-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.compress-tool .file-thumb-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compress-tool .file-thumb-lg i {
    color: var(--purple);
    font-size: 1.6rem;
}

.compress-tool .file-summary-meta {
    flex: 1;
    min-width: 140px;
}

.compress-tool .file-summary-meta .fname {
    font-weight: 700;
    font-size: 1rem;
    color: var(--purple-navy);
    word-break: break-word;
}

.compress-tool .file-summary-meta .fsub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.compress-tool .file-summary-card .btn {
    margin-left: auto;
}

.compress-tool .ws-grid {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 1.15rem;
    align-items: start;
}

.compress-tool .panel {
    background: #fff;
    border: 1px solid rgba(98, 54, 255, 0.1);
    border-radius: 22px;
    padding: 1.25rem 1.2rem;
    box-shadow: var(--shadow);
}

.compress-tool .panel h3 {
    color: var(--purple-navy);
    font-size: 1rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compress-tool .panel h3 i {
    color: var(--purple);
}

.compress-tool .mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.compress-tool .mode-card {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
    font-family: inherit;
    color: inherit;
}

.compress-tool .mode-card:hover {
    border-color: #d8d2f5;
}

.compress-tool .mode-card.selected {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.compress-tool .mode-card .m-icon {
    font-size: 1.3rem;
    color: var(--purple);
    margin-bottom: 0.35rem;
}

.compress-tool .mode-card .m-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--purple-navy);
}

.compress-tool .mode-card .m-sub {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.compress-tool .custom-settings {
    display: none;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

.compress-tool .custom-settings.active {
    display: block;
}

.compress-tool .field {
    margin-bottom: 1rem;
}

.compress-tool .field label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.compress-tool .field label span.val {
    color: var(--purple);
    font-weight: 700;
}

.compress-tool .field input[type="range"] {
    width: 100%;
    accent-color: var(--purple);
}

.compress-tool .field select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    background: #fff;
    font-family: inherit;
    color: var(--text);
}

.compress-tool .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.compress-tool .checkbox-row input {
    accent-color: var(--purple);
    width: 16px;
    height: 16px;
}

.compress-tool .checkbox-row label {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.compress-tool .quality-note {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff8e8;
    border: 1px solid #f5e2a8;
    color: #8a6d1e;
    font-size: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.compress-tool .quality-note.visible {
    display: flex;
}

.compress-tool .compress-btn-wrap {
    margin-top: 1.1rem;
}

.compress-tool .compress-btn-wrap .btn {
    width: 100%;
    justify-content: center;
}

.compress-tool .detail-list {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.compress-tool .detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.compress-tool .detail-list dt {
    color: var(--muted);
    font-weight: 500;
}

.compress-tool .detail-list dd {
    margin: 0;
    font-weight: 700;
    color: var(--purple-navy);
    text-align: right;
}

.compress-tool .detail-list #estimateDisp {
    color: var(--purple);
}

.compress-tool .result-section {
    display: none;
    padding: 0 0 2.8rem;
    text-align: center;
}

.compress-tool .result-section.active {
    display: block;
}

.compress-tool .result-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e9fbef;
    color: #1f9d55;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.compress-tool .result-header h2 {
    color: var(--purple-navy);
    margin-bottom: 1.25rem;
}

.compress-tool .compare-card {
    max-width: 460px;
    margin: 0 auto 1.5rem;
    background: #fff;
    border: 1px solid rgba(98, 54, 255, 0.1);
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    box-shadow: var(--shadow);
    text-align: left;
}

.compress-tool .compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
}

.compress-tool .compare-row:last-child {
    border-bottom: none;
}

.compress-tool .compare-row .lbl {
    font-size: 0.85rem;
    color: var(--muted);
}

.compress-tool .compare-row .v-old {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
}

.compress-tool .compare-row .v-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple);
}

.compress-tool .compare-row .v-pages {
    font-weight: 600;
    color: var(--purple-navy);
}

.compress-tool .reduction-badge {
    background: #e9fbef;
    color: #1f9d55;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.compress-tool .result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.compress-pdf-page .tool-about .section-head {
    text-align: center;
}

.compress-pdf-page .tool-about .section-head h2::after {
    margin-left: auto;
    margin-right: auto;
}

.compress-pdf-page .tool-about-story {
    position: relative;
    overflow: hidden;
    margin-top: 1.6rem;
    padding: 2rem 2rem 1.7rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 96% 0%, rgba(193, 255, 82, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    border: 1px solid rgba(98, 54, 255, 0.12);
    box-shadow: 0 16px 36px rgba(43, 27, 98, 0.07);
}

.compress-pdf-page .tool-about-story::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 5px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, var(--lime), #8fd400);
}

.compress-pdf-page .tool-about-cols {
    display: grid;
    gap: 1.1rem;
}

.compress-pdf-page .tool-about-cols p {
    max-width: none;
    margin: 0;
    color: #4a4460;
    font-size: 1.02rem;
    line-height: 1.8;
}

.compress-pdf-page .tool-about-highlight {
    max-width: none;
    margin: 1.35rem 0 0;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(98, 54, 255, 0.08), rgba(193, 255, 82, 0.12));
    border: 1px solid rgba(98, 54, 255, 0.12);
    color: var(--purple-navy);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.75;
}

.compress-pdf-page .value-icon i {
    font-size: 1.15rem;
    color: var(--purple);
}

.compress-tool .progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 27, 98, 0.55);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.compress-tool .progress-overlay.active {
    display: flex;
}

.compress-tool .progress-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem 1.7rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.compress-tool .progress-card .spin {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid var(--purple-soft);
    border-top-color: var(--purple);
    animation: compressSpin 0.9s linear infinite;
    margin: 0 auto 1rem;
}

.compress-tool .progress-card h4 {
    color: var(--purple-navy);
    margin: 0;
}

.compress-tool .progress-bar-track {
    height: 8px;
    background: var(--purple-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.compress-tool .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), #8b5cf6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 999px;
}

.compress-tool .progress-status {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.65rem;
    min-height: 1.2em;
}

.compress-tool .progress-card .btn {
    margin-top: 1rem;
}

.compress-tool #toastWrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 320;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.compress-tool .toast-msg {
    background: var(--purple-navy);
    color: #fff;
    padding: 0.75rem 1.05rem;
    border-radius: 12px;
    font-size: 0.86rem;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 320px;
}

.compress-tool .toast-msg.error {
    background: #e5484d;
}

.compress-tool .toast-msg.success {
    background: #1f9d55;
}

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

@media (max-width: 920px) {
    .compress-tool .ws-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .compress-hero-inner {
        grid-template-columns: 1fr;
    }

    .compress-pdf-page .page-hero p {
        max-width: 72ch;
    }

    .compress-hero-visual img {
        max-width: 420px;
        margin: 0 auto;
    }

    .compress-pdf-page .tool-about-story {
        padding: 1.4rem 1.15rem 1.25rem;
    }
}
