/* ═══════════════════════════════════════════
   TuVi Paywall — Blur + Payment v5.0
   ═══════════════════════════════════════════ */

/* Blur overlay on result sections */
.tuvi-pw-blurred {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    position: relative;
    transition: filter 0.5s ease;
}

.tuvi-pw-blurred.tuvi-pw-unlocked {
    filter: none !important;
    -webkit-filter: none !important;
    user-select: auto;
    pointer-events: auto;
}

/* Visible preview area */
.tuvi-pw-visible {
    filter: none !important;
    user-select: auto;
    pointer-events: auto;
}

/* Unlock overlay */
.tuvi-pw-overlay {
    text-align: center;
    padding: 32px 24px;
    margin: -60px auto 20px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 30%, #fff 100%);
}

.tuvi-pw-lock-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.tuvi-pw-title {
    font-size: 1.3em;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.tuvi-pw-desc {
    font-size: .9em;
    color: #666;
    margin-bottom: 16px;
}

.tuvi-pw-unlock-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tuvi-pw-unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.tuvi-pw-note {
    font-size: .75em;
    color: #999;
    margin-top: 10px;
}

/* ─── Payment Modal ────────────────────── */
.tuvi-pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tuviPayFadeIn 0.3s ease;
}

@keyframes tuviPayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tuvi-pay-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: tuviPaySlideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes tuviPaySlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tuvi-pay-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.tuvi-pay-close:hover { color: #333; }

.tuvi-pay-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.tuvi-pay-qr {
    text-align: center;
    margin-bottom: 16px;
}

.tuvi-pay-qr img {
    border: 3px solid #f0f0f0;
    border-radius: 16px !important;
}

.tuvi-pay-info {
    text-align: center;
    margin-bottom: 16px;
}

.tuvi-pay-amount {
    font-size: 2em;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 8px;
}

.tuvi-pay-code {
    font-size: .95em;
    color: #333;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 8px;
}

.tuvi-pay-copy-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85em;
    font-weight: 600;
}

.tuvi-pay-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.tuvi-pay-steps .step {
    padding: 4px 0;
    font-size: .9em;
    color: #444;
}

.tuvi-pay-status {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 10px;
    font-size: .95em;
    font-weight: 600;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tuvi-pay-status .spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(133,100,4,0.3);
    border-top-color: #856404;
    border-radius: 50%;
    animation: tuviSpin 1s linear infinite;
}

@keyframes tuviSpin {
    to { transform: rotate(360deg); }
}

/* ─── Mobile responsive ────────────────── */
@media (max-width: 480px) {
    .tuvi-pay-content {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .tuvi-pay-amount {
        font-size: 1.6em;
    }
    .tuvi-pw-unlock-btn {
        padding: 12px 28px;
        font-size: 1em;
    }
}
