/* قسم المميزات الذكية */
.smart-features-section {
    margin-top: 30px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.features-header {
    margin-bottom: 25px;
}

.features-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-header h2 i {
    color: #667eea;
    font-size: 22px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
}

.feature-icon i:first-child {
    position: relative;
    z-index: 1;
}

.feature-icon i:last-child {
    position: absolute;
    font-size: 14px;
    bottom: 6px;
    right: 6px;
    z-index: 2;
}

/* تخصيص كل ميزة */
.salary-feature .feature-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.salary-feature:hover {
    border-color: #f59e0b;
}

.debt-feature .feature-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.debt-feature:hover {
    border-color: #8b5cf6;
}

.analytics-feature .feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.analytics-feature:hover {
    border-color: #10b981;
}

.security-feature .feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.security-feature:hover {
    border-color: #3b82f6;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-features-section {
        margin-top: 20px;
        padding: 16px;
        border-radius: 16px;
    }
    
    .features-header {
        margin-bottom: 16px;
    }
    
    .features-header h2 {
        font-size: 16px;
    }
    
    .features-header h2 i {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .feature-icon i:last-child {
        font-size: 11px;
        bottom: 4px;
        right: 4px;
    }
    
    .feature-content h3 {
        font-size: 14px;
    }
    
    .feature-content p {
        font-size: 12px;
        line-height: 1.6;
    }
}

