/**
 * Upgrade Modal Styles
 * Professional pricing tier modal
 */

.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.upgrade-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.upgrade-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 10;
}

.upgrade-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.upgrade-modal-header {
    text-align: center;
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #e5e7eb;
}

.upgrade-modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

.upgrade-modal-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.upgrade-modal-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px;
}

.tier-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tier-recommended {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.tier-current {
    opacity: 0.7;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge-recommended {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.tier-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 20px 0 10px 0;
}

.tier-price {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.tier-price .tier-period {
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
}

.tier-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 40px;
}

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

.tier-features li {
    padding: 10px 0;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.tier-features .checkmark {
    color: #10b981;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.tier-button {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.tier-button-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tier-button-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.tier-button-secondary:hover {
    background: #f0f9ff;
}

.tier-button-current {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.upgrade-modal-footer {
    padding: 24px 40px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.upgrade-modal-guarantee {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.upgrade-modal-guarantee a {
    color: #2563eb;
    text-decoration: none;
}

.upgrade-modal-guarantee a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .upgrade-modal-tiers {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .upgrade-modal-header {
        padding: 30px 20px 20px 20px;
    }

    .upgrade-modal-header h2 {
        font-size: 24px;
    }

    .tier-card {
        padding: 24px;
    }

    .tier-price {
        font-size: 36px;
    }
}

/* Scrollbar styling for modal content */
.upgrade-modal-content::-webkit-scrollbar {
    width: 8px;
}

.upgrade-modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.upgrade-modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.upgrade-modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
