/* Loading Popup */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.pdf-loading-popup {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.pdf-loading-popup h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.pdf-loading-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.pdf-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    animation: loadingProgress 5s ease-out forwards;
}

.pdf-loading-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.pdf-bonus-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-top: 20px;
}

.pdf-bonus-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-bonus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-bonus-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}

.pdf-bonus-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 16px;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.pdf-loading-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}