/* =================================================================
   PDF Previewer Pro — Frontend Styles v2.2.0 | Premium Edition
   ================================================================= */

/* 1. Disable text selection on modal chrome */
.ppwlg-modal-content {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

/* 2. Transparent security shield over iframe */
.ppwlg-security-shield {
    position: absolute;
    inset: 0;
    z-index: 500;
    background: transparent;
    pointer-events: all;
    -webkit-user-select: none;
    user-select: none;
}
.ppwlg-modal-content:has(.ppwlg-lead-overlay) .ppwlg-security-shield {
    pointer-events: none;
}

/* 3. Print protection */
@media print {
    .ppwlg-modal-overlay { display: none !important; }
    body::after {
        content: "🔒 Printing is disabled for this premium preview.";
        display: block;
        text-align: center;
        font-size: 20px;
        margin-top: 60px;
        font-weight: 700;
        color: #374151;
        font-family: 'Inter', sans-serif;
    }
}

/* 4. Diagonal watermark */
.ppwlg-pro-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.09;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.ppwlg-pro-watermark::after {
    content: attr(data-text);
    font-size: 66px;
    font-weight: 900;
    color: #0f172a;
    transform: rotate(-35deg);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-family: 'Inter', Arial, sans-serif;
}

/* 5. Lead Generation Overlay — dark glass */
.ppwlg-lead-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(10,14,26,0.97) 0%, rgba(23,37,63,0.97) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Lock icon with subtle glow pulse */
.ppwlg-lead-lock-icon {
    font-size: 50px;
    margin-bottom: 10px;
    display: block;
    animation: ppwlg-glow 2.8s ease-in-out infinite;
    filter: drop-shadow(0 4px 18px rgba(99,102,241,0.55));
}
@keyframes ppwlg-glow {
    0%, 100% { filter: drop-shadow(0 4px 18px rgba(99,102,241,0.5)); transform: scale(1); }
    50%       { filter: drop-shadow(0 6px 28px rgba(139,92,246,0.85)); transform: scale(1.07); }
}

/* Lead box — glassmorphism card */
.ppwlg-lead-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 44px 40px 40px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Gradient top border line */
.ppwlg-lead-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #6366f1);
    background-size: 200% auto;
    animation: ppwlg-gradient-shift 3s linear infinite;
    border-radius: 22px 22px 0 0;
}
@keyframes ppwlg-gradient-shift {
    to { background-position: 200% center; }
}

.ppwlg-lead-box h3 {
    margin: 0 0 26px;
    color: #f1f5f9;
    font-size: 1.15em;
    line-height: 1.65;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Inputs */
.ppwlg-lead-input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    color: #f1f5f9;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-appearance: none;
}
.ppwlg-lead-input::placeholder { color: rgba(255,255,255,0.3); }
.ppwlg-lead-input:focus {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Unlock button */
.ppwlg-lead-btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    box-shadow: 0 4px 22px rgba(99, 102, 241, 0.45);
}
.ppwlg-lead-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.65);
}
.ppwlg-lead-btn:active:not(:disabled) { transform: translateY(0); }
.ppwlg-lead-loading { opacity: 0.6; cursor: not-allowed !important; }

/* Error message */
.ppwlg-form-error {
    color: #f87171;
    font-size: 13px;
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* Mobile */
@media (max-width: 480px) {
    .ppwlg-lead-box { padding: 30px 20px 26px; border-radius: 16px; }
    .ppwlg-lead-box h3 { font-size: 1.05em; }
    .ppwlg-lead-lock-icon { font-size: 40px; }
}
