
/* app/static/css/purchase-dialog.css */

.purchase-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.purchase-overlay.active {
    display: flex;
}

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

.purchase-dialog {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.purchase-dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.purchase-dialog-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.purchase-dialog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 30px;
    color: white;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.purchase-dialog-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.purchase-dialog-header .subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.purchase-dialog-body {
    padding: 30px;
}

.price-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f3f4f6;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin-bottom: 5px;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 5px;
}

.price-label {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.features-list li {
    padding: 12px 0;
    color: #374151;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.features-list li::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-purchase {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase .mp-logo {
    height: 20px;
    filter: brightness(0) invert(1);
}

.payment-info {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 15px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    opacity: 0.7;
}

.payment-methods span {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .purchase-dialog {
        width: 95%;
        margin: 20px;
    }

    .purchase-dialog-header {
        padding: 30px 20px 25px;
    }

    .purchase-dialog-header h2 {
        font-size: 1.5rem;
    }

    .purchase-dialog-body {
        padding: 25px 20px;
    }

    .price-amount {
        font-size: 3rem;
    }
}
