/* Utilix — PDF Protect (pdfp-) */
:root { --pdfp-accent: #e11d48; --pdfp-accent-light: #fff1f2; --pdfp-accent-dark: #be123c; }

.pdfp-hero { padding-bottom: 40px; }
.pdfp-hero__grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.pdfp-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.pdfp-hero__highlights { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pdfp-hero__highlight { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: #16a34a; }
.pdfp-hero__highlight i { width: 16px; height: 16px; flex-shrink: 0; }
.pdfp-hero__visual { display: flex; align-items: center; justify-content: center; }
.pdfp-hero__shield { position: relative; display: flex; align-items: center; justify-content: center; width: 140px; height: 160px; }
.pdfp-hero__shield-bg { position: absolute; inset: 0; color: #fecdd3; }
.pdfp-hero__shield-bg i { width: 100%; height: 100%; }
.pdfp-hero__shield-lock { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: #fff; background: var(--pdfp-accent); border-radius: 50%; box-shadow: 0 8px 24px rgba(225,29,72,.35); }
.pdfp-hero__shield-lock i { width: 28px; height: 28px; }
.pdfp-hero__doc { position: absolute; right: -20px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 48px; height: 60px; color: #ef4444; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(15,23,42,.1); }
.pdfp-hero__doc i { width: 24px; height: 24px; }

.pdfp-main { padding: 0 0 48px; }
.pdfp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.pdfp-workspace { display: flex; flex-direction: column; gap: 20px; }

.pdfp-step-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); }
.pdfp-step-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pdfp-step-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.pdfp-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(--pdfp-accent); border-radius: 10px; flex-shrink: 0; }

.pdfp-dropzone { border: 2px dashed #fecdd3; border-radius: 16px; background: #fffbfb; cursor: pointer; transition: border-color .2s, background .2s; }
.pdfp-dropzone.is-dragover, .pdfp-dropzone:hover { border-color: var(--pdfp-accent); background: #fff1f2; }
.pdfp-dropzone__inner { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; text-align: center; }
.pdfp-dropzone__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; color: var(--pdfp-accent); background: var(--pdfp-accent-light); border-radius: 16px; }
.pdfp-dropzone__title { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.pdfp-dropzone__or { font-size: .8125rem; color: #94a3b8; margin-bottom: 16px; }
.pdfp-dropzone__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.pdfp-dropzone__hint { margin: 0; font-size: .75rem; color: #94a3b8; }
.pdfp-upload-preview { display: flex; align-items: center; gap: 16px; padding: 16px; }
.pdfp-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; }
.pdfp-upload-preview__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdfp-upload-preview__meta strong { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfp-upload-preview__meta span { font-size: .75rem; color: #94a3b8; }

.pdfp-sec-panel { border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; background: #fafafa; }
.pdfp-sec-panel:last-child { margin-bottom: 0; }
.pdfp-sec-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 0; }
.pdfp-sec-panel__head.is-open { margin-bottom: 16px; }
.pdfp-sec-panel__title { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.pdfp-sec-panel__title > i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--pdfp-accent); background: var(--pdfp-accent-light); border-radius: 12px; flex-shrink: 0; }
.pdfp-sec-panel__title strong { display: block; font-size: .9375rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.pdfp-sec-panel__title span { display: block; font-size: .8125rem; color: #94a3b8; line-height: 1.4; }

.pdfp-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.pdfp-switch input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; opacity: 0; }
.pdfp-switch__track { display: block; width: 44px; height: 24px; background: #cbd5e1; border-radius: 100px; cursor: pointer; transition: background .2s; }
.pdfp-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.pdfp-switch input:checked + .pdfp-switch__track { background: var(--pdfp-accent); }
.pdfp-switch input:checked + .pdfp-switch__track::after { transform: translateX(20px); }

.pdfp-password-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pdfp-field label { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--heading); }
.pdfp-field__wrap { position: relative; }
.pdfp-field__wrap input { width: 100%; padding: 12px 44px 12px 14px; font-size: .875rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-sizing: border-box; }
.pdfp-field__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: #94a3b8; background: none; border: none; cursor: pointer; border-radius: 8px; }
.pdfp-field__toggle:hover { color: var(--pdfp-accent); background: var(--pdfp-accent-light); }

.pdfp-perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pdfp-checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.pdfp-checkbox input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; opacity: 0; }
.pdfp-checkbox__mark { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; border: 2px solid #cbd5e1; border-radius: 5px; flex-shrink: 0; margin-top: 1px; background: #fff; transition: background .15s, border-color .15s; }
.pdfp-checkbox__mark svg, .pdfp-checkbox__mark i { width: 12px; height: 12px; opacity: 0; stroke: #fff; color: #fff; }
.pdfp-checkbox input:checked + .pdfp-checkbox__mark { background: var(--pdfp-accent); border-color: var(--pdfp-accent); }
.pdfp-checkbox input:checked + .pdfp-checkbox__mark svg,
.pdfp-checkbox input:checked + .pdfp-checkbox__mark i { opacity: 1; }
.pdfp-checkbox:has(input:checked) { border-color: #fecdd3; background: #fffbfb; }
.pdfp-checkbox__text { display: flex; flex-direction: column; gap: 2px; }
.pdfp-checkbox__text strong { font-size: .8125rem; font-weight: 600; color: var(--heading); }
.pdfp-checkbox__text span { font-size: .75rem; color: #94a3b8; line-height: 1.35; }

.pdfp-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pdfp-select label { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--heading); }
.pdfp-select select { width: 100%; padding: 12px 14px; font-size: .875rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }

.pdfp-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; }
.pdfp-btn--primary { color: #fff; background: var(--pdfp-accent); }
.pdfp-btn--primary:hover { background: var(--pdfp-accent-dark); }
.pdfp-btn--outline { color: #475569; background: #fff; border-color: var(--border); }
.pdfp-btn--outline:hover { border-color: var(--pdfp-accent); color: var(--pdfp-accent); }
.pdfp-btn--ghost { color: #475569; background: transparent; border-color: transparent; }
.pdfp-btn--sm { padding: 8px 14px; font-size: .8125rem; }
.pdfp-btn--protect { width: 100%; padding: 16px 24px; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--pdfp-accent), #f43f5e); border: none; border-radius: 14px; box-shadow: 0 8px 24px rgba(225,29,72,.3); }
.pdfp-btn--protect:disabled { opacity: .5; cursor: not-allowed; }
.pdfp-security-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .8125rem; color: #94a3b8; text-align: center; }

.pdfp-progress { margin-top: 16px; padding: 12px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--border); }
.pdfp-progress__bar { height: 6px; width: 0; background: linear-gradient(90deg, var(--pdfp-accent), #f43f5e); border-radius: 100px; transition: width .3s; }
.pdfp-progress__text { display: block; margin-top: 8px; font-size: .75rem; font-weight: 600; color: #64748b; text-align: center; }

.pdfp-result-body { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.pdfp-result-icon { position: relative; width: 100px; height: 120px; display: flex; align-items: center; justify-content: center; }
.pdfp-result-icon__doc { display: flex; align-items: center; justify-content: center; width: 80px; height: 100px; color: #ef4444; background: #fef2f2; border: 1px solid #fecdd3; border-radius: 12px; }
.pdfp-result-icon__doc i { width: 40px; height: 40px; }
.pdfp-result-icon__check { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #16a34a; background: #dcfce7; border-radius: 50%; border: 2px solid #fff; }
.pdfp-result-info__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pdfp-result-info__name strong { font-size: 1rem; }
.pdfp-ready-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: .6875rem; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 100px; }
.pdfp-info-table { margin: 0 0 20px; }
.pdfp-info-table__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.pdfp-info-table__row dt { color: #94a3b8; }
.pdfp-info-table__row dd { margin: 0; font-weight: 600; text-align: right; }
.pdfp-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pdfp-start-over { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: .8125rem; font-weight: 600; color: #64748b; background: none; border: none; cursor: pointer; }
.pdfp-start-over:hover { color: var(--pdfp-accent); }

.pdfp-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pdfp-side-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.pdfp-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9375rem; font-weight: 700; }
.pdfp-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pdfp-how-list li { display: flex; gap: 12px; font-size: .8125rem; color: #475569; line-height: 1.5; }
.pdfp-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(--pdfp-accent); border-radius: 50%; flex-shrink: 0; }
.pdfp-why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pdfp-why-list li { display: flex; gap: 8px; font-size: .8125rem; color: #475569; line-height: 1.5; }
.pdfp-why-list li i { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.pdfp-feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pdfp-feat-list li { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: #475569; }
.pdfp-feat-icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; background: #fee2e2; color: #ef4444; }
.pdfp-tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pdfp-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; }
.pdfp-tools-link:hover { color: var(--pdfp-accent); background: var(--pdfp-accent-light); }
.pdfp-tools-link--soon { opacity: .7; cursor: default; }
.pdfp-tools-link--soon em { margin-left: auto; font-size: .625rem; font-weight: 700; font-style: normal; color: #94a3b8; text-transform: uppercase; }
.pdfp-tools-link__icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; color: var(--pdfp-accent); background: #fff; border-radius: 8px; flex-shrink: 0; }

.pdfp-features { padding: 48px 0; background: #f8fafc; }
.pdfp-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pdfp-feature-card { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.pdfp-feature-card__icon { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 14px; }
.pdfp-feature-card__icon--red { background: #fee2e2; color: #ef4444; }
.pdfp-feature-card__icon--green { background: #dcfce7; color: #16a34a; }
.pdfp-feature-card__icon--blue { background: #dbeafe; color: #2563eb; }
.pdfp-feature-card__icon--purple { background: #ede9fe; color: #7c3aed; }

.pdfp-steps-section { padding: 56px 0; }
.pdfp-section-head--center { text-align: center; margin-bottom: 40px; }
.pdfp-section-eyebrow { display: inline-flex; gap: 6px; margin-bottom: 12px; padding: 6px 14px; font-size: .75rem; font-weight: 700; color: var(--pdfp-accent); background: var(--pdfp-accent-light); border-radius: 100px; }
.pdfp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.pdfp-step { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--border); border-radius: 20px; text-align: center; }
.pdfp-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(--pdfp-accent); border-radius: 50%; }
.pdfp-step__icon { display: flex; width: 48px; height: 48px; margin: 8px auto 12px; align-items: center; justify-content: center; color: var(--pdfp-accent); background: var(--pdfp-accent-light); border-radius: 14px; }
.pdfp-faq { padding: 56px 0; }

.pdfp-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; }
.pdfp-toast--show { transform: translateX(-50%) translateY(0); opacity: 1; }

.pdfp-animate-in { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.pdfp-animate-in.is-visible { opacity: 1; transform: translateY(0); }
.pdfp-animate-in--delay { transition-delay: .1s; }
.pdfp-animate-in--delay2 { transition-delay: .2s; }
.pdfp-animate-in--delay3 { transition-delay: .3s; }

@media (max-width: 1024px) {
    .pdfp-hero__grid, .pdfp-layout { grid-template-columns: 1fr; }
    .pdfp-hero__visual { display: none; }
    .pdfp-perm-grid, .pdfp-adv-grid, .pdfp-password-row { grid-template-columns: 1fr; }
    .pdfp-result-body { grid-template-columns: 1fr; }
    .pdfp-features__grid, .pdfp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pdfp-features__grid, .pdfp-steps { grid-template-columns: 1fr; }
}

[data-theme="dark"] .pdfp-step-card,
[data-theme="dark"] .pdfp-side-card,
[data-theme="dark"] .pdfp-feature-card,
[data-theme="dark"] .pdfp-step,
[data-theme="dark"] .pdfp-sec-panel,
[data-theme="dark"] .pdfp-checkbox { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .pdfp-sec-panel { background: #1a2332; }
[data-theme="dark"] .pdfp-checkbox:has(input:checked) { background: rgba(225,29,72,.08); border-color: #4c1d2e; }
[data-theme="dark"] .pdfp-dropzone { background: #1a2332; border-color: #4c1d2e; }
[data-theme="dark"] .pdfp-dropzone.is-dragover,
[data-theme="dark"] .pdfp-dropzone:hover { background: #2a1520; border-color: var(--pdfp-accent); }
[data-theme="dark"] .pdfp-btn--outline,
[data-theme="dark"] .pdfp-field__wrap input,
[data-theme="dark"] .pdfp-select select,
[data-theme="dark"] .pdfp-checkbox__mark { background: #1a2332; border-color: var(--border); }
[data-theme="dark"] .pdfp-progress,
[data-theme="dark"] .pdfp-tools-link { background: #1a2332; border-color: var(--border); }
[data-theme="dark"] .pdfp-features { background: var(--bg); }
[data-theme="dark"] .pdfp-ready-badge { background: rgba(34,197,94,.15); color: #4ade80; }
[data-theme="dark"] .pdfp-result-icon__doc { background: rgba(239,68,68,.12); border-color: #4c1d2e; }
[data-theme="dark"] .pdfp-hero__doc { background: var(--bg-section); }
[data-theme="dark"] .pdfp-toast { background: #334155; }
[data-theme="dark"] .pdfp-upload-preview__icon { background: rgba(239,68,68,.12); }
[data-theme="dark"] .pdfp-switch__track { background: #475569; }
