.zplpdf-shell [hidden],
.zplpdf-pix-modal[hidden],
.zplpdf-progress[hidden],
.zplpdf-validation[hidden],
.zplpdf-stats[hidden],
.zplpdf-dropzone__idle[hidden],
.zplpdf-dropzone__file[hidden],
.zplpdf-alert[hidden],
.zplpdf-result[hidden],
.zplpdf-tab-panel[hidden],
.zplpdf-usage-bar[hidden],
[data-zplpdf-stat-size-wrap][hidden] {
    display: none !important;
}

:root {
    --zplpdf-radius: 12px;
    --zplpdf-radius-lg: 16px;
    --zplpdf-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --zplpdf-shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

.zplpdf-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--zplpdf-text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", sans-serif;
}

.zplpdf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.zplpdf-topbar__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.zplpdf-topbar__nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.zplpdf-topbar__nav a {
    color: var(--zplpdf-primary);
    text-decoration: none;
    font-weight: 500;
}

.zplpdf-topbar__nav a:hover {
    text-decoration: underline;
}

.zplpdf-card {
    background: var(--zplpdf-bg);
    border-radius: var(--zplpdf-radius-lg);
    box-shadow: var(--zplpdf-shadow);
    padding: 20px;
    margin: 16px auto;
    max-width: 480px;
}

.zplpdf-card--input,
.zplpdf-card--options {
    max-width: none;
    margin: 0;
}

.zplpdf-card__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

.zplpdf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 720px) {
    .zplpdf-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.zplpdf-form,
.zplpdf-converter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zplpdf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.zplpdf-field span {
    font-weight: 500;
    color: var(--zplpdf-text);
}

.zplpdf-field input[type="text"],
.zplpdf-field input[type="email"],
.zplpdf-field input[type="password"],
.zplpdf-field input[type="file"],
.zplpdf-field textarea,
.zplpdf-field select {
    width: 100%;
    padding: 12px 16px;
    background: var(--zplpdf-surface);
    border: 1px solid var(--zplpdf-border);
    border-radius: var(--zplpdf-radius);
    font-size: 16px;
    color: var(--zplpdf-text);
    box-sizing: border-box;
    transition: border-color 200ms ease;
    font-family: inherit;
}

.zplpdf-field textarea {
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    min-height: 180px;
}

.zplpdf-field input:focus,
.zplpdf-field textarea:focus,
.zplpdf-field select:focus {
    outline: none;
    border-color: var(--zplpdf-primary);
    border-width: 2px;
    padding: 11px 15px;
}

.zplpdf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--zplpdf-text-muted);
}

.zplpdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--zplpdf-radius);
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 200ms ease, transform 200ms ease;
    font-family: inherit;
}

.zplpdf-btn--primary {
    background: var(--zplpdf-primary, #7c4dff);
    color: #fff;
}

.zplpdf-btn--primary:hover {
    background: var(--zplpdf-primary-hover, #9e77ff);
}

.zplpdf-btn--primary:active {
    background: var(--zplpdf-primary-pressed, #6d44e0);
    transform: scale(0.98);
}

.zplpdf-btn--outline {
    background: transparent;
    border-color: var(--zplpdf-primary, #7c4dff);
    color: var(--zplpdf-primary, #7c4dff);
}

.zplpdf-btn--outline:hover {
    background: var(--zplpdf-primary-ghost, #f0ebff);
}

.zplpdf-btn--ghost {
    background: transparent;
    color: var(--zplpdf-text-muted);
}

.zplpdf-btn--ghost:hover {
    background: var(--zplpdf-surface);
    color: var(--zplpdf-text);
}

.zplpdf-btn--block {
    width: 100%;
}

.zplpdf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.zplpdf-divider {
    text-align: center;
    color: var(--zplpdf-text-muted);
    font-size: 13px;
    position: relative;
    margin: 8px 0;
}

.zplpdf-divider::before,
.zplpdf-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: var(--zplpdf-border);
}

.zplpdf-divider::before { left: 0; }
.zplpdf-divider::after  { right: 0; }

.zplpdf-alert {
    padding: 12px 16px;
    border-radius: var(--zplpdf-radius);
    font-size: 14px;
    background: #FFE3E3;
    color: #C92A2A;
    border: 1px solid #FFC9C9;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zplpdf-alert__msg {
    flex: 1 1 auto;
}

.zplpdf-alert__cta {
    flex: 0 0 auto;
    margin-left: auto;
}

.zplpdf-alert--success {
    background: #E6FCF5;
    color: #087F5B;
    border-color: #C3FAE8;
}

.zplpdf-alert--block {
    background: #FFF4E6;
    color: #A8611A;
    border-color: #FFD8A8;
    margin: 0 0 16px;
}

form[data-zplpdf-blocked="1"] .zplpdf-card--input,
form[data-zplpdf-blocked="1"] .zplpdf-card--options {
    opacity: .55;
    pointer-events: none;
}

form[data-zplpdf-blocked="1"] [data-zplpdf-submit] {
    cursor: not-allowed;
}

.zplpdf-result {
    padding: 16px;
    background: var(--zplpdf-primary-ghost, #f0ebff);
    border-radius: var(--zplpdf-radius);
    font-size: 14px;
    color: var(--zplpdf-text);
}

.zplpdf-result a {
    color: var(--zplpdf-primary, #7c4dff);
    font-weight: 500;
}

.zplpdf-result--viewer {
    padding: 0;
    background: var(--zplpdf-bg, #fff);
    border: 1px solid var(--zplpdf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.zplpdf-result__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--zplpdf-primary-ghost, #f0ebff);
    border-bottom: 1px solid var(--zplpdf-border);
    flex-wrap: wrap;
}

.zplpdf-result__info {
    font-size: 13px;
    color: var(--zplpdf-text-muted);
}

.zplpdf-result__info strong {
    color: var(--zplpdf-primary-pressed, #6d44e0);
    font-size: 15px;
}

.zplpdf-result__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zplpdf-result__viewer {
    width: 100%;
    min-height: 520px;
    border: none;
    display: block;
    background: var(--zplpdf-surface, #f8f9fa);
}

.zplpdf-footer-text {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--zplpdf-text-muted);
    text-align: center;
}

.zplpdf-footer-text a {
    color: var(--zplpdf-primary, #7c4dff);
    font-weight: 500;
    text-decoration: none;
}

.zplpdf-footer-text a:hover {
    text-decoration: underline;
}

.zplpdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.zplpdf-table th,
.zplpdf-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--zplpdf-border);
    text-align: left;
}

.zplpdf-table th {
    color: var(--zplpdf-text-muted);
    font-weight: 500;
    font-size: 13px;
}

.zplpdf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zplpdf-spin 800ms linear infinite;
}

@keyframes zplpdf-spin {
    to { transform: rotate(360deg); }
}

.zplpdf-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
}

@media (min-width: 640px) {
    .zplpdf-plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.zplpdf-plan {
    background: var(--zplpdf-bg);
    border: 1px solid var(--zplpdf-border);
    border-radius: var(--zplpdf-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--zplpdf-shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.zplpdf-plan:hover {
    box-shadow: var(--zplpdf-shadow-hover);
    transform: translateY(-2px);
}

.zplpdf-plan--current {
    border-color: var(--zplpdf-primary, #7c4dff);
    background: var(--zplpdf-primary-ghost, #f0ebff);
}

.zplpdf-plan__header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.zplpdf-plan__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--zplpdf-primary, #7c4dff);
}

.zplpdf-plan__price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--zplpdf-text-muted);
}

.zplpdf-plan__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.zplpdf-plan__features li::before {
    content: '✓ ';
    color: var(--zplpdf-success);
    font-weight: 700;
}

.zplpdf-plan__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zplpdf-plan__unavailable {
    font-size: 13px;
    color: var(--zplpdf-text-muted);
    margin: 0;
}

.zplpdf-pix-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.zplpdf-pix-modal__box {
    background: var(--zplpdf-bg, #fff);
    border-radius: var(--zplpdf-radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.zplpdf-pix-modal__box canvas {
    border: 1px solid var(--zplpdf-border);
    border-radius: 8px;
}

.zplpdf-pix-modal__box textarea {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    resize: none;
    padding: 8px;
    border: 1px solid var(--zplpdf-border);
    border-radius: 8px;
}

.zplpdf-pix-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.zplpdf-pix-modal__status {
    font-size: 13px;
    color: var(--zplpdf-text-muted);
    margin: 0;
}

.zplpdf-usage-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--zplpdf-bg, #fff);
    border: 1px solid var(--zplpdf-border);
    border-radius: var(--zplpdf-radius);
    padding: 12px 18px;
    margin: 0 0 16px;
    font-size: 14px;
    flex-wrap: wrap;
}

.zplpdf-usage-bar__label {
    font-weight: 600;
    color: var(--zplpdf-text);
    font-size: 14px;
    white-space: nowrap;
}

.zplpdf-usage-bar__track {
    flex: 1 1 80px;
    min-width: 80px;
    height: 6px;
    background: var(--zplpdf-surface);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.zplpdf-usage-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--zplpdf-primary);
    transition: width .25s ease, background .25s ease;
}

.zplpdf-usage-bar--warn .zplpdf-usage-bar__fill {
    background: #FFA94D;
}

.zplpdf-usage-bar--full .zplpdf-usage-bar__fill {
    background: #FF6B6B;
}

.zplpdf-usage-bar--full .zplpdf-usage-bar__label,
.zplpdf-usage-bar--full .zplpdf-usage-bar__cta {
    color: #FF6B6B;
}

.zplpdf-usage-bar--ok .zplpdf-usage-bar__fill {
    background: var(--zplpdf-primary);
}

.zplpdf-usage-bar__cta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--zplpdf-primary-pressed, #6d44e0);
    text-decoration: none;
    white-space: nowrap;
}

.zplpdf-usage-bar__cta:hover {
    text-decoration: underline;
}

.zplpdf-usage-bar { padding: 10px 14px; gap: 10px; }
.zplpdf-usage-bar__track { order: 3; flex-basis: 100%; }
.zplpdf-usage-bar__cta { margin-left: 0; }
@media (min-width: 640px) {
    .zplpdf-usage-bar { padding: 12px 18px; gap: 16px; }
    .zplpdf-usage-bar__track { order: initial; flex-basis: auto; }
    .zplpdf-usage-bar__cta { margin-left: auto; }
}

.zplpdf-btn--sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
}

.zplpdf-btn--lg {
    padding: 14px 24px;
    font-size: 16px;
}

.zplpdf-convert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .zplpdf-convert-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.zplpdf-tabs {
    display: flex;
    gap: 4px;
    background: var(--zplpdf-surface);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
}

.zplpdf-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: none;
    background: transparent;
    color: var(--zplpdf-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    transition: all 150ms ease;
}

.zplpdf-tab:hover {
    color: var(--zplpdf-text);
}

.zplpdf-tab.is-active {
    background: var(--zplpdf-bg, #fff);
    color: var(--zplpdf-primary, #7c4dff);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.zplpdf-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed var(--zplpdf-border);
    border-radius: 12px;
    background: var(--zplpdf-surface);
    cursor: pointer;
    padding: 24px;
    transition: all 200ms ease;
    text-align: center;
}

.zplpdf-dropzone:hover,
.zplpdf-dropzone:focus {
    border-color: var(--zplpdf-primary, #7c4dff);
    background: var(--zplpdf-primary-ghost, #f0ebff);
    outline: none;
}

.zplpdf-dropzone.is-drag {
    border-color: var(--zplpdf-primary, #7c4dff);
    background: var(--zplpdf-primary-ghost, #f0ebff);
    transform: scale(1.01);
}

.zplpdf-dropzone__idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--zplpdf-text-muted);
}

.zplpdf-dropzone__idle svg {
    color: var(--zplpdf-primary);
    opacity: 0.7;
}

.zplpdf-dropzone__idle p {
    margin: 0;
    font-size: 14px;
}

.zplpdf-dropzone__idle strong {
    color: var(--zplpdf-text);
    font-size: 16px;
}

.zplpdf-dropzone__hint {
    font-size: 12px !important;
    color: var(--zplpdf-text-muted);
}

.zplpdf-dropzone__file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--zplpdf-bg, #fff);
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.zplpdf-dropzone__file svg {
    color: var(--zplpdf-primary);
    flex-shrink: 0;
}

.zplpdf-dropzone__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zplpdf-dropzone__info strong {
    font-size: 14px;
    color: var(--zplpdf-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zplpdf-dropzone__info span {
    font-size: 12px;
    color: var(--zplpdf-text-muted);
}

.zplpdf-dropzone__remove {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--zplpdf-text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
}

.zplpdf-dropzone__remove:hover {
    background: var(--zplpdf-surface);
    color: var(--zplpdf-error);
}

.zplpdf-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 12px;
}

.zplpdf-validation__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.zplpdf-validation.is-ok {
    background: #E6FCF5;
    color: #087F5B;
}
.zplpdf-validation.is-ok .zplpdf-validation__icon {
    background: #51CF66;
    color: #fff;
}

.zplpdf-validation.is-warn {
    background: #FFF4E6;
    color: #D9480F;
}
.zplpdf-validation.is-warn .zplpdf-validation__icon {
    background: #FFA94D;
    color: #fff;
}

.zplpdf-validation.is-err {
    background: #FFE3E3;
    color: #C92A2A;
}
.zplpdf-validation.is-err .zplpdf-validation__icon {
    background: #FF6B6B;
    color: #fff;
}

.zplpdf-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zplpdf-text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--zplpdf-border);
}

.zplpdf-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.zplpdf-stats strong {
    color: var(--zplpdf-text);
    font-weight: 600;
}

.zplpdf-stats svg {
    color: var(--zplpdf-primary);
}

.zplpdf-progress {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zplpdf-progress__bar {
    height: 6px;
    background: var(--zplpdf-surface);
    border-radius: 999px;
    overflow: hidden;
}

.zplpdf-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--zplpdf-primary, #7c4dff) 0%, var(--zplpdf-primary-hover, #9e77ff) 100%);
    border-radius: 999px;
    transition: width 300ms ease;
    width: 0%;
}

.zplpdf-progress__msg {
    font-size: 12px;
    color: var(--zplpdf-text-muted);
    text-align: center;
}

.zplpdf-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
 * Dashboard extensions — sidebar "soon" items, danger panel,
 * delete-account modal, forgot/success auth cards.
 * Requires theme-level design tokens (.app, .sidebar, .panel,
 * .btn, .field, .badge). Falls back gracefully without them.
 * ========================================================= */

.sidebar__item--disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    justify-content: space-between;
}
.sidebar__item--disabled > span:first-of-type { flex: 1; }

.badge--soon {
    background: var(--zplpdf-surface, #f8f9fa);
    color: var(--zplpdf-text-muted, #868e96);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: inherit;
}

.panel--danger {
    border-color: #FCA5A5 !important;
    background: #FEF2F2;
}
.panel--danger .panel__head { background: transparent; border-bottom-color: #FCA5A5; }

/* User menu (dashboard topbar) */
.zplpdf-usermenu { position: relative; }
.zplpdf-usermenu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 120ms, border-color 120ms;
}
.zplpdf-usermenu__trigger:hover,
.zplpdf-usermenu__trigger[aria-expanded="true"] {
    background: var(--zplpdf-surface, #f8f9fa);
    border-color: var(--zplpdf-border, #dee2e6);
}
.zplpdf-usermenu__email {
    display: none;
    font-size: 13px;
    color: var(--zplpdf-text-muted, #868e96);
    max-width: clamp(120px, 30vw, 220px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .zplpdf-usermenu__email { display: inline; }
}
.zplpdf-usermenu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--zplpdf-primary, #7c4dff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
}
.zplpdf-usermenu__caret {
    color: var(--zplpdf-text-muted, #868e96);
    transition: transform 120ms;
}
.zplpdf-usermenu__trigger[aria-expanded="true"] .zplpdf-usermenu__caret {
    transform: rotate(180deg);
}
.zplpdf-usermenu__panel {
    position: absolute;
    top: calc(100% + 6px);
    min-width: 240px;
    background: var(--zplpdf-bg, #fff);
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 14, 26, 0.08), 0 4px 12px rgba(10, 14, 26, 0.05);
    padding: 6px;
    z-index: 100;
}
.zplpdf-usermenu__panel[hidden] { display: none; }
.zplpdf-usermenu__panel[data-align="right"] { right: 0; }
.zplpdf-usermenu__panel[data-align="left"]  { left: 0; }
.zplpdf-usermenu__head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--zplpdf-border, #dee2e6);
    margin-bottom: 6px;
}
.zplpdf-usermenu__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zplpdf-text, #212529);
    line-height: 1.3;
}
.zplpdf-usermenu__sub {
    font-size: 12px;
    color: var(--zplpdf-text-muted, #868e96);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zplpdf-usermenu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    color: var(--zplpdf-text, #212529);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.zplpdf-usermenu__item:hover { background: var(--zplpdf-surface, #f8f9fa); }
.zplpdf-usermenu__item svg { color: var(--zplpdf-text-muted, #868e96); flex-shrink: 0; }
.zplpdf-usermenu__sep {
    height: 1px;
    background: var(--zplpdf-border, #dee2e6);
    margin: 6px 4px;
}
.zplpdf-usermenu__item--danger { color: #991B1B; }
.zplpdf-usermenu__item--danger svg { color: #991B1B; }
.zplpdf-usermenu__item--danger:hover { background: #FEF2F2; }

@media (max-width: 640px) {
    .zplpdf-usermenu__email { display: none; }
}

/* Modal (delete account) */
.zplpdf-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}
.zplpdf-dialog[hidden] { display: none; }
.zplpdf-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(2px);
}
.zplpdf-dialog__card {
    position: relative;
    background: var(--zplpdf-bg, #fff);
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(10, 14, 26, 0.25);
}

/* Auth card (forgot password) */
.auth-card {
    max-width: 440px;
    margin: 80px auto;
    padding: 40px 32px;
    background: var(--zplpdf-bg, #fff);
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.04);
}
.auth-card__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--zplpdf-text, #212529);
    text-decoration: none;
    margin-bottom: 24px;
}
.auth-card__title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
}
.auth-card__sub {
    color: var(--zplpdf-text-muted, #868e96);
    font-size: 15px;
    margin: 0 0 24px;
}
.auth-card__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.auth-card__note {
    background: var(--zplpdf-surface, #f8f9fa);
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: var(--zplpdf-text-muted, #868e96);
    margin-bottom: 20px;
}
.auth-card__foot {
    font-size: 13px;
    color: var(--zplpdf-text-muted, #868e96);
    text-align: center;
}
.auth-card__foot a {
    color: #2563EB;
    text-decoration: underline;
}

/* Success page */
.success-shell {
    min-height: calc(100vh - 64px);
    background: var(--zplpdf-surface, #f8f9fa);
    display: grid;
    place-items: center;
    padding: 48px 24px;
}
.success-card {
    max-width: 560px;
    width: 100%;
    background: var(--zplpdf-bg, #fff);
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(10, 14, 26, 0.06);
}
.success-card__check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #D1FAE5;
    color: #065F46;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
}
.success-card__eyebrow {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.success-card__title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.2;
}
.success-card__plan { color: #2563EB; }
.success-card__sub {
    font-size: 15px;
    color: var(--zplpdf-text-muted, #868e96);
    margin: 0 auto 28px;
    max-width: 460px;
    line-height: 1.55;
}
.success-steps {
    background: var(--zplpdf-surface, #f8f9fa);
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 24px;
}
.success-steps__label {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    color: var(--zplpdf-text-muted, #868e96);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.success-steps__list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--zplpdf-text-muted, #868e96);
    line-height: 1.55;
}
.success-steps__list li strong { color: var(--zplpdf-text, #212529); }
.success-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (min-width: 640px) {
    .success-card__actions { flex-direction: row; }
}

/* ===== Mobile-first utilities ===== */
.zplpdf-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}
.zplpdf-table-wrap > table { min-width: 560px; }

.zplpdf-billing-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .zplpdf-billing-grid { grid-template-columns: 2fr 1fr; }
}

.zplpdf-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    max-width: 640px;
}
@media (min-width: 640px) {
    .zplpdf-form-grid { grid-template-columns: 1fr 1fr; }
}
.zplpdf-form-grid > .zplpdf-form-grid__full { grid-column: 1 / -1; }

.zplpdf-search-input {
    width: 100%;
    max-width: 240px;
    padding: 8px 12px;
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 6px;
    font-size: 14px;
    min-height: 40px;
}

/* Dashboard sidebar drawer (mobile) */
.zplpdf-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--zplpdf-border, #dee2e6);
    border-radius: 8px;
    background: var(--zplpdf-bg, #fff);
    color: var(--zplpdf-text, #212529);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}
.zplpdf-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.4);
    z-index: 40;
}
body.zplpdf-sidebar-open .sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 85vw);
    z-index: 50;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(10, 14, 26, 0.12);
}
body.zplpdf-sidebar-open .zplpdf-sidebar-backdrop { display: block; }
@media (min-width: 1024px) {
    .zplpdf-sidebar-toggle { display: none; }
    body.zplpdf-sidebar-open .zplpdf-sidebar-backdrop { display: none; }
    body.zplpdf-sidebar-open .sidebar { position: relative; width: auto; box-shadow: none; }
}
