/* Utilix — PDF Split (pdfs-) */
:root { --pdfs-accent: #e11d48; --pdfs-accent-light: #fff1f2; --pdfs-accent-dark: #be123c; }

.pdfs-hero { padding-bottom: 40px; }
.pdfs-hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.pdfs-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.pdfs-hero__split { display: flex; align-items: center; gap: 12px; justify-content: center; }
.pdfs-hero__source { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 14px 8px; font-size: .6875rem; font-weight: 700; color: #64748b; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.pdfs-hero__source i { width: 28px; height: 28px; color: #ef4444; }
.pdfs-hero__scissors { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; background: var(--pdfs-accent); border-radius: 50%; }
.pdfs-hero__parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pdfs-hero__part { display: flex; align-items: center; justify-content: center; width: 40px; height: 48px; color: #ef4444; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.06); }

.pdfs-main { padding: 0 0 48px; }
.pdfs-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.pdfs-workspace { display: flex; flex-direction: column; gap: 20px; }

.pdfs-step-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); }
.pdfs-step-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pdfs-step-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.pdfs-step-card__num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: .875rem; font-weight: 800; color: #fff; background: var(--pdfs-accent); border-radius: 10px; flex-shrink: 0; }

.pdfs-dropzone { border: 2px dashed #fecdd3; border-radius: 16px; background: #fffbfb; cursor: pointer; transition: border-color .2s, background .2s; }
.pdfs-dropzone.is-dragover, .pdfs-dropzone:hover { border-color: var(--pdfs-accent); background: #fff1f2; }
.pdfs-dropzone__inner { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; text-align: center; }
.pdfs-dropzone__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; color: var(--pdfs-accent); background: var(--pdfs-accent-light); border-radius: 16px; }
.pdfs-dropzone__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.pdfs-dropzone__or { font-size: .8125rem; color: #94a3b8; margin-bottom: 16px; }
.pdfs-dropzone__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.pdfs-dropzone__hint { margin: 0; font-size: .75rem; color: #94a3b8; }
.pdfs-upload-preview { display: flex; align-items: center; gap: 16px; padding: 16px; }
.pdfs-upload-preview__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #ef4444; background: #fef2f2; border-radius: 12px; flex-shrink: 0; }
.pdfs-upload-preview__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdfs-upload-preview__meta strong { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfs-upload-preview__meta span { font-size: .75rem; color: #94a3b8; }

.pdfs-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pdfs-mode-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; border: 2px solid var(--border); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pdfs-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.pdfs-mode-card__icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--pdfs-accent); background: var(--pdfs-accent-light); border-radius: 12px; }
.pdfs-mode-card strong { font-size: .875rem; font-weight: 700; color: var(--heading); }
.pdfs-mode-card p { margin: 0; font-size: .75rem; color: #94a3b8; line-height: 1.5; }
.pdfs-mode-card__radio { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border: 2px solid #cbd5e1; border-radius: 50%; box-sizing: border-box; }
.pdfs-mode-card.is-selected, .pdfs-mode-card:has(input:checked) { border-color: var(--pdfs-accent); box-shadow: 0 0 0 3px rgba(225,29,72,.12); }
.pdfs-mode-card.is-selected .pdfs-mode-card__radio, .pdfs-mode-card:has(input:checked) .pdfs-mode-card__radio { border-color: var(--pdfs-accent); }
.pdfs-mode-card.is-selected .pdfs-mode-card__radio::after, .pdfs-mode-card:has(input:checked) .pdfs-mode-card__radio::after { content: ''; position: absolute; inset: 3px; background: var(--pdfs-accent); border-radius: 50%; }

.pdfs-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pdfs-field > label:not(.pdfs-radio),
.pdfs-field > .pdfs-field__label { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; }
.pdfs-field--full { grid-column: 1 / -1; }
.pdfs-field__hint { margin: 8px 0 0; font-size: .75rem; color: #94a3b8; }
.pdfs-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: .875rem; background: #fff; }
.pdfs-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: .875rem; }
.pdfs-radio-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.pdfs-radio { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 400; cursor: pointer; margin: 0; }
.pdfs-radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.pdfs-radio__mark {
    display: inline-block;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background: #fff;
}
.pdfs-radio input:checked + .pdfs-radio__mark { border-color: var(--pdfs-accent); }
.pdfs-radio input:checked + .pdfs-radio__mark::after { content: ''; position: absolute; inset: 3px; background: var(--pdfs-accent); border-radius: 50%; }
.pdfs-radio input:focus-visible + .pdfs-radio__mark { box-shadow: 0 0 0 3px rgba(225, 29, 72, .2); }

.pdfs-info-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; }
.pdfs-info-box__text { display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 0; }
.pdfs-info-box__text i { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.pdfs-info-box__text p { margin: 0; font-size: .8125rem; color: #1e40af; line-height: 1.5; }
.pdfs-info-box__badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; font-size: .875rem; font-weight: 800; color: #2563eb; background: #fff; border-radius: 12px; border: 1px solid #bfdbfe; flex-shrink: 0; }

.pdfs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font-size: .875rem; font-weight: 600; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background .15s, opacity .15s; }
.pdfs-btn--primary { color: #fff; background: var(--pdfs-accent); }
.pdfs-btn--primary:hover { background: var(--pdfs-accent-dark); }
.pdfs-btn--outline { color: #475569; background: #fff; border-color: var(--border); }
.pdfs-btn--outline:hover { border-color: var(--pdfs-accent); color: var(--pdfs-accent); }
.pdfs-btn--ghost { color: #475569; background: transparent; border-color: transparent; }
.pdfs-btn--danger { color: var(--pdfs-accent); }
.pdfs-btn--danger:hover { background: #fff1f2; }
.pdfs-btn--sm { padding: 8px 14px; font-size: .8125rem; }
.pdfs-btn--split { width: 100%; padding: 16px 24px; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--pdfs-accent), #f43f5e); border: none; border-radius: 14px; box-shadow: 0 8px 24px rgba(225,29,72,.3); }
.pdfs-btn--split:disabled { opacity: .5; cursor: not-allowed; }
.pdfs-security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .8125rem; color: #94a3b8; text-align: center; }

.pdfs-progress { margin-top: 16px; padding: 12px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--border); }
.pdfs-progress__bar { height: 6px; width: 0; background: linear-gradient(90deg, var(--pdfs-accent), #f43f5e); border-radius: 100px; transition: width .3s; }
.pdfs-progress__text { display: block; margin-top: 8px; font-size: .75rem; font-weight: 600; color: #64748b; text-align: center; }

.pdfs-result-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.pdfs-result-head__left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pdfs-result-head__left h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.pdfs-result-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pdfs-result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pdfs-result-item { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 14px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; }
.pdfs-result-item__icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: #ef4444; background: #fef2f2; border-radius: 10px; }
.pdfs-result-item__meta { min-width: 0; }
.pdfs-result-item__name { display: block; font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfs-result-item__sub { font-size: .75rem; color: #94a3b8; }
.pdfs-result-item__size { font-size: .8125rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.pdfs-result-item__dl, .pdfs-result-item__rm { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #64748b; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: color .15s, background .15s; }
.pdfs-result-item__dl:hover { color: var(--pdfs-accent); border-color: var(--pdfs-accent); }
.pdfs-result-item__rm:hover { color: #ef4444; background: #fef2f2; border-color: #fecdd3; }

.pdfs-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pdfs-side-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.pdfs-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9375rem; font-weight: 700; }
.pdfs-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pdfs-how-list li { display: flex; gap: 12px; font-size: .8125rem; color: #475569; line-height: 1.5; }
.pdfs-how-list li span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--pdfs-accent); border-radius: 50%; flex-shrink: 0; }
.pdfs-why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pdfs-why-list li { display: flex; gap: 8px; font-size: .8125rem; color: #475569; line-height: 1.5; }
.pdfs-why-list li i { color: var(--pdfs-accent); flex-shrink: 0; margin-top: 2px; }
.pdfs-feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pdfs-feat-list li { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: #475569; }
.pdfs-feat-icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.pdfs-feat-icon--blue { background: #dbeafe; color: #2563eb; }
.pdfs-feat-icon--purple { background: #ede9fe; color: #7c3aed; }
.pdfs-feat-icon--green { background: #dcfce7; color: #16a34a; }
.pdfs-feat-icon--orange { background: #ffedd5; color: #ea580c; }
.pdfs-feat-icon--red { background: #fee2e2; color: #ef4444; }
.pdfs-tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pdfs-tools-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .8125rem; color: #475569; text-decoration: none; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.pdfs-tools-link:hover { color: var(--pdfs-accent); background: var(--pdfs-accent-light); }
.pdfs-tools-link--soon { opacity: .7; cursor: default; }
.pdfs-tools-link--soon em { margin-left: auto; font-size: .625rem; font-weight: 700; font-style: normal; color: #94a3b8; text-transform: uppercase; }
.pdfs-tools-link__icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--pdfs-accent); background: #fff; border-radius: 8px; flex-shrink: 0; }

.pdfs-features { padding: 48px 0; background: #f8fafc; }
.pdfs-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pdfs-feature-card { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.pdfs-feature-card__icon { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 14px; }
.pdfs-feature-card__icon--red { background: #fee2e2; color: #ef4444; }
.pdfs-feature-card__icon--green { background: #dcfce7; color: #16a34a; }
.pdfs-feature-card__icon--blue { background: #dbeafe; color: #2563eb; }
.pdfs-feature-card__icon--purple { background: #ede9fe; color: #7c3aed; }

.pdfs-steps-section { padding: 56px 0; }
.pdfs-section-head--center { text-align: center; margin-bottom: 40px; }
.pdfs-section-eyebrow { display: inline-flex; gap: 6px; margin-bottom: 12px; padding: 6px 14px; font-size: .75rem; font-weight: 700; color: var(--pdfs-accent); background: var(--pdfs-accent-light); border-radius: 100px; }
.pdfs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.pdfs-step { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; text-align: center; }
.pdfs-step__num { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--pdfs-accent); border-radius: 50%; }
.pdfs-step__icon { display: flex; width: 48px; height: 48px; margin: 8px auto 12px; align-items: center; justify-content: center; color: var(--pdfs-accent); background: var(--pdfs-accent-light); border-radius: 14px; }
.pdfs-faq { padding: 56px 0; }

.pdfs-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); padding: 12px 24px; font-size: .875rem; font-weight: 600; color: #fff; background: #1e293b; border-radius: 12px; opacity: 0; transition: transform .3s, opacity .3s; z-index: 9999; pointer-events: none; max-width: 90vw; text-align: center; }
.pdfs-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }

.pdfs-animate-in { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.pdfs-animate-in.is-visible { opacity: 1; transform: translateY(0); }
.pdfs-animate-in--delay { transition-delay: .1s; }
.pdfs-animate-in--delay2 { transition-delay: .2s; }
.pdfs-animate-in--delay3 { transition-delay: .3s; }

@media (max-width: 1024px) {
    .pdfs-hero__grid, .pdfs-layout { grid-template-columns: 1fr; }
    .pdfs-hero__visual { display: none; }
    .pdfs-mode-grid { grid-template-columns: 1fr; }
    .pdfs-settings-grid { grid-template-columns: 1fr; }
    .pdfs-features__grid, .pdfs-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pdfs-features__grid, .pdfs-steps { grid-template-columns: 1fr; }
    .pdfs-result-item { grid-template-columns: auto 1fr auto; }
    .pdfs-result-item__size { display: none; }
}

[data-theme="dark"] .pdfs-step-card,
[data-theme="dark"] .pdfs-side-card,
[data-theme="dark"] .pdfs-feature-card,
[data-theme="dark"] .pdfs-step,
[data-theme="dark"] .pdfs-mode-card,
[data-theme="dark"] .pdfs-result-item { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .pdfs-dropzone { background: #1a2332; border-color: #4c1d2e; }
[data-theme="dark"] .pdfs-dropzone.is-dragover,
[data-theme="dark"] .pdfs-dropzone:hover { background: #2a1520; border-color: var(--pdfs-accent); }
[data-theme="dark"] .pdfs-input,
[data-theme="dark"] .pdfs-select,
[data-theme="dark"] .pdfs-btn--outline,
[data-theme="dark"] .pdfs-result-item__dl { background: #1a2332; border-color: var(--border); color: #e2e8f0; }
[data-theme="dark"] .pdfs-info-box { background: rgba(37,99,235,.12); border-color: rgba(59,130,246,.3); }
[data-theme="dark"] .pdfs-info-box__text p { color: #93c5fd; }
[data-theme="dark"] .pdfs-info-box__badge { background: #1a2332; border-color: rgba(59,130,246,.3); color: #93c5fd; }
[data-theme="dark"] .pdfs-progress,
[data-theme="dark"] .pdfs-tools-link,
[data-theme="dark"] .pdfs-result-item { background: #1a2332; }
[data-theme="dark"] .pdfs-features { background: var(--bg); }
[data-theme="dark"] .pdfs-upload-preview__icon,
[data-theme="dark"] .pdfs-result-item__icon { background: rgba(239,68,68,.12); }
[data-theme="dark"] .pdfs-hero__source,
[data-theme="dark"] .pdfs-hero__part { background: var(--bg-section); }
[data-theme="dark"] .pdfs-toast { background: #334155; }
[data-theme="dark"] .pdfs-mode-card__icon { background: rgba(225,29,72,.15); }
[data-theme="dark"] .pdfs-radio__mark { background: #1a2332; border-color: #475569; }
[data-theme="dark"] .pdfs-radio input:checked + .pdfs-radio__mark { border-color: var(--pdfs-accent); }
