/* Subscription Modal Styles */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.subscription-modal {
    background: white;
    border-radius: 1rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-content {
    padding: 2rem;
}

.upgrade-message {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #3b82f6;
}

.upgrade-message i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.upgrade-message p {
    color: #1e40af;
    margin: 0;
    font-weight: 500;
}

.subscription-plans {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.plan-card.premium {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.plan-card.premium:hover {
    border-color: #059669;
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-header i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.plan-card.premium .plan-header i {
    color: #10b981;
}

.plan-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin: 0;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.plan-card.premium .plan-price {
    color: #10b981;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
}

.feature i {
    color: #10b981;
    font-size: 1rem;
}

.select-plan-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.select-plan-btn:hover {
    background: #4f46e5;
}

.premium-btn {
    background: #10b981;
}

.premium-btn:hover {
    background: #059669;
}

/* Payment Instructions Styles */
.selected-plan {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.selected-plan h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price-large {
    font-size: 3rem;
    font-weight: 700;
    color: #1e40af;
}

.payment-instructions {
    margin-bottom: 2rem;
}

.payment-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid #f59e0b;
}

.payment-highlight h3 {
    color: #92400e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-label {
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-value {
    font-weight: 700;
    color: #1f2937;
}

.payment-value.amount {
    color: #dc2626;
    font-size: 1.125rem;
}

.payment-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #64748b;
    margin: 0;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.refresh-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #059669;
}

.back-btn {
    padding: 1rem 2rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #4b5563;
}

.payment-note {
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
}

.payment-note i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.payment-note p {
    color: #1e40af;
    margin: 0;
}

.payment-warning {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #ef4444;
}

.payment-warning i {
    color: #ef4444;
    margin-right: 0.5rem;
}

.payment-warning p {
    color: #991b1b;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.payment-warning ul {
    color: #991b1b;
    margin: 0;
    padding-left: 1.5rem;
}

.payment-warning li {
    margin-bottom: 0.5rem;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message i {
    margin-bottom: 1.5rem;
}

.success-message h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #64748b;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.continue-btn {
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.continue-btn:hover {
    background: #4f46e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subscription-modal-overlay {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .plan-price-large {
        font-size: 2rem;
    }
}
